@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

:root{
    --White: hsl(0, 0%, 100%);
    --Light-gray: hsl(212, 45%, 89%);
    --Grayish-blue: hsl(220, 15%, 55%);
    --Dark-blue: hsl(218, 44%, 22%);
}

*, ::before, ::after{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background-color: var(--Grayish-blue);
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    
}

.qr-main{
    width: 30rem;
    height: 45rem;
    
    display: flex;
    flex-direction: column;
    align-items: center;

    position: absolute;
    left: 50%;
    top: 50%;

    margin-top: -22.5rem;
    margin-left: -15rem; 
}
.qr-div{
    max-width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   
    background-color: var(--White);
   
    border-radius: 1.5rem;
}
.qr-section{
   
    min-width: 100%;
    height: 55%;
    max-height: 60%;
    
    display: flex;
    justify-content: center;
    align-items: center;

}



.qr-pic{
    
    width: 90%;
    min-height: 100%;
}
img{
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: cover;
   
}

.qr-article{

    min-height: 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 1.6rem;
    padding: 1rem 3.7rem ;
    margin-top: 1rem;
    
}
.article-title{
    color: var(--Dark-blue);
    font-size: 1.9rem;
    font-weight: 700;
}
.article-subtitle{
    color: var(--Grayish-blue);
    
    text-align: center;
    font-weight: 400;
    font-size: 1.4rem;
}

footer{
    position:absolute;

    bottom: 0;
    left: 50%;
    margin-left: -10rem;
}
.attribution{
    width: 20rem;
}

@media (max-width:375px) {
    body{
        width: 375px;
        max-height: 800px;
    }
    .qr-main{
        width: 18rem;
        height: 30rem;
        
    
        margin-top: -15rem;
        margin-left: -9rem; 
    }

    .qr-div{
        max-width: 100%;
        height: 100%;
    
        border-radius: .5rem;
    }
    .qr-section{
    
        max-height: 80%;

    }
    .qr-pic{
    
        width: 90%;
        min-height: 100%;
    }
    img{
        width: 100%;
        height: 100%;
        border-radius: 1rem;
        object-fit: cover;
       
    }
    
    .qr-article{
    
        height: 30%;
        
        row-gap: .6rem;
        padding: .5rem 2rem ;
        margin-top: .5rem;
        
    }
    .article-title{
        color: var(--Dark-blue);
        font-size: 1.2rem;
        font-weight: 700;
    }
    .article-subtitle{
        color: var(--Grayish-blue);
        
        text-align: center;
        font-weight: 400;
        font-size: .8rem;
    }
}

