*{
    padding:0;
    margin:0; 
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth; 
}

body{
    font-size: 1.25rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;


}

header, footer{
    background: #222831;
    color: white;
    height: 3.75rem;
}

main{
    padding: 2.5rem;
    min-height: 100vh;
    width: 60%;
    margin:0 auto;

}

nav{
    width: 60vw;
    height: 100%;
    margin:0 auto;

}

nav > ul{
    display: flex;
    list-style: none;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    gap: 1.25rem;
}

nav > ul > li{
    width: 100%;
    height: 100%;
}

.active{
    background: red;
}

nav > ul > li > a{
    height: 100%;
    width: 100%;
    display: block;
    text-align: center;
    line-height: 3.75rem;
    text-decoration: none;
    color: white;

}


h1{
    font-size:250%; 
    margin-bottom:1.25rem;
    border-bottom: 1px solid black;
    font-weight: 500;
}

h2{
    padding-top: 1.875rem;
    padding-bottom: 0.625rem;
}


section{
    width: 100%;
    padding: 2.5rem;
}

article{
    width:100%;
    margin: 0 auto; 
    padding: 2.5rem;
}

.box{
    width: 100%;
    height: 25rem;
    position: relative;
    padding: 0px;
    margin-bottom: 2.5rem;
}

.box > a > figure{
    width: 100%;
    height: 100%;
}

.box > a > figure > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
}

.box > a > figure > img:hover{
    transform: none;
}

.box > a > section{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent,60%,black);
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column; 
    padding: 40px;
    flex-shrink: 0;
}

figure{
    margin-bottom: 2.5rem;
}

img{
    width:100%;
    height: 100%;
    border-radius:5px;
    transition: 0.2s transform;
}

img:hover{
    transform: scale(1.05);
}


p:last-of-type{
    margin-bottom: 0s;
}

figcaption{
    font-size:80%;
    font-style: italic;
    font-weight: 400;
}

audio{
    display:block;
    margin-top:1.25rem;
    padding-bottom: 0.9375rem;
}

video{
    width:100%;
    margin-bottom:2.5rem;
    border-radius:5px;
}

footer{
    height: 3.75rem;
    display:flex;
    align-items: center;
}

footer > p{
    width: 60vw;
    margin:0 auto;
    padding-left:5rem;

}

@media screen and (max-width:1000px) {
    main{
        width: 80vh;
    }

    footer > p{
        width: 80vw;
    }
    img:hover{
        transform: none;
    }

    
}

@media screen and (max-width: 600px) {
    body{
        font-size: 1rem  ;
    }
    main{
        width:100vw; 
        padding: 1.25rem;
    }
    h1{
        font-size: 180%;
    }
    footer > p{
        width: 10vw;
        padding-left: 3.75rem;

    }
}

.top{
    width: 120px;
    height:7.5rem;
    background:black;
    color: white;
    font-size: 150%;
    display:flex;
    justify-content: center;
    align-items: center;
    border:none;
    position:fixed;
    bottom:7.5rem;
    right:7.5rem;
    border-radius: 5px;
    text-decoration: none;
}