*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}
html{
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}
body{
    height: 500px;

}

body video{
    width:auto;
}
header{
    color: rgb(255, 255, 255);
    display:grid;
    grid-template-rows: 1fr;
    width:100%;
    height:3.6rem;
    text-align: center;
    text-transform: uppercase;
    font-size:50px;
    background-color:black;
}
header h1{
    color:rgb(34, 122, 199);
    text-transform: uppercase;
    font-size:50px;
    text-align: center;
}
header img{
    max-width: 2.5rem;
}
header a{
    text-decoration: none;
}
nav{
    background-color: #1a3f5290;
    margin:0;
}
nav ul{
    display: grid;
    grid-gap: 0;
    padding:0;
    list-style:none;
    grid-template-columns:repeat(6, 1fr);
}

nav ul a{
    height:4rem;
    position:relative;
    text-decoration: none;
    color:white;
    display:block;
    padding:0.8rem;
    text-align:center;
    font-size: 1rem;
    overflow: hidden;
    white-space: nowrap;
}
nav ul a:hover{
    color: lightseagreen;
    background-color: #27607d9b;
}
nav ul ul{
    display: none;
    position:absolute;
    width: 16.65%;
}
nav ul ul li{
    background-color:#1a3f52c1;
    align-items: center;
    width: 100%;
    display: block;
    text-align:center;
    font-size: 1rem;
}
nav li:hover ul{
    background-color: #1a3f5290;
    display: block;
}
#text-overlay{
    text-transform: uppercase;
    text-align: center;
    text-justify: center;
    color:white;
    font-size: 3rem;
    font-weight: bold;
    padding-top: 250px;
    padding-bottom:235px;
}

footer{
    height: 1rem;
    display:grid;
    grid-gap:0;
    color:white;
    background-color: #1a3f5290;
    grid-template-areas: 1fr;
    text-align: center;
}
#background-video{
    width:100vw;
    height: 100vh;
    object-fit:cover;
    position: fixed;
    left:0;
    right:0;
    top:0;
    bottom:0;
    z-index: -1;
}
main{
    background-color: #1a3f52d2;
    display:grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    margin: 100px 20px 120px 20px;
    color:white;
    text-align:left;
}
main h1{
    text-align: center;
}
main a img{
    size:1rem;
}
p{
    text-align:left;
    margin:30px;
    font-size:150%;
    text-indent: 0%;
}

form{
    width: 400px;
    display:block;
}
label{
    text-align: left;
}
input{
    margin:1rem;
    width:100%; 
}
table{
    text-align: center;
    text-transform: uppercase;
    font-size:large;
    border: 1rem;
    height:500px;
    width:100%;
    background-color: rgba(112, 128, 144, 0.567);
}
table thead{
    font-size:xx-large;
    font-weight: bold;
}
.gen{
    font-size:medium;
}

.a_img{
    display:block;
    max-width: 20%;
    margin:0 40%;
}
h2{
    text-align: center;
}
a h2 {
    text-decoration: none;
    color: white;

}
a{
    text-decoration: none;
}
a h2:hover{
    color:lightseagreen;
}
.bottom_img{
    display:block;
    margin:0 25%;
    width:50%;
}
#leemon{
    display:block;
    margin:0 35%;
    width:25%;
}
figcaption{
    text-align: center; 
}
#leemon_caption{
    margin:0 4% 0 0;
}



@media(max-width: 800px)
{
    header{
        height:4rem;
    }
    nav{
        background:0;
        padding:0;
        margin:0;
    }
    nav ul{
        background-color: #1a3f5265;
        display: grid;
        grid-gap:0;
        grid-template-columns: 1fr;
    }
    nav ul li{
        border-width: 1px;
        border-style: solid;
        border-color: white;
        background-color: #1a3f5290;
    }
    nav ul a:hover{
        color: lightseagreen;
    }
    nav ul li:hover ul{
        display:none;
    }

    #text-overlay{
        display: grid;
        grid-template-columns: 1fr;
        text-align:center;
        padding-top:160px 0;

    }
    #text-overlay h1{
        padding-top: 300px;
        font-size:50px;
    }
    #text-overlay h2{
        font-size: 50px;
    }

    main{
        margin-top: 450px;
    }
    main p{
        margin:10;
    }
    table{
        text-transform: uppercase;
        font-size:small;
        border: 1rem;
        height:300px;
        width:100%;
    }
    table thead{
        font-size:large;
        font-weight: bold;
    }
    .gen{
        font-size:small;
    }

}

@media(min-width: 801px) and (max-width: 1160px)
{
    nav ul{
        display:grid;
        grid-template-columns: repeat(3,1fr);
    }
    nav ul ul{
        width:33.4%;
    }
    main{
        margin-top: 200px;
    }
}