/*
general
*/
html,body{
    height: 100vh;
    margin: 0;
    padding: 0;
}
body{
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: outfit, Arial;
}
/*
variables
*/
:root {
    /*Colors*/
    --background: hsl(216, 12%, 8%);
    --card: hsl(214, 23%, 14%);
    --btn: hsl(213, 19%, 18%);
    --btnhover: hsl(217, 12%, 63%);
    --btnactive: hsl(25, 97%, 53%);
    --btnsubmit: hsl(25, 97%, 53%);
    --txt: #FFF;
    --txt2: #A8B1BF;
}
/*
main layout
*/
main{
    color: #fff;
}
/*
main card layout
*/
.card{
    max-width: 21em;
    height: fit-content;
    background: var(--card);
    padding: 1.5em;
    border-radius: 1.2em;
}
.card p{
    color: var(--txt2);
}
.card-img{
    width: 45px;
    height: 45px;
    background-color: var(--btn);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
}
.card-img img{
    width: 16px;
}
/*
typography
*/
@font-face {
    font-family: outfit;
    src: url('../fonts/Outfit/Outfit-VariableFont_wght.ttf');
}
h1{
    font-weight: 500;
    font-size: 28px;
}
p {
    font-weight: 300;
    font-size: 15px;
    margin-top: 8px;
    text-align: left;
}
/*
rating bar
*/
.card form{
    margin: 2em 0 0 0;
}
.card label{
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: var(--btn);
    text-align: center;
    line-height: 50px;
    border-radius: 100%;
    color: var(--txt2);
    cursor: pointer;
}
.card input[type="radio"]{
    appearance: none;
    margin: 0;
    padding: 0;
    width: 0;
}
.card input[type="radio"]:hover + label{
    background-color: var(--btnhover);
    color: #FFF;
}

.card input[type="radio"]:checked + label{
    background-color: var(--btnactive);
    color: #FFF;
}
#rating-1{
    order: 1;
}

.star-list{
    padding: 0 auto;
    display: flex;
    justify-content: space-between;
}
.card button{
    background-color: var(--btnsubmit);
    text-transform: uppercase;
    width: 100%;
    margin: 2em 0 0.5em 0;
    padding: 15px;
    border: none;
    color: #fff;
    border-radius: 2em;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
}
button:active{
    background-color: #FFF;
    color: var(--btnsubmit);
}
/*
thanks card
*/
.thanks-card{
    text-align: center;
    padding-bottom: 8px;
}
.thanks-card p{
    text-align: center;
}
.thanks-card img{
    width: 45%;
}
.card-header{
    padding: 1em 0 0.5em 0;
}
.info-bullet{
    background-color: var(--btn);
    width: fit-content;
    height: 30px;
    line-height: 28px;
    margin: auto;
    padding: 0 1em;
    border-radius: 2em;
    opacity: 0.9;
}
.info-bullet p, .info-bullet span{
    color: var(--btnsubmit);
    font-size: 15px;
}
/*footer*/
footer{
    position: fixed;
    right: 0;
    bottom: 0;
    background-color: hsl(0, 0%, 0%);
    padding: .25em;
    border-radius: 1em;
    opacity: .5;
}
.attribution{
    color: var(--txt2);
    font-size: .9em;
}
.attribution a{
    color: var(--btnhover);
}
.attribution a:hover{
    color: var(--txt);
}
/*
mobile phones layout
*/
@media only screen and (max-width: 375px){
    /*typography*/
    h1{
        font-size: 26px;
    }
    /*card*/
    .card{
        max-width: 75%;
    }
    .card-img{
        width: 40px;
        height: 40px;
    }
    .thanks-card img{
        width: 50%;
    }
    /*rate bar*/
    .card label{
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
}