*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body{
    font-family: Helvetica, sans-serif;
    background: white;
    background-size: cover;
    font-size: 100%;
}


/**Logo*/
header{
    display: block;
    background: #DCDCDC;
    text-align: center;
    font-size: 1.5em;
    padding: 0.5em;
    color: darkred;
}

h1{
    font: helvetica, sans-serif;
    font-size: 1.5em;
    color: darkred;
    text-align:center;
    padding: 0.3em;
}



/*Navigation*/
#nav {
    background:#DCDCDC;
    height: 2em;
    width: 100%;
    text-align: center;
    
}
#nav ul li{
    display: inline-block;
    line-height: 1em;
    position: relative;
    padding: 0em 1em 0em 1em;
    background: #DCDCDC;
}
#nav ul li a {
    color: black;
    font-size:1em;  
    float:inherit;
    min-width: 4em;
    cursor: pointer;
}
#nav a.active, a:hover{
    /*background: #D8D9D8;*/
    font: darkred;
    font-weight: bolder;
    border-bottom: 0.1em solid darkred;
    transition: .3s;
}
#nav ul li ul{
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    width: 120%;
    transition: 300ms all;
    max-height: 0;
    background: #DCDCDC;
}
#nav ul li:hover > ul{
    max-height: 700px;
}
#nav ul li ul li{
    font-size: 0.9em;
    padding: 0.4em 0em 0.4em 0em;
}
#nav ul li ul li a.active, a:hover{
    font:darkred;
    font-weight:bolder;
    border-bottom: 0.1em solid darkred;
    transition: .3s;
}
.checkbtn {
    font-size: 1.2em;
    color: white;
    float:right;
    line-height: 1.2em;
    margin-right: 10px;
    cursor: pointer;
    display:none;
}
#check {
    display:none;
}
#FormName{
    text-align: center;
    text-decoration-line: underline;
}
#WriteMessage{
    display:block;
    width: 100%;
    max-width: 1000px;
    padding: 1em 4em 0em 4em;
    margin-left:auto;
    margin-right: auto;
    align-items: center;
}
#message1{
    width: 90%;
    height: 90px;
}
.AdminMessageBox{
    background-color: rgb(248, 238, 225);
    font-family: Helvetica, sans-serif;
    font-size: 13px;
    text-align: left;
    border-radius: 10px;
    border: 5px rgb(248, 238, 225) solid;
    padding-left: 5px;
    padding-right: 5px;
} 
.UserMessageBox{
    background-color: rgb(212, 163, 151);
    font-family: Helvetica, sans-serif;
    font-size: 13px;
    text-align: left;
    border-radius: 10px;
    border: 5px rgb(212, 163, 151) solid;
    padding-left: 5px;
    padding-right: 5px;
} 
.case {
    display:block;
    width: 100%;
    max-width: 1000px;
    min-height: 250px;
    padding: 1.5em 4em 1em 4em;
    margin-left:auto;
    margin-right: auto;
    align-items: center;
}


#menubar {
    display:block inline;
    height: 2em;
    background:#DCDCDC;
    text-align: center;
    width: 100%; 
}
#menubar li{
    display: block;
}
#menubar ul li{
    display: inline;
    margin: 0em 0.188em 0em 0.188em;
    padding: 0em;
}
#menubar ul li a{ 
    display: inline;
    color:#454040;
    font-size: 1em;
    line-height:2.5em;
    padding: 0.563em 0.938em 0.563em 0.983em;
    transition: background 0.2s;
}



/*footer*/
footer{
    display: block;
    background: lightgray;
    text-align:center;
    position: fixed;
    bottom:0;
    width: 100%
}
footer ul{
    display:block;
    width: 100%;
    max-width: 980px;
    text-align: center;
    margin: 0px auto;
}
footer ul li{
    display: inline;
    font-size: 0.8em;
    line-height: 2.8em;
    color:white;
    padding: 0em 0.625em 0em 0.625em;
}



@media (max-width:999px){    
    #nav ul li a{
        font-size:0.85em;
    }
}



@media (max-width:700px){
    section{
        z-index: 2;
    }
    .checkbtn{
        display: block;
    }
    ul:target > ul{
        background-color: red;
    }
    #nav ul{
        position: fixed;
        width: 10em;
        height: 100vh;
        background: rgb(133, 133, 133);
        top: 7.7em;
        left:-100%;
        text-align: center;
        transition: all .3s;  
        z-index: 1;     
    }
    #nav ul li{
        display: block;
        margin:50px 0;
        line-height: 30px;
        font: Helvetica, sans-serif;
        font-size: 1em;
        background-color: rgb(133, 133, 133);
    }
    #nav ul li a {
        font-size: 1em;
        color:white;
    }
    #nav a.active,a:hover{
        background: none;
        color: darkred;
    }
    #check:checked~ul{
        left:0;
    }
    #nav ul li ul{
        display: block;
        width: 10em;
        transition: all 500ms;
        max-height: 0;
        overflow: hidden;
        float: top;
        top:-3.1em;
        left: 10em;
        background-color: rgb(133, 133, 133);
    }
    #nav ul li ul li {
        line-height: 5px;
    }
    
    #nav ul li:hover > ul{
        max-height: 500px;
    }
}