/* Variables globales */
:root {
    --color-orange: hsl(25, 97%, 53%);
    --color-white: hsl(0, 0%, 100%);
    --color-light-grey: hsl(217, 12%, 63%); 
    --color-medium-grey: hsl(216, 12%, 54%); 
    --color-dark-blue: hsl(213, 19%, 18%);
    --color-very-dark-blue: hsl(216, 12%, 8%);
    --font-family: 'Overpass', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: var(--font-family);
    background-color: var(--color-very-dark-blue);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.container {
    max-width: 375px;
    padding: 1.5rem;
    width: 100%;
}

/* Rating card */

.rating-card {
    background: radial-gradient(98.96% 98.96% at 50% 0%, #232A34 0%, #181E27 100%); 
    border-radius: 15px;
    padding: 1.5rem;
}

.rating-card__icon {
    background-color: var(--color-dark-blue);
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.rating-card__title {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.rating-card__text {
    color: var(--color-light-grey);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.rating-card__buttons {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem;
}

.rating-card__button {
    background-color: var(--color-dark-blue);
    border: none;
    color: var(--color-light-grey);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-card__button:hover {
    background-color: var(--color-orange);
    color: var(--color-dark-blue);
}

.rating-card__button--selected {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
}

.rating-card__submit {
    width: 100%;
    background-color: var(--color-orange);
    border: none;
    padding: 0.875rem;
    border-radius: 22.5px;
    color: var(--color-very-dark-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-card__submit:hover {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
}

/* Thank You Card */

.thank-you-card {
    background: radial-gradient(98.96% 98.96% at 50% 0%, #232A34 0%, #181E27 100%); 
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.thank-you-card__image { 
    margin: 1rem 0 1.5rem;
}

.thank-you-card__selection {
    background-color: var(--color-dark-blue);
    color: var(--color-orange);
    padding: 0.5rem 1rem;
    border-radius: 22.5px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.thank-you-card__title {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.thank-you-card__text {
    color: var(--color-light-grey);
    line-height: 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.modal__button {
    margin-top: 1rem;
    padding: 0.5rem 2rem;
    background-color: var(--color-orange);
    border: none;
    border-radius: 5px;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__button:hover {
    background-color: var(--color-dark-blue);
}

/* Utilities */
.hidden {
    display: none;
}

/* Media Queries */
@media (min-width: 768px) {
    .container {
        max-width: 412px;
    }

    .rating-card,
    .thank-you-card {
        padding: 2rem;
    }
}

