@import url('https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --orange-500: hsl(25, 97%, 53%);
    --white: hsl(0, 100%, 100%);
    --grey-500: hsl(217, 12%, 63%);
    --grey-900: hsl(213, 19%, 18%);
    --grey-950: hsl(216, 12%, 8%);
}

* {
    margin: 0%;
    padding: 0%;
}

body {
    background-color: var(--grey-950);
    color: var(--grey-500);
    font-family: 'Overpass';
    font-size: 0.938rem;
    line-height: 1.5rem;
    max-width: 1000vh;
    margin: 152px 0;
    display: flex;
    justify-content: center;
}

main {
    padding: 0 24px;
}

.heading {
    color: white;
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 2.188rem;
}

/*RATING CONTAINER*/
.container {
    background: #252E37;
    background: radial-gradient(at center top , rgba(37, 45, 55, 1) 0%, rgba(26, 31, 37, 1) 75%);
    width: 341px;
    height: 352px;
    border-radius: 32px;
    padding: 32px 39px 32px 32px;
}

.icon-container {
    background-color: var(--grey-900);
    display: flex;
    width: 18px;
    height: 16px;
    border-radius: 100%;
    padding: 16px 15px;
}

.icon-star {
    width: 17px;
    height: 16px;
}

.container .heading {
    margin: 36px 0 10px 0 ;
}

ol {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 23px 0 32px 0;
}

li:nth-child(1) {
    padding-right: 21px;
}

li:nth-child(2) {
    padding-right: 22px;
}

li:nth-child(3) {
    padding-right: 21px;
}

li:nth-child(4) {
    padding-right: 22px;
}

li:nth-child(5) {
    padding-right: 0;
}

.rating-btn {
    background-color: var(--grey-900);
    color: var(--grey-500);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    width: 51px;
    height: 51px;
    border: 0px;
    border-radius: 100%;
    padding: 10px;
    cursor: pointer;
    transition: 400ms;
}

.rating-btn.active {
    background-color: white;
    color: var(--grey-900);
}

.rating-btn:hover {
    background-color: var(--orange-500);
    color: var(--grey-900);
}

.rating-btn:active {
    background-color: white;
}
.rating-btn:focus {
    background-color: white;
}

.submit-btn {
    background-color: var(--orange-500);
    font-family: inherit;
    font-weight: 500;
    font-size: inherit;
    line-height: 1.375rem;
    letter-spacing: 0.135rem;
    width: 100%;
    border: 0;
    border-radius: 32px;
    padding: 12px 0 11px;
    cursor: pointer;
    transition: 400ms;
}

.submit-btn:hover {
    background-color: white;
}

/*THANK YOU CONTAINER*/
.thanks-container {
    background: #252E37;
    background: radial-gradient(at center top , rgba(37, 45, 55, 1) 0%, rgba(26, 31, 37, 1) 75%);
    width: 341px;
    height: 327px;
    border-radius: 32px;
    padding: 45px 39px 44px 32px;
    text-align: center;
}

.thanks-container.hidden {
    display: none;
}

.rating-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 33px;
}

.rating-result {
    display: inline-block;
    color: var(--orange-500);
    background-color: var(--grey-900);
    line-height: 1.125rem;
    border-radius: 16px;
    padding: 8px 20px 6px 20px;
}

.thanks-container .heading {
    margin: 38px 0 10px 0;
}

@media only screen and (max-width: 767px) {
    body {
        font-size: 0.875rem;
        line-height: 1.375rem;
    }

    .heading {
        font-size: 1.5rem;
        line-height: 1.875rem;
    }

    /*RATING CONTAINER*/
    .container {
        width: auto;
        height: auto;
        border-radius: 16px;
        padding: 24px 24px 32px;
    }

    .icon-container {
        width: 14px;
        height: 13px;
        padding: 13px 13px 14px;
    }

    .icon-star {
        width: 14px;
        height: 13px;
    }

    .container .heading {
        margin: 22px 0 12px 0 ;
    }

    ol {
        margin: 23px 0 24px  0;
    }
    
    li:nth-child(1) {
        padding-right: 17px;
    }

    li:nth-child(2) {
        padding-right: 18px;
    }

    li:nth-child(3) {
        padding-right: 18px;
    }

    li:nth-child(4) {
        padding-right: 18px;
    }

    .rating-btn {
        font-size: inherit;
        width: 42px;
        height: 42px;
    }

    .rating-btn:active {
        background-color: white;
    }

    .submit-btn:hover {
        background-color: white;
    }

    /*THANK YOU CONTAINER*/
    .thanks-container {
        width: auto;
        height: auto;
        border-radius: 16px;
        padding: 34px 28px 36px;
    }

    .rating-success {
        gap: 24px;
    }

    .illustration {
        width: 144px;
        height: 96px;
    }

    .thanks-container .heading {
        margin: 30px 0 12px 0;
    }
}