h1,p,a{
    font-family: 'Kanit', sans-serif;
    text-align: center;
    color: white;
}

h1{
    font-size: 50px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%)translateY(-40%);
}

p{
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%)translateY(-50%);
}


.container{
    height: 839px;
    margin: 0 auto;
}

body {
    margin: 0;
    padding: 0;
    background: #000; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    background: linear-gradient(to top,#2c3e50,#000 ); 
}

main {
    margin-top: 100px;
}

.topnav {
    position: fixed;
    width: 100%;
    top: 0;
}


nav {
    background-color: #000;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 95%;
    z-index: 999;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin: 0 10px;
}

nav a {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #fff;
    color: #000;
}

img {
    max-height: 60px; 
    display: flex;
    position: absolute;
    left: 0;
    margin-left: 20px;

}

.ml13 {
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 0.2;
    font-family: 'Kanit', sans-serif;
  }
  
  .ml13 .letter {
    display: inline-block;

  }


    @media (max-width: 450px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        list-style-type: none;
        padding-right: 65px;
        display: flex;
        top: 3%;
        left: 10%;
        transform: translateX(-10%)translateY(-3%);
    }

    nav li {
        margin: 8px;
    }

    h1{
        font-size: 5px;
        position: absolute;
        top: 43%;
        left: 50%;
        transform: translateX(-50%)translateY(-30%);
    }

    .ml13 {
        font-size: 3em;
        text-transform: uppercase;
        letter-spacing: 0.2;
        font-family: 'Kanit', sans-serif;
      }
      
      .ml13 .letter {
        display: inline;
    
      }

      p{
        font-size: 16px;
        position: absolute;
        top: 55%;
        left: 50%;
        transform: translateX(-50%)translateY(-50%);
    }

    .container{
        height: 830px;
        margin: none;
    }

    body{
        display: inline-table;
        background: linear-gradient(to top,#2c3e50,#000 ); 
    }

    .topnav {
        position: fixed;
        width: 100%;
        top: 0;
    }
    
    
    nav {
        background-color: transparent;
        padding: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        width: 500px;
    }
    
    
    nav a {
        text-decoration: none;
        color: #fff;
        padding: 3px;
        border: 1px solid #fff;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
        font-size: 15px;
    }
    
    nav a:hover {
        background-color: #fff;
        color: #000;
    }

    img { 
        display: flex;
        position: absolute;
        margin-left: -50px;
        right: auto;
        margin-top: -12.5px;
        bottom: auto;
        transform: rotate(90deg);
        max-height: 60px;
    }
    
}

@media (max-width: 782px){

    nav li {
        margin: 8px;
    }

    .topnav {
        position: absolute;
        width: 100%;
        top: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        list-style-type: none;
        display: flex;
        top: 3%;
        left: 10%;
        transform: translateX(-10%)translateY(-3%);
    }


    nav {
        background-color: transparent;
        padding-left: 30px;
        padding-right: 0;
        padding-top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: sticky;
        z-index: 999;
    }


    nav a {
        text-decoration: none;
        color: #fff;
        padding: 3px;
        border: 1px solid #fff;
        border-radius: 5px;
        transition: background-color 0.3s, color 0.3s;
        font-size: 15px;
    }

    nav a:hover {
        background-color: #fff;
        color: #000;
    }

    img { 
        display: flex;
        position: absolute;
        margin-left: -50px;
        right: auto;
        margin-top: -12.5px;
        bottom: auto;
        transform: rotate(90deg);
        max-height: 60px;
    }

}

@media screen and (max-width: 1025px) and (min-width: 1023px){

    img {
        max-height: 40px;
        margin-left: 10px;
    }
}

@media (max-width: 400px) {
    h1{
        font-size: 5px;
        position: absolute;
        top: 41%;
        left: 50%;
        transform: translateX(-50%)translateY(-20%);
    }
}

