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

body {
    background-color: hsl(216, 12%, 8%);
    font-size: 15px;
    font-family: 'Overpass', sans-serif;
    color: white;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#container {
    padding: 1.5rem 2rem;
    background-color: hsl(213, 19%, 18%);
    border-radius: 20px;
    max-width: 30vw;
}
#star {
    padding: 1rem;
    background-color: hsl(213, 19%, 25%);
    border-radius: 50%;
    margin: 1rem 0;
}
#container > p {
    color: hsl(217, 12%, 63%);
}
#container > h1 {
    margin-bottom: 1rem;
}
.button-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 1rem 0;
}
#submit {
    grid-column: 1 / 6;
    border: none;
    border-radius: 25px;
    color: white;
    letter-spacing: 2px;
    font-weight: bold;
    font-family: 'Overpass';
    font-size: 14px;
    background-color: hsl(25, 97%, 53%);
    padding: 0.8rem;
    cursor: pointer;
}
#submit:hover {
    background-color: white;
    color:  hsl(213, 19%, 18%);
}
.rate {
    padding: 17px 10px;
    background-color: hsl(213, 19%, 25%);
    border: none;
    border-radius: 50%;
    color: hsl(217, 12%, 63%);
    font-weight: 700;
    font-family: 'Overpass';
    font-size: 14px;
    cursor: pointer;
}
.rate:hover {
    background-color: white;
    color: hsl(213, 19%, 25%);
}
.active-rating {
    background-color: hsl(25, 97%, 53%);
    color: white;
}
.active-rating:hover {
    background-color: hsl(25, 97%, 53%);
    color: white;
}

.submitted {
    display: none;
    padding: 3rem 2.5rem;
    background-color: hsl(213, 19%, 18%);
    border-radius: 20px;
    max-width: 27vw;
    text-align: center;
    line-height: 1.5;
}
#score {
    color: hsl(25, 97%, 53%);
    padding: 0.3em;
    background-color: hsl(213, 19%, 25%);
    border-radius: 20px;
    margin: 1em;
}
.submitted > p {
    color: hsl(217, 12%, 63%);
}

@media only screen and (max-width: 375px) {
    #container,
    .submitted {
        max-width: 95vw;
    }
}