body{
    font-family: 'Red Hat Display', sans-serif;
    font-size: 16px;
    font-weight: 500;
    background-color: hsl(225, 100%, 94%);
    background-image: url(../images/pattern-background-desktop.svg);
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#container{
    width: 400px;
    background-color:  hsl(0, 0%, 100%);
    text-align: center;
    border-radius: 15px;
}

#sub-container{
    padding: 40px;
}

#container .illustration-hero{
    width: 100%;
    height: auto;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#container h2{
    font-weight: 900;
}

#sub-container > p:nth-of-type(1){
    line-height: 1.5em;
}

#container .details{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: hsl(225, 100%, 98%);
    border-radius: 15px;
    font-size: 14px;
}

#container .details img{
    width: 40px;
    position: relative;
    top: 30px;
}

#container .details p{
    font-size: 14px;
    position: relative;
    top: -15px;
    line-height: 1.5em;
    font-weight: 900;
}

#container .details span{
    position: relative;
    left: 33px;
    top: 5px;
    font-size: 14px;
    font-weight: 500;
}

#container .details a{
    position: relative;
    left: -20px;
}

#container .details a:hover{
    color: hsl(223, 47%, 23%);
    text-decoration: none;
}

#container button{
    padding: 10px;
    width: 100%;
    background-color: hsl(245, 75%, 52%);
    border-radius: 12px;
    border: none;
    color: hsl(0, 0%, 100%);
    margin-top: 20px;
}

#container button:hover{
    background-color: hsl(224, 51%, 41%);
    cursor: pointer;
}


.attribution { 
    font-size: 11px; text-align: center; 
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

@media screen and (max-width: 400px) {
    #body{
        background-image: url(../images/pattern-background-mobile.svg);
        background-repeat: no-repeat;
        background-size: cover;
    }

    #container{
        width: 90%;
    }

    #sub-container > p:nth-of-type(1){
        font-size: 15px;
    }

    #container .details img{
        width: 30px;
        position: relative;
        top: 30px;
    }

    #container .details p{
        font-size: 12px;
    }

    #container .details span{
        position: relative;
        left: 25px;
        top: 5px;
        font-size: 12px;
        font-weight: 500;
   }

    #container .details a{
        position: relative;
        left: -15px;
        font-size: 12px;
    }


}