::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none; /* สำหรับ Firefox */
}

body {
    font-family: "Noto Sans Thai", serif;
    background: url('https://media2.giphy.com/media/NKEt9elQ5cR68/giphy.gif') no-repeat center center fixed;
    background-size: cover;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* พื้นหลัง GIF */
.background-img {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: blur(2px);
}

/* Particles.js */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.top-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 96%;
    height: 10vh;
    background: rgba(17, 17, 17, 0.7);
    padding: 0px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.logo-link {
    text-decoration: none;
}

.logo-link:hover .logo {
    opacity: 0.7;
    transform: scale(1.1);
}

.top-bar .logo {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #00d4ff;
    transition: opacity 0.3s ease-in-out;
}

.top-bar .logo img {
    height: 39px;
    margin-right: 10px;
    border-radius: 50%;
}

.top-bar .discord-link {
    color: white;
    text-decoration: none;
    font-size: 1em;
    background: #7289da;
    padding: 10px 30px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    margin-right: 50px;
}

.top-bar .discord-link:hover {
    background: #5b6eae;
    transform: scale(1.1);
}

.logo-link:hover .logo {
    opacity: 0.7;
}

.rainbow-text {
    font-size: 4em;
    text-shadow: 0 0 50px rgba(161, 159, 159, 0.8);
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    background-size: 400%;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow-animation 3s infinite;
    font-weight: 700;
}

@keyframes rainbow-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#sidebar {
    position: fixed;
    left: 0;
    top: 10vh;
    width: 50px; /* เริ่มต้นแสดงเฉพาะไอคอน */
    height: 90vh;
    background: #26274ad9;
    transition: width 0.3s ease-in-out;
    overflow: hidden; /* ซ่อนเนื้อหาที่เกิน */
}

#sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar ul li {
    padding: 15px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    white-space: nowrap;
}

#sidebar ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

#sidebar ul li i {
    font-size: 20px;
    color: white;
}

#sidebar ul li span {
    opacity: 0;
    transition: opacity 0.3s;
}

#sidebar:hover ul li span {
    opacity: 1;
}

#sidebar ul li:hover {
    background: #191a36;
}

#home a::before {
    content: "";
    display: inline-block;
    width: 20px; /* ปรับขนาด */
    height: 20px;
    background-image: url('../assces/Icon/menu.png'); /* ใส่ URL ไอคอน */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 15px;
    vertical-align: middle;
}

#game ::before {
    content: "";
    display: inline-block;
    width: 20px; /* ปรับขนาด */
    height: 20px;
    background-image: url('../assces/Icon/games.png'); /* ใส่ URL ไอคอน */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 15px;
    vertical-align: middle;
}


#game {
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

#about a::before{
    content: "";
    display: inline-block;
    width: 20px; /* ปรับขนาด */
    height: 20px;
    background-image: url('../assces/Icon/info-button.png'); /* ใส่ URL ไอคอน */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 15px;
    vertical-align: middle;
}

#contact a::before{
    content: "";
    display: inline-block;
    width: 20px; /* ปรับขนาด */
    height: 20px;
    background-image: url('../assces/Icon/discord.png'); /* ใส่ URL ไอคอน */
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 15px;
    vertical-align: middle;
}

#hr-dd{
    width: 80%;
}

.dropdown-menu {
    padding: 15px;
    display: none;
    list-style: none;
    width: 150px;
}

.dropdown-menu li{
    padding: 0;
}
