* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Kanit", sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #fff; /* This will make the default text color white for better contrast */
}

header {
    background-color: #333;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    margin-bottom: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Adjust padding as needed */
}

.burger-placeholder {
    width: 24px; /* Same as burger menu icon width */
}

.logo {
    flex-grow: 1;
    text-align: center;
}

.logo img {
    height: 10vh; /* Adjust as needed */
}

#burger-menu {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: white; /* Make the burger icon white */
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 0.5rem 0.5rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

#hero {
    margin-bottom: 2rem;
    overflow: hidden;
}

#hero .splide__slide {
    height: 33vh;
    max-height: 400px;
}

#hero .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: #000; /* Optional: adds a background color */
}

#games h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    padding-left: 5vw;
    padding-right: 5vw;
}

.game-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.game-image:hover {
    transform: scale(1.05);
}

.highlighted {
    background-color: #f0f0f0;
    padding: 2rem;
    margin: 2rem 0;
}

footer {
    background-color: #333; /* Adjust as needed */
    color: white;
    padding: 20px 0;
    margin-top: 0; /* Remove any top margin */
    text-align: center;
}

.footer-menu ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.footer-menu ul li {
    margin: 0 1rem;
}

.footer-menu ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-notice {
    font-size: 0.8rem;
}

.footer-notice a {
    color: #fff;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-content {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    position: relative;

    h2{
        color:black;
    }
}

#registration-form {
    display: flex;
    flex-direction: column;
}

#registration-form input,
#registration-form button {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#main-nav.hidden {
    display: none;
}

@media (min-width: 768px) {
    #burger-menu {
        display: none;
    }

    #main-nav.hidden {
        display: block;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-bottom: 0.5rem;
    }
}

.full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

#misc {
    background: linear-gradient(to right, #3498db, #8e44ad);
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-bottom: 0; /* Remove any bottom margin */
}

#misc .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

#misc h2 {
    color: white;
    margin-bottom: 20px;
}

#misc p {
    margin: 0 auto;
    max-width: 600px;
}

#games {
    margin-top: 0;
}