*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth
}

body{
    font-family: 'Open Sans', sans-serif; 
    color: #222831;
}

main{
    min-height: 100vh; 
    padding:40px;
    margin: 0 auto;
    max-width:60vw;
    animation-name: popup;
    animation-duration: 0.8s;
    animation-fill-mode: backwards;
}


.homepage{
   display:flex;
   flex-direction: row;
   align-items: center;
   flex-wrap: wrap;
   gap:40px;
   padding:40px;
}

header{
    height: 60px;
    width:100%;
    background: #222831;
}

nav{
    width: 60vw;
    height:100%;
    margin:0 auto;
}

nav > ul {
    list-style: none;
    display:flex;
    flex-direction: row;
    align-items: center;
    height:100%;
    justify-content: space-evenly;
    gap: 2rem;
    padding-left:40px;
}

nav > ul > li{
    width:100%;
    height:100%;
}

nav > ul > li > a{
    font-size: 1.6rem;
    width:100%;
    height:100%;
    display:block;
    line-height: 60px;
    text-align: center;
}

nav > ul > li > a:visited, nav > ul > li > a:link{
    color: white;
    text-decoration: none;
}
nav > ul > .active{
    background:red;
}
article{
    width:100%;
    margin:0 auto;
    padding: 40px;
}

.box{
    width: 100%;
    height:400px;
    padding:0;
    position:relative;
}

.box 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;
}

.box  section > p {
    margin-bottom:0;
}

.box:nth-of-type(3){
    justify-self: flex-start;
}

.box > figure{
    height:100%;
    width:100%;
    margin-bottom:0;
}

.box img{
    object-fit: cover;
    background-position: left;
    border-radius:50px;
}

.box img:hover{
    transform:none;
}


figure{
    width:100%;
    height:100%;
    margin-bottom: 40px;
    overflow: hidden;
}

figcaption{
    font-style: italic;
    font-size: 80%;
}

img{
    width: 100%;
    height:100%;
    border-radius: 5px;
    transition:0.2s transform;
}

img:hover{
    transform:scale(1.05);
}

.homepage > h1{
    width:100%;
}
h1{
    font-size: 250%;
    margin-bottom:20px;
    border-bottom: 1px solid black;
}

p{
    margin-bottom: 40px;
    font-size: 1.6rem;
}

footer{
    width:100%;
    height:6rem;
    background:#222831;
    color: white;
    display:flex;
    align-items: center;
}

footer > p{
    width:60vw;
    margin: 0 auto;
    padding-left:80px;
}

audio{
    margin-top: 20px;
    display: block;
}

video{
    width:100%;
    border-radius: 5px;
    margin-top: 20px;

}

.top{
    width:8rem;
    height:8rem;
    background:#222831;;
    color: white;
    font-size: 150%;
    display:flex;
    justify-content: center;
    align-items: center;
    border:none;
    position:fixed;
    bottom:120px;
    right:120px;
    border-radius: 5px;
    text-decoration: none;
}

@keyframes popup {
    from{
        opacity:0;
        transform: translateY(20px);
    }
    to{
        opacity:1;
        transform: translateY(0);

    }
}

@media screen and (max-width:1000px) {
    main{
        max-width:80vw;

    }
    footer > p{
        width:80vw;
    }   
    img:hover{
        transform:none;
    }
    .top{
        bottom:20px;
        right:20px;
        width:60px;
        height:60px;
    }

    header{
        height:auto;
    }
    nav{
        width: 100%;
    }
    
    nav > ul {
        display:block;
        height:100%;
        width:100%;
        padding-left: 0;
    }
    
    nav > ul > li{
        width:100%;
        text-align: center;
        height:80px;
    }
    
    nav > ul > li > a{
        line-height: 80px;
    }
}

@media screen and (max-width:60rem) {
    body{
        font-size: 1.6rem;
    }

    h1{
        font-size: 180%;
    }

    main{
        max-width:100vw;
        padding:20px;
    }

    footer > p{
        width:100vw;
        padding-left:60px;
    }   
}

