@import url('https://fonts.googleapis.com/css?family=Kanit:300,300i,400,500i&display=swap');


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

.nav-bar{
    display: block;
    width: 100%;
    height: 58px;
    position: fixed;
    background: rgba(255,255, 255,.95);
    top: 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.15);
    z-index: 5;
    font-family: Kanit;
}

.logo{
    position: absolute;
    left: 7.5%;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 23px;
    background: #0587FF;
    border: 1px solid #438fd5;
    color: white;
    border-radius: 25px;
    font-style: italic;
    font-weight: 500;
    opacity: .92;
    font-size: 19px;
    text-shadow: 0 1px 2px rgba(0,0,0,.08);
    letter-spacing: .1px;
    text-align: center;
    box-shadow: 
    -1px 0px 3px rgba(0,0,0,0.12),    
    1px 1px 3px rgba(0,0,0,0.25);
    transition: .3s;
}

@keyframes logoAnimate {
    from {
          opacity: 0;
          transform: scale(0);
          transition: all 0.3s ease-in-out 0.2s;
    }
    to {
          opacity: 1;
          transform: scale(1);
          transition: all 0.3s ease-in-out 0.1s;    
    }
}

.logo:hover, .logo:focus{
    box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    border: 1px solid #0086d4;
    cursor: pointer;
    opacity: 1;
    background: #0086d4;
}

#logo-text-op{
    color: #95FF70;
}

.nav-links{
    position: absolute;
    left: 53%;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 390px;
    font-size: 18.5px;
}

#nav-links-op{
    margin-left: 58%;
}

.nav-links a{
    position: absolute;
    top: 50%;
    width: 130px;
    text-align: center;
    transform: translateY(-50%);
    padding: 2.5px 5px;
    margin: 0 25px;
    text-decoration: none;
    font-style: normal;
    font-weight: 300;
    color: #4D92D6;
    transition: .15s;
    text-shadow: 0 2px 1px rgba(0,0,0,.03);
}

.nav-links a:hover{
    color: #FC75FF;
    transform: translateY(-55%);
    text-shadow: 0 2px 3px 1px rgba(0,0,0,.2);
}

#n1{left: 0;}
#n2{left: 130px;}
#n3{left: 260px;}

#fa-button{
    color: #999;
    padding-right: 2px;
}

.mobile-button{
    display: none;
}

.mobile-menu{
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  background-color: rgb(0,0,0);
  background-color: white;
  overflow-x: hidden;
  transition: 0.5s;
  font-family: Kanit;
}

.close-menu{
    display: inline-block;
    position: absolute;
    top: 13.5px;
    right: 5%;
    width: 40px;
    height: 40px;
}

.close-menu{
    cursor: pointer;
}

.close-button-a{
    position: absolute;
    width: 40px;
    left: 0;
    border-left: 2.5px solid #0587FF;
    transform: rotate(-45deg);
}

.close-button-b{
    position: absolute;
    width: 40px;
    left: 0;
    border-left: 2.5px solid #0587FF;
    transform: rotate(-135deg);
}

.link-container{
    position: absolute;
    width: 100%;
    top: 30%;
    text-align: center;
    display: block;
}

.mobile-link{
    margin: 25px 0;
    font-size: 40px;
    color: #449CCD;
    text-decoration: none;
    display: block;
}

.mobile-link:hover, .mobile-link:focus{
    color: #0587FF;
    cursor: pointer;
}

@media (max-width: 1200px) {
    
.nav-links{
    left: 40%;
}

#nav-links-op{
    margin-left: 50%;
}

}

@media (max-width: 1000px) {
    
.nav-links{
    left: 30%;
}

#nav-links-op{
    margin-left: 40%;
}

}

@media (max-width: 800px) {
    
.nav-links{
    display: none;
}

.mobile-button{
    display: inline-block;
    position: absolute;
    top: 13.5px;
    right: 5%;
    width: 40px;
    height: 40px;
}

.mobile-button:hover{
    cursor: pointer;
}

.mobile-bar{
    position: absolute;
    width: 40px;
    left: 0;
    background: #0587FF;
    border: 2.5px solid #777;
}

#bar-1{
    top: 0;
}

#bar-2{
    top: 12px
}

#bar-3{
    top: 24px;
}

.mobile-button:hover #bar-1, .mobile-button:hover #bar-3,.mobile-button:focus #bar-1, .mobile-button:focus #bar-3 {
    border: 2.5px solid #0587FF; 
}

.close-menu{
    display: inline-block;
    position: absolute;
    top: 13.5px;
    right: 5%;
    width: 40px;
    height: 40px;
}

.close-menu{
    cursor: pointer;
}

.close-button-a{
    position: absolute;
    width: 40px;
    top: 13.5px;
    right: 5%;
    border: 2.5px solid #0587FF;
    background: #0587FF;
    transform: rotate(-45deg);
}

.close-button-b{
    position: absolute;
    width: 40px;
    top: 13.5px;
    right: 5%;
    border: 2.5px solid #0587FF;
    background: #0587FF;
    transform: rotate(-135deg);
}

.close-menu:hover .close-button-a, .close-menu:hover .close-button-b, .close-menu:focus .close-button-a, .close-menu:focus .close-button-b{
    border: 2.5px solid #555; 
}

#fa-button{
    margin-right: 7.5px;
}

}

@media (max-width: 650px) {
    
.mobile-button{
    right: 8%;
}

}
