:root {
    --mobile-width: 375px;
    --desktop-width: 1440px;
    --orange-primary-color: hsl(25, 97%, 53%);
    --white-color: hsl(0, 0%, 100%);
    --light-grey-color: hsl(216, 27%, 67%);
    --dark-blue-color: hsl(213, 19%, 18%);
    --light-blue-color: hsl(215, 19%, 25%);
    --very-dark-blue: hsl(216, 12%, 8%);
    --weight-minor-text: 400;
    --weight-max-text: 700;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-size: 15px;
    font-family: Overpass, serif;
    font-weight: var(--weight-minor-text);
    background: var(--very-dark-blue);
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
    min-width: var(--mobile-width);
}

.container {
    width: 325px;
    min-width: 325px;
    background: var(--dark-blue-color);
    padding: 20px;
    border-radius: 25px;
}

.rating-state {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 1;
    visibility: visible;
}

.rating-state img {
    width: fit-content;
    padding: 10px;
    border-radius: 50%;
    background: var(--light-blue-color);
}


.rating-state h1 {
    font-weight: var(--weight-max-text);
}

p {
    color: var(--light-grey-color);

}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.radioButtons {
    display: flex;
    justify-content: space-between;
}

.radioButton-container {
    position: relative;
    width: 15%;
}

.radioButton-container input {
    display: none;
}

.radioButton-container label {
    aspect-ratio: 1;
    background: var(--light-blue-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.radioButton-container label:hover {
    background: var(--orange-primary-color);
    color: black;
}

input:checked ~ label {
    background: var(--white-color);
    color: black;
}

button[type='submit'] {
    background: var(--orange-primary-color);
    border: none;
    border-radius: 25px;
    padding: 10px;
    cursor: not-allowed;
    font-weight: var(--weight-max-text);
    transition: background 0.3s;
}

button[type='submit']:hover {
    background: var(--white-color);
}

form:valid button[type='submit'] {
    cursor: pointer;
}

.thanks-state {
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.container-selected-rate {
    color: var(--orange-primary-color);
    background: var(--light-blue-color);
    padding: 10px;
    border-radius: 25px;
}

#paragraph-thanks {
    text-align: center;
}

.hidden {
    display: none;
}

.visible {
    opacity: 1;
    visibility: visible;
}

.attribution {
    position: fixed;
    bottom: 20px;
    font-size: 11px;
    text-align: center;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}
