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

body, html{
    background-color: hsl(212, 45%, 89%);
    font-family: 'Outfit', sans-serif;
}

main{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;

    width: 380px;
    height: 600px;

    position: absolute;
    right: 50%;
    bottom: 50%;
    transform: translate(50%, 50%);

    padding: 10px;
    border-radius: 15px;
    background-color: hsl(0, 0%, 100%);
}

section#image{
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}
section#image img{
    width: 100%;
    border-radius: 15px;
}

section#content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;

    padding: 20px;
}
section#content h1{
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: hsl(218, 44%, 22%);
}
section#content p{
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    color: hsl(220, 15%, 55%);
}

footer div.attribution{
    position: fixed;
    left: 50%;
    bottom: 2%;
    transform: translate(-50%);

    font-size: 11px; 
    text-align: center;
}
footer div.attribution a{
    color: hsl(228, 45%, 44%); 
}

@media (max-width: 400px){
    main{
        gap: 0;
        padding: 5px;
        width: 370px;
        height: 580px;
    }
}

@media (max-height: 650px){
    main{
        flex-direction: row;
        width: 700px;
        height: 350px;
        padding: 15px;
        gap: 0;
    }
    section#image img{
        margin-left: 15px;
    }
}
