* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.5;
    height: 80vh;
}

.container {
    width: 100vw;
    height: 100vh;

}




.navbar {
    position:fixed;
    top: 0;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 60px;
    background: rgba(0,0,0,0);
}

.navbar ul {
    display:flex;
    list-style: none;
    width: 100%;
    justify-content: center;
}

.navbar ul li {
    margin: 0 1rem;
    padding: 1rem;
}

.navbar ul li a {
    text-decoration: none;
    text-transform: uppercase;
    color: #f4f4f4;
}


.navbar ul li a:hover {
    color: grey;
}

section {
    display: flex;
    flex-direction: column;
    vertical-align: top;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
}


section h1 {
    font-size: 2.5rem;
}

section p {
    font-size: 1rem;
}

.text {
    display: flex;
    flex-direction: column;
    margin-left:10%;
    margin-right:10%;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 80vw;
    height: 50vh;
}


#dummy {
    display: none;
    background-image: url(1.png), 
                      url(2.png),
                      url(3.png),
                      url(4.png)
}

.diashow {
    animation: animate 50s infinite 0.5s;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80vw;
    height: 90vh;
    margin-top:-50px;
    margin-left:10%;
    margin-right:10%;
    z-index: -1;
}

@keyframes animate{
    0% {
        background-image: url(1.png)
    }
    35% {
        background-image: url(1.png)
    }
    40% {
        background-image: url(2.png)
    }
    55% {
        background-image: url(2.png)
    }
    60% {
        background-image: url(3.png)
    }
    75% {
        background-image: url(3.png)
    }
    80% {
        background-image: url(4.png)
    }
    95% {
        background-image: url(4.png)
    }
    100% {
        background-image: url(1.png)
    }
}


.portrait {
    position:relative;
    max-width:80%;
    max-height:80%;
    margin-top:-10%;
    margin-left:-10%;
    z-index: -1;
}

.animatedsection {
    display: flex;
    margin-top: 10vh;
    margin-bottom: -10vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    height: 80vh;
    width: 100vw;
}

.animatedsection video {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    /**min-width: 100%;
    min-height: 100%;*/
    transform: translate(-50%, -22%);
    /*height: 100%;*/
    width: 100%;
}
/**
@media (min-aspect-ratio: 16/9) {
    #videoBG {
        max-width: 100vw;
        min-width: 100vw;
        width: 100vw;
    }
}*/
@media (max-aspect-ratio: 7/9) {
    .animatedsection video {
        transform: translate(-50%, -50%)
    }
}