body {
    font-family: "lato", sans-serif;
    background-image: url("bg.jpg")
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 1s;
    padding-top: 80px
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover, .offcanvas a:focus{
    color: #f1f1f1;
}

.main21:hover, .offcanvas a:focus{
    color: #f1f1f1;
    transition: 0.3s;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.main21 .closebtn {
    position: relative;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    color: black;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
}

#main2 {
    transition: margin .5s;
    padding: 16px;
}

#main21 {
    transition: height .5s;
}

#main31 {
    transition: height .5s;
}

#main41 {
    transition: height .5s;
}

#main51 {
    transition: height .5s;
}

#main61 {
    transition: height .5s;
}


#switch {
    transition: margin-left .5s;
    padding: 16px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}