* {
    text-decoration: none;
    box-sizing: border-box;
    margin: 0;
    font-family: var(--Overpass);
    transition: justify-content .5s;
}

:root {
    --Orange: hsl(25, 97%, 53%);
    --White: hsl(0, 0%, 100%);
    --Light-Grey: hsl(217, 12%, 63%);
    --Medium-Grey: hsl(216, 12%, 54%);
    --Dark-Blue: hsl(213, 19%, 18%);
    --Very-Dark-Blue: hsl(216, 12%, 8%);
    --Overpass: 'Overpass', sans-serif;
}

body {
    height: 100vh;
}

/* *********************** container **********************/
.container {
    background-color: var(--Very-Dark-Blue);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* *********************** Rating page **********************/
.container .box {
    width: 460px;
    height: 500px;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    background-image: linear-gradient(to bottom, var(--Dark-Blue), var(--Very-Dark-Blue));
}

#rating .star {
    background-image: url(../images/icon-star.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #343e4b;
    color: var(--Orange);
    transition: all 1s;
}

#rating .star:hover {
    transform: rotate(360deg);
}

.box h1 {
    color: var(--White);
}

.box p {
    color: var(--Light-Grey);
    font-size: 20px;
    line-height: 30px;
}

#rating ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;

}

#rating ul li {
    background-color: #343e4b;
    color: var(--Medium-Grey);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
    font-family: sans-serif;

}

#rating ul li:hover {
    background-color: var(--Orange);
    color: var(--White);
}

/* when click on numbers(li) by JS  */
.active {
    background-color: var(--Medium-Grey) !important;
    color: var(--White) !important;
}

#rating #submit {
    border: none;
    width: 100%;
    padding: 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    color: var(--White);
    background-color: var(--Orange);
    letter-spacing: 9px;
    display: block;
    cursor: pointer;
    outline-style: none;
}

/* when click on submit button by JS  */
.submited {
    background-color: var(--White) !important;
    color: var(--Orange) !important;
}

#error {
    width: 100%;
    background-color: #E91E63;
    text-align: center;
    color: var(--White);
    font-size: 20px;
    padding: 20px;
    border-radius: 50px;
    display: none;
}

/* error massage by JS  */
.error {
    display: block !important;
}

/* *********************** Thanking page **********************/
#thanking {
    align-items: center;
    position: absolute;
    z-index: -1;
}

/* after submit show thanking page (by Js) */
.show {
    z-index: 1 !important;
}

#thanking * {
    transition: all 1s;
}

#thanking .thank {
    background-image: url("../images/illustration-thank-you.svg");
    background-repeat: no-repeat;
    color: var(--White);
    width: 100%;
    height: 200px;
    background-position: center;
}

#thanking #massage {
    background-color: #343e4b;
    color: var(--Orange);
    padding: 15px 20px 10px;
    text-align: center;
    border-radius: 50px;
}

#thanking p {
    text-align: center;
}

/* *********************** Responsive Devices **********************/
/* moblie */
@media (max-width:480px) {
    .box {
        width: 300px !important;
        padding: 20px !important;
    }

    .star {
        background-size: 18px !important;
    }

    .star:hover {
        transform: none !important;
    }

    h1 {
        font-size: 30px;
    }

    .box p {
        font-size: 15px;
    }

    #rating ul li {
        width: 40px;
        height: 40px;
    }

    #rating ul li:hover {
        background-color: #343e4b;
        color: var(--Medium-Grey);
    }

    #rating #submit {
        padding: 10px;
    }

    #error {
        font-size: 15px;
        padding: 10px;
    }


}

/* Special Device */
@media (max-width:319px) {
    .box {
        width: 250px !important;
    }

    h1 {
        font-size: 20px !important;
    }

    #rating ul li {
        width: 35px;
        height: 35px;
    }
}