body {
    font-family: Arial, sans-serif;
}

.bg-custom {
    background-color: #c0c163;
}
.text-colors {
    color: #856404;
}
.game-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
}
.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) {
     .game-container {
        padding-top: 75%; /* 4:3 宽高比，适合更多移动设备 */

    }
    .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(28, 25, 25, 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(99, 101, 8, 0.1);
    }
    .nav-toggle {
        display: block;
    }
}
.game-section {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0;
}
@keyframes gradientAnimation {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}
.game-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
}

.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;
}
.nav-menu a {
    border: 1px solid rgb(11 11 11 / 30%);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background-color: rgb(158 139 9 / 70%);
}
.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, #da9d0a, #d09e1e);
    -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 */
}



@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;
    }
}