body {
    font-family: Arial, sans-serif;
}
.nav-menu {
    display: flex;
    transition: all 0.3s ease-in-out;
}
.nav-toggle {
    display: none;
    transition: transform 0.3s ease-in-out;
}
.nav-toggle.active {
    transform: rotate(90deg);
}
@media screen and (max-width: 767px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(88, 28, 135, 0.85); /* Semi-transparent background */
        backdrop-filter: blur(10px);
        z-index: 1000;
        padding: 0.5rem 0;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        padding: 1rem;
        padding-left: 2rem; /* Add left padding for items */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left; /* Align text to the left */
        transition: background-color 0.3s ease;
    }
    .nav-menu a:last-child {
        border-bottom: none;
    }
    .nav-menu a:hover, .nav-menu a:focus {
        background-color: rgba(255, 255, 255, 0.1);
    }
    .nav-toggle {
        display: block;
    }
}
.game-section {
    background: linear-gradient(
        135deg,
        #8A2BE2, /* Blue Violet */
        #9932CC, /* Dark Orchid */
        #8B008B, /* Dark Magenta */
        #4B0082, /* Indigo */
        #483D8B, /* Dark Slate Blue */
        #00008B, /* Dark Blue */
        #00CED1  /* Dark Turquoise */
    );
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    min-height: 660px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}
@keyframes gradientAnimation {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
.game-container {
    min-height: 661px;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.game-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 2;
}
.play-button {
    background-color: #4B0082;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.play-button:hover {
    background-color: #00CED1;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}
.game-icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}
.game-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}
#game_iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /*pointer-events: none;*/
}
.nav-menu a {
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}
.nav-menu a:hover, .nav-menu a:focus {
    border-color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .game-content {
        padding: 1rem;
    }
    .content-wrapper {
        flex-direction: column-reverse;
    }
    .game-icon {
        margin-bottom: 1rem;
        width: 100px;
        height: 100px;
    }
    .play-button {
        font-size: 0.9rem;
        padding: 0.5rem 1.5rem;
    }
    .nav-menu a {
        font-size: 0.9rem;
    }
}

.website-name {
    font-family: 'Bungee', cursive;
    font-size: clamp(1rem, 5vw, 2rem); /* Responsive font size */
    color: #fff;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    display: inline-block;
    padding: 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent line breaks */
}

@media (min-width: 768px) {
    .website-name {
        animation: bounce 4s infinite;
    }

    .website-name:hover {
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 767px) {
    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-menu a {
        margin-top: 0.5rem;
    }

    .nav-toggle {
        display: block;
    }
}

.fullscreen-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10000;
}

.fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.fullscreen-button svg {
    width: 30px;
    height: 30px;
    display: block;
}

.game-section {
    position: relative;
    width: 100%;
    height: 100%;
}

.game-section.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black !important;
    z-index: 9999;
}

.game-section.fullscreen .game-container,
.game-section.fullscreen #game_iframe {
    width: 100%;
    height: 100%;
}

#game_iframe {
    border: none;
}

/* 语言切换按钮样式 */
.language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* 下拉菜单样式 */
.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
}

/* 下拉菜单选项样式 */
.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: #f7fafc;
    color: #2d3748;
}

@media (max-width: 768px) {
    .language-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 1rem 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        max-height: 50vh;
        overflow-y: auto;
    }

    .dropdown-item {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1rem;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* 添加背景遮罩 */
    .dropdown-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /*.dropdown-backdrop.show {*/
    /*    display: block;*/
    /*}*/
}