/* background from https://redstapler.co/responsive-css-video-background/ */

@font-face {
    font-family: 'OpenSans-Light';
    src: url('../fonts/opensans-light.ttf') format("truetype"),
         url('../fonts/opensans-light.woff2') format('woff2'),
         url('../fonts/opensans-light.woff') format('woff');
}

html,body {
    font-family: "OpenSans-Light";
    width:100%;
    height: 100%;
    margin: 0;
    font-weight: normal;
    z-index: -1;
}

#backvid{
    margin: 0em;
    padding: 0em;
    position: fixed;
    z-index: -2;
}

@media (min-aspect-ratio: 16/9) {
    #backvid {
        width:100%;
        height: auto;
    }
}
@media (max-aspect-ratio: 16/9) {
    #backvid {
        width:auto;
        height: 100%;
    }
}

@media (max-width: 767px) {
    #videoBG {
        display: none;
    }
    body {
        background: url('poster.jpg');
        background-size: cover;
    }
}

#darken{
    background-color: rgba(0, 0, 0, 0.7);
    position: fixed;
    height: 100vh;
    width: 100%;
    z-index: -1;
}

#main{
    display: flex;
    flex-direction: row;
}

#leftcontainer{
    z-index: 1;
}

#left{
    margin-top: 30vh;
    margin-left: 5vw;
}

#logo{
    margin-top: 1vh;
    width: 45vw;
    z-index: 1;
}

h1{
    font-size: 1.5vw;
    margin-left: 1vw;
    width: 45vw;
    color: white;
    z-index: 100;
    padding: 0;
}

a, a:visited{
    color: white;
}

#mainbuttons{
    display: flex;
    flex-direction:row;
    width: 35vw;
    margin-top: 2vh;
}

#button, #button:visited{
    color: white;
    text-decoration: none;
    padding: 1vh;
    border: 0.1vh solid white;
    border-radius: 1vh;
    white-space: nowrap;
}

#button:hover{
    background-color: rgba(255, 255, 255, 0.1);
}

#mainbuttons #button{
    font-size: 1.0vw;
    margin-left: 5vw;
}

#rightcontainer{
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 6vh;
    min-width: 8vw;
}

#right p{
    font-size: 2.3vh;
    text-align: justify;
    color: gainsboro;
}

#otherbuttons{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: inherit;
}

#otherbuttons #button,#otherbuttons #button:visited{
    font-size: 1vw;
    color: gainsboro;
    border: 0.1vh solid gainsboro;
    margin-left: 2vw;
    margin-right: 2vw;
}

#touch{
    margin-top: 3vh;
}

#end{
    font-size: 2.2vh;
    bottom: 0;
    right: 0;
    margin-bottom: 1vh;
    margin-right: 1vh;
    position: fixed;
    color: gainsboro;
}

p.indented{
    padding-left: 3em;
    padding-right: 3em;
}

@media (max-aspect-ratio: 14/10){
    #main{
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    #left{
        margin-top: 0px;
        margin-left: 0px;
    }
    #logo{
        margin-top: 20vh;
        display: block;
        margin-left: 10%;
        width: 80%;
        z-index: 1;
    }
    h1{
        font-size: 3.0vw;
        text-align: center;
        width:initial;
    }
    #mainbuttons{
        display: flex;
        justify-content: center;
        flex-direction:row;
        margin-left:0;
        width: 100%;
        margin-top: 3vh;
    }

    #mainbuttons #button{
        font-size: 2.2vw;
        margin-left: 1vh;
        margin-right: 1vh;
    }

    #rightcontainer{
        margin-top: 5vh;
        height: initial;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-right: 10vw;
        margin-left: 10vw;
        min-width: 0vw;
    }
    #right{
        width: 100%;
        margin-right: 0;
    }

    #otherbuttons{
        align-items: center;
        justify-content: center;
        width: inherit;
    }

    #otherbuttons #button,#otherbuttons #button:visited{
        font-size: 2.1vw;
        border: 0.1vh solid gainsboro;
        margin-left: 2vw;
        margin-right: 2vw;
    }
    #end{
        font-size: 2.1vh;
        margin-bottom: 1vh;
        margin-right: 2vw;
        margin-top: 4vh;
        position: initial;
        text-align: center;
    }
    p.indented{
        padding-left: 1em;
        padding-right: 1em;
    }
}
