@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Orbitron:wght@500&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */
    font-family: 'IBM Plex Sans Thai', sans-serif;
}

html{
    scroll-behavior: smooth;
}
body{
    /* background: #f5f5f5e0; */
    background: #eee8e8;

    
}
/*--------------------------------- Navbar --------------------------------- */
nav{
    background: #ffffffff;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    max-width: 2500px;
    margin: 0 auto;
   
}
nav::after{
    content: '';
    clear: both;
    display: table;
}
nav ul{
    float: right;
    list-style: none;
    margin-right: 40px;
    position: relative;
    margin-top: 10px;
}
nav ul li{
    float: left;
    display: inline-block;
    background-color:#ffffffff;
    margin: 16px 5px;
}
nav ul li a{
    color: rgb(0, 0, 0);
    text-decoration: none;
    line-height: 70px;
    /* font-size: 15px; */
    font-size: clamp(10px, 2.5vw, 15px);

    padding: 8px 10px;
    font-weight: bolder;
    
}
nav ul li a:hover{
    border-radius: 5px;
    box-shadow: 0 0 5px #ff0404, 
                0 0 5px #f10606;
}
nav ul ul li a:hover{
    color: rgb(255, 0, 0);
    box-shadow: none;
}
nav ul ul{
    position: absolute;
    top: 90px;
    border-top: 3px solid rgb(210, 30, 30);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}
nav ul li:hover > ul{
    top: 70px;
    opacity: 1;
    visibility: visible;
}
nav ul ul li{
    position: relative;
    margin: 0px;
    width: 220px;
    float: none;
    display: list-item;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    z-index: 1;
}
nav ul ul li a{
    line-height: 50px;
    /* font-size: 15px; */
    font-size: clamp(10px, 2.5vw, 14px);

    font-weight: bolder;

}
nav ul ul ul li{
    position: relative;
    top: -70px;
    left: 150px;
}
nav .logo a {
    float: left;
    margin-top: 7px;
    margin-bottom: 10px;
    line-height: 70px;
    padding-left: 50px;
}
nav .responsive{
    width: 35%;
    height: 30%;
    margin-bottom: -35px;
    
}


nav input, .show, .icon{
    display: none;
}

@media all and (max-width: 1345px){
    nav ul{
        margin-right: 0px;
        float: left;
    }
    nav.logo a {
        padding-left: 30px;
        width: 100%;
    }
    nav ul li, nav ul ul li{
        display: block;
        width: 100%;
    }
    nav ul ul{
        top:70px;
        position: static;
        border-top: none;
        float: none;
        display: none;
        opacity: 1;
        visibility: visible;
    }
    nav ul ul ul li{
        position: static;
    }
    nav ul ul li{
        border-bottom: 0px;
    }
    nav ul ul ul a{
        padding-left: 80px;
    }
    .show{
        display: block;
        color: rgb(236, 4, 4);
        /* font-size: 17px; */
        font-size: clamp(10px, 2.5vw, 15px);

        padding: 0 20px;
        line-height: 70px;
        cursor: pointer;
        font-weight: bolder;
    }
    .show:hover{
        color: rgb(255, 0, 0);
    }
    .icon{
        display: block;
        color: rgb(230, 11, 11);
        position: absolute;
        right: 40px;
        line-height: 100px;
        font-size: 25px;
        cursor: pointer;
    }
    .icon:hover{
        color: rgb(200, 57, 35));
    }
    nav ul li a:hover{
        box-shadow: none;
        color: rgb(201, 48, 34);

    }
    .show + a, ul{
        display: none;
    }
    [id^=btn]:checked + ul{
        display: block;
    }
    nav .responsive{
        padding-left: 5px;
        width: 30%;
    }
    nav ul li{
        margin: 0px 5px;
    }
    span.cancel:before{
        content: '\f00d';
    }
    
}
/*--------------------------------- Navbar --------------------------------- */



