* {
    margin: 0;
    padding: 0;
    font-family: 'Overpass', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    background-color: hsl(216, 12%, 8%);
    padding: 160px 0;
}

.main {
    background-color: hsl(212, 28%, 12%);
    margin: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.grad {
    background-image: radial-gradient(hsl(210, 20%, 18%), hsl(212, 28%, 12%));
    width: 100%;
    height: 100%;
    z-index: 0;
    position: relative;
    top: -50%;
}

.review {
    position: relative;
    top: -100%;
    margin: 27px;
}

.icon-star {
    background-color: hsl(210, 20%, 18%);
    text-align: center;
    display: inline-block;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.star {
    padding-top: 12px;
    height: 14px;
    width: 14px;
}

.info {
    margin: 17px 0 22px;
}

.info h1 {
    color: hsl(0, 0%, 100%);
    margin-bottom: 14px;
}

.info p {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: hsl(216, 12%, 54%);
    line-height: 23px;
}

.rates {
    display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.rate {
    background-color: hsl(210, 20%, 18%);
    color: hsl(216, 12%, 54%);
    display: inline-block;
    margin: auto;
    border-style: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 14px;
    transition: 0.5s;
}

.rate:hover {
    background: hsl(217, 12%, 63%);
    color: white;
}

.rate.active {
    background: hsl(25, 97%, 53%);
    color: white;
}

.submit {
    margin: 25px 0 8px;
}

#submit-btn {
    color: white;
    background-color: hsl(25, 97%, 53%);
    width: auto;
    border: 0px none;
    height: 45px;
    width: 100%;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    transition: 0.5s;
}

#submit-btn:active {
    background-color: white;
    color: hsl(25, 97%, 53%);
}

.thanks{
    text-align: center;
    position: relative;
    top: -100%;
    margin: 27px;
    animation: fade 1s forwards;
    display: none;
}

.icon-tq {
    margin-top: 10px;
    height: 95px;
    width: max-content;
}

.resbox {
    background-color: hsl(210, 20%, 18%);
    padding: 5px 15px;
    display: inline-block;
    border-radius: 50px;
    margin: 20px 0 0;
}

.rating {
    color: hsl(25, 97%, 53%);
    margin-top: 4px;
    font-size: 14px;
}

.text {
    margin: 25px 0 0;
}

.text h2 {
    color: white;
    margin: 0 0 13px;
}
.text p {
    color: hsl(216, 12%, 54%);;
    font-size: 14px;
    line-height: 22px;
}

@keyframes fade {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0px);
    }
}

@media only screen and (min-width: 426px) {
    body {
        display: flex;
        justify-content: center;
    }
    
    .main {
        background-color: hsl(212, 28%, 12%);
        margin: 0 0;
        border-radius: 27px;
        width: 415px;
        overflow: hidden;
    }
    
    .info {
        margin: 27px 0 25px;
    }

    .info h1 {
        color: hsl(0, 0%, 100%);
        margin-bottom: 15px;
        font-size: 30px;
    }
    
    .info p {
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
        color: hsl(216, 12%, 54%);
        line-height: 23px;
    }

    .icon-star {
        background-color: hsl(210, 20%, 18%);
        text-align: center;
        display: inline-block;
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }

    .star {
        padding-top: 15px;
        height: 16px;
        width: 16px;
    }

    .rate {
        background-color: hsl(210, 20%, 18%);
        display: inline-block;
        margin: auto;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 16px;
        transition: 0.5s;
    }

    .submit {
        margin: 30px 0 8px;
    }

    #submit-btn {
        color: white;
        background-color: hsl(25, 97%, 53%);
        width: auto;
        border: 0px none;
        height: 45px;
        width: 100%;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 400;
        letter-spacing: 3px;
    }

    #submit-btn:hover {
        background-color: white;
        color: hsl(25, 97%, 53%);
    }

    .thanks{
        text-align: center;
        position: relative;
        top: -100%;
        margin: 27px;
        display: none;
    }
    
    .icon-tq {
        margin-top: 10px;
        height: 100px;
        width: max-content;
        display: inline-block;
    }
    
    .resbox {
        background-color: hsl(210, 20%, 18%);
        padding: 5px 15px;
        display: inline-block;
        border-radius: 50px;
        width: max-content;
        margin: 20px 0 0;
    }
    
    .rating {
        color: hsl(25, 97%, 53%);
        margin-top: 4px;
        font-size: 14px;
    }
    
    .text {
        margin: 25px 0 0;
    }
    
    .text h2 {
        color: white;
        margin: 0 0 13px;
    }
    .text p {
        color: hsl(216, 12%, 54%);;
        font-size: 16px;
        line-height: 22px;
    }
}
