/*       css menu -------------------------- */

.titletext1 {
  font-size: 1.1em;
  color: #ddd;
  padding: 0px 0 0 0px;
  display: inline-block;
}

.titleline  {
  position: fixed;
  top: 10px;
  //right: 20px;
  width: 100%;
  height: 60px;
  //background: transparent;
  z-index: 10000;
}

.tmenu  {
  background: linear-gradient(to bottom, rgba(0,0,80,1), rgba(40,40,125,1), rgba(0,0,80,1));
  color: #fff;
  font-family: Calibri;
  font-size: 1.35em;
  cursor: pointer;
  padding: 0 0 0 0;
  margin: 0;
  font-weight: bold;
  font-size: .9em;
}

.atmenu  {
  background: linear-gradient(to bottom, rgba(220,220,220,1), rgba(255,255,255,1), rgba(220,220,220,1));
  color: #888;
  font-family: Calibri;
  font-size: 1.1em;
  //cursor: pointer;
  padding: 20px 20px;
  margin: 0;
  font-weight: bold;
  font-size: .9em;
}


.menu li a  {
  text-decoration: none;
  //color: #fff;
  //background: transparent;
  font-size: 1.25em;
  padding: 10px 10px 10px 10px;
}

* {
  font-family: Calibri;
  box-sizing: border-box;
}

.top-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  color: #FFF;
  height: 55px;
  padding: 0;
}

.menu {
  display: flex;
  flex-direction: row;
  list-style-type: none;
  margin: 0 120px 0 0;
  padding: 0;
  position: absolute;
  right: 0px;
  //background:#000;
}

.menu > li {
  margin: 0 1px;
  padding: 5px 0px;
  overflow: hidden;
  transition: opacity .5s;
  opacity: 0;
} 

li  {
  border-radius: 5px;
}

.menu-button-container {
  display: flex;
  height: 60%;
  width: 30px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-content: center;
  position: absolute; 
  right: 75px;
  background: linear-gradient(to bottom, rgba(220,220,220,1), rgba(255,255,255,1), rgba(220,220,220,1));
  box-shadow: 0 0 3px #aaa;
  border-radius: 5px 0 0 5px;
}

.menu-button-container span {
  padding: 4px 5px 0 5px;
  margin-left: 98px;
  height: 37px;
  color: #558;
  font-weight: bold;
  font-size: 1.35em;
  background: linear-gradient(to bottom, rgba(220,220,220,1), rgba(255,255,255,1), rgba(220,220,220,1));
  box-shadow: 0 0 3px #aaa;
  border-radius: 0 5px 5px 0;
}

#menu-toggle {
  display: none;
}
.menu-button  {
  background: red;
}

.menu-button,
.menu-button::before,
.menu-button::after {
  display: absolute;   
  background-color: #558;
  position: absolute;
  height: 3px;
  width: 22px;
  transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
  border-radius: 2px;
}

#menu-toggle:checked ~ .menu li {
  opacity: 1;
}

.menu-button::before {
  content: '';
  margin-top: -7px;
}

.menu-button::after {
  content: '';
  margin-top: 7px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
  margin-top: 0px;
  transform: rotate(135deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
  background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
  margin-top: 0px;
  transform: rotate(-135deg);
}

@media (max-width: 1000px) {
  .titletext1 {
    font-size: .8em;
  }
  .tmenu  {
    padding-top: 0px;
    background: transparent;
  }
  .menu-button-container {
    display: flex;
    width: 35px;
    position: absolute;
    right: 75px;
  }
  .menu {
    display: flex;
    position: absolute;
    top: 0;
    margin-top: 50px;
    left: 0;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
  }
  .menu li  {
    padding-bottom: 0px;
    opacity: 1;
    }
  .menu li a  {  
    position: relative;
    top: -4px;
    font-size: 1.35em;  
  }
  #menu-toggle ~ .menu li {
    width: calc(100% - 10px);
    height: 0px;
    margin:  1px 0;
    padding: 0;
    border: 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li {
    border: 1px solid #333;
    height: 40px;
    padding: 0 0 20px 0;
    transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
  }
  #menu-toggle:checked ~ .menu li span {
    padding: 8px;
  }
  .menu > li {
    display: flex;
    justify-content: center;
    //margin-bottom: 20px;
    //padding: 50px;
    //height: 100px;
    //width: 50%;
    //color: yellow;
    //background: linear-gradient(to bottom, rgba(0,0,80,.9), rgba(40,40,125,.9), rgba(0,0,80,.9));
    background: rgba(20,20,20,.7);
  }
  .menu > li:not(:last-child) {
    border-bottom: 1px solid #444;
  }
}
