@font-face {
    font-family: Mowgli;
    src: url("../assets/font/MowgliScript-Regular\ 400.otf") format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
  font-family: BerkshireSwash;
  src: url("../assets/font/BerkshireSwash-Regular.ttf") format('truetype');
  font-weight: bold;
  font-style: normal;
}

html, body{
    margin: 0;
    padding: 0;
}

.container{
    width: 100%;
    height: 100%;
}

/*---------------- navigation --------------*/
.container .topheader{
    height: 110px;
    position: fixed;
    width: 100%;
    background-color: white;
    margin-top: -110px;
    z-index: 999;
}
.container .content{
    margin-top: 110px;
    width: 100%;
    height: 100%;
    position: relative;
}

.container .nav{
    height: 90px;
    background: rgb(255, 252, 252);
    position: fixed;
    width: 100%;
    padding-top: 10px;
    margin-left: 40%;
}

.container .nav div{
    margin-left: 20px;
}

.container .logo {
    position: fixed;
    width: 250px;
    height: 100px;  
    margin-left: 15%;
    font-family: Mowgli;
    font-size: 45px;
    padding-top: 20px;
    padding-left: 20px;
  }

.container a {
    color: aliceblue;
    text-decoration: none;
    padding-top: 60px;
    text-align: center;
    line-height: 40px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.desktop {
    display: block;
}
.mobile {
        display: none;
        width: 100%;
        height: 400px;
}
/** mobile classes */
.menu{
    display: inline-block;
    padding-top: 25px;
    padding-right: 10px;
    z-index: 8;
}

.icon-menu{
    width: 40px;
    float: right;
    margin-top: 25px;
    margin-right: 20px;
}

.container .menu {
    position: fixed;
    width: 100%;
    background-color: white;
}

.menu .menu-items{
    width: 100%;
    height: 30px;
}
.menu .menu-items .menu-item{
    border-bottom: 1px dashed gray;
    padding-left:20px;
}

.menu .menu-items .menu-item #home1{
    color: #73AD21;
    font-weight: bold;
}
.menu .menu-items .menu-item #bio1{
    color: #f87103;
    font-weight: bold;
}
.menu .menu-items .menu-item #books1{
    color: #5db6d0;
    font-weight: bold;
}
.menu .menu-items .menu-item #news1{
    color:  rgb(216, 156, 44);
    font-weight: bold;
}
.menu .menu-items .menu-item #contact1{
    color: rgb(236, 126, 148);
    font-weight: bold;
}

/****************** page sections  *********************/

canvas{
    /*prevent interaction with the canvas*/
    pointer-events:none;
  }
  
  div.table{
    display:block;
    width:100%;
  }
  
  div.table >div{
    display:flex;
    width:100%;
    flex-direction:horizonal;
  }
  div.table > div >div{
    display: block;
    flex-grow:1;
    border-bottom:1px solid #ddd;
    vertical-align: middle;
    height:30px;
    padding:4px;
  }
  

@media only screen and (max-width: 1024px) {
    .desktop {
        display: none;
    }
    .mobile {
        display: block;
    }
    .logo{
        display: inline-block;
    }
    
    .container .logo{
      padding-left:60px;
      width: 144px;
    }

    .container .menu {
        height: auto;
        z-index: 9999;
    }
    .menu .menu-items{
        height: auto!important;
    }

    .container .books, .container .news, .container .contact{
        height: auto !important;
        min-height: 100vh;
    }
    .container a {
        padding-top: 0;
    }

  }

  @media only screen and (min-width: 700px)  and  (max-width: 1024px){
    .container .logo{
        width: 300px;
        height: 120px;
        margin-left: 30%;
    }
    .icon-menu{
        margin-top: 40px;
    }
  }

  @media only screen and (min-width: 800px)  and  (max-width: 1024px){

  }

  /********************Leaf Animation CSS***************************/

  .falling-leaves {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: calc(100vh - 80px);
    transform: translate(-50%, 0);
    overflow: hidden;
  }
  
  .leaf-scene {
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      width: 100%;
      transform-style: preserve-3d;
  
      div {
        position: absolute;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        background: url('../assets/leaf.png') no-repeat;
        background-size: 100%;
        transform-style: preserve-3d;
        backface-visibility: visible;
      }
    }