@font-face {
    font-family: 'MinecraftSeven';
    src: url('/Minecraft\ Seven_2.ttf') format('truetype');
    font-display: swap;
}

body {
    background-image: url('/dirt\ \(1\).png');
    background-repeat: repeat;
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: multiply;
    background-size: 64px 64px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    color: #ffffff;
    position: relative;
    overscroll-behavior: none;
    overflow: hidden;
    contain: strict;
}

.minecraft-title {
    font-family: 'MinecraftSeven';
    font-size: 150px;
    color: #FFFFFF;
    margin-top: 40px;
    font-weight: normal;
    transform: none;
    letter-spacing: -6px;
    width: 800px;
    filter: drop-shadow(5px 5px #3F3F3F);
    will-change: transform;
}

.version-label {
    font-family: 'MinecraftSeven';
    font-size: 20px;
    position: absolute;
    top: 8px;
    left: 8px;
    color: #A5A5A5;
    text-shadow: 1px 1px #000000;
}

.splash-text {
    font-family: 'MinecraftSeven';
    transform: rotate(-20deg);
    position: absolute;
    top: 100px;
    right: 260px;
    text-shadow: 2px 2px #3F3F3F;
    font-size: 32px;
    color: #FFFF00;
    animation: bounce 2s infinite ease-in-out;
    will-change: transform;
}

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

.menu-container {
    margin-top: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.menu-button {
    font-family: 'MinecraftSeven';
    background-color: #5C5C5C;
    border: 2px solid #000000;
    border-bottom: 4px solid #000000;
    border-right: 4px solid #000000;
    color: #E0E0E0;
    padding: 16px;
    font-size: 26px;
    cursor: pointer;
    text-align: center;
    text-shadow: 2px 2px #373737;
    width: 100%;
    transition: background-color 0.1s;
    position: relative;
    transform: translateZ(0);
}

.menu-button:hover {
    background-color: #707070;
}

.menu-button:active {
    border: 2px solid #000000;
    border-top: 4px solid #000000;
    border-left: 4px solid #000000;
    border-bottom: 2px solid #000000;
    border-right: 2px solid #000000;
    background-color: #505050;
}

.bottom-buttons {
    display: flex;
    gap: 12px;
    width: 100%;
}

.bottom-buttons .menu-button {
    font-size: 26px;
    padding: 16px;
}

.bottom-text {
    font-family: 'MinecraftSeven';
    font-size: 18px;
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: #A5A5A5;
    text-shadow: 1px 1px #000000;
}

.menu-screen {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

.menu-screen.active {
    display: flex;
    contain: content;
}

.menu-header {
    font-family: 'MinecraftSeven';
    font-size: 48px;
    color: white;
    text-shadow: 2px 2px #3F3F3F;
    margin: 20px 0;
}

.world-list {
    width: 100%;
    max-width: 800px;
    margin-bottom: 20px;
    background-color: #1F1F1F;
    border: 2px solid #404040;
    padding: 4px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #404040 #1F1F1F;
    contain: content;
}

.world-list::-webkit-scrollbar {
    width: 12px;
}

.world-list::-webkit-scrollbar-track {
    background: #1F1F1F;
}

.world-list::-webkit-scrollbar-thumb {
    background-color: #404040;
    border: 3px solid #1F1F1F;
    border-radius: 6px;
}

.world-item {
    background-color: #1F1F1F;
    border: 2px solid #404040;
    padding: 16px;
    margin: 4px;
    cursor: pointer;
}

.world-item:hover {
    background-color: #2F2F2F;
}

.world-item.selected {
    background-color: #3F3F3F;
}

.world-item.banned {
    background-color: rgba(139, 0, 0, 0.3);
    border: 2px solid #ff0000;
}

.world-name {
    font-family: 'MinecraftSeven';
    color: white;
    font-size: 24px;
}

.world-details {
    font-family: 'MinecraftSeven';
    color: #808080;
    font-size: 18px;
    margin-top: 4px;
}

.button-row {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.button-row .menu-button {
    flex: 1;
}

.create-world-form {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    background-color: #1F1F1F;
    border: 2px solid #404040;
    margin: 20px;
    padding: 20px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    font-family: 'MinecraftSeven';
    color: white;
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
    text-shadow: 2px 2px #000000;
}

.minecraft-input {
    width: 100%;
    padding: 12px;
    font-family: 'MinecraftSeven';
    font-size: 20px;
    background-color: #000000;
    border: 2px solid #404040;
    color: white;
    margin-top: 8px;
}

.create-world-buttons {
    margin-top: 40px;
}

.singleplayer-buttons {
    margin-top: 20px;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/dirt\ \(1\).png');
    background-repeat: repeat;
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: multiply;
    background-size: 64px 64px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'MinecraftSeven';
}

.loading-progress {
    width: 400px;
    background-color: #000000;
    border: 2px solid #404040;
    padding: 2px;
    margin-top: 10px;
}

.loading-bar {
    height: 20px;
    background-color: #66CC33;
    width: 0%;
    transition: width 0.5s ease;
}

.loading-text {
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px #000000;
    margin-bottom: 5px;
}

.crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1000;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: white;
}

.crosshair::before {
    left: 50%;
    width: 2px;
    height: 20px;
    transform: translateX(-50%);
}

.crosshair::after {
    top: 50%;
    height: 2px;
    width: 20px;
    transform: translateY(-50%);
}

#game-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #87CEEB;
    cursor: none;
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.camera-touch-area {
    position: fixed;
    right: 0;
    top: 0;
    width: 50%;
    height: calc(100% - 280px);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.0);
    touch-action: none;
}

.mobile-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 280px;
    z-index: 1001;
    pointer-events: none;
    padding: 20px;
    touch-action: none;
    display: none;
}

@media (max-width: 768px) {
    .minecraft-title {
        width: 90%;
        height: auto;
        font-size: 60px;
        margin-top: 40px;
    }

    .menu-container {
        margin-top: 60px;
        width: 90%;
    }

    .menu-button {
        padding: 12px;
        font-size: 18px;
        margin-bottom: 8px;
    }

    .splash-text {
        font-size: 24px;
        right: 20%;
        top: 80px;
    }

    .world-list {
        max-height: 200px;
        width: 90%;
    }

    .world-item {
        padding: 12px;
    }

    .world-name {
        font-size: 18px;
    }

    .world-details {
        font-size: 14px;
    }

    .create-world-form {
        width: 90%;
        padding: 15px;
    }

    .form-group label {
        font-size: 18px;
    }

    .minecraft-input {
        padding: 8px;
        font-size: 16px;
    }

    .mobile-controls {
        display: block;
        height: 250px;
        padding: 10px;
    }

    .camera-touch-area {
        height: calc(100% - 250px);
    }

    .crosshair {
        width: 16px;
        height: 16px;
    }

    .mobile-pause-button {
        display: block;
    }

    .options-container {
        width: 90%;
        padding: 15px;
    }

    .option-group {
        margin-bottom: 15px;
    }

    .option-label {
        font-size: 16px;
    }

    .slider-container {
        gap: 8px;
    }

    .minecraft-slider {
        height: 16px;
    }

    .slider-value {
        font-size: 14px;
        min-width: 50px;
    }

    .toggle-button {
        padding: 6px 12px;
        font-size: 16px;
        min-width: 80px;
    }

    .warning-content {
        width: 85%;
        padding: 20px;
    }

    .warning-content h2 {
        font-size: 20px;
    }

    .warning-content p {
        font-size: 14px;
    }
    
    /* Mobile-specific controls display */
    .option-group.mobile-only {
        display: block;
    }
    
    /* Adjust pause menu for mobile */
    .pause-menu-content {
        width: 85%;
        max-width: 300px;
    }
    
    .pause-menu .menu-button {
        padding: 15px 10px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    /* Game notification adjustments */
    .game-notification {
        width: 80%;
        font-size: 16px;
        padding: 15px;
    }
}

@media (max-width: 380px) {
    .mobile-movement {
        bottom: 40px;
        left: 10px;
        width: 150px;
        height: 150px;
    }
    
    .d-pad-button {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .mobile-actions {
        right: 180px;
        bottom: 70px;
    }
    
    .mobile-jump, .mobile-break {
        width: 80px;
        height: 60px;
        font-size: 18px;
    }
    
    .mobile-camera-area {
        width: 140px;
        height: 140px;
        bottom: 20px;
        right: 20px;
    }
}

.touch-device {
    -webkit-tap-highlight-color: transparent;
}

.touch-device .menu-button:active {
    background-color: #707070;
    transform: scale(0.98);
}

.touch-device .d-pad-button:active {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

* {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

input, textarea {
    touch-action: auto;
    user-select: auto;
    -webkit-user-select: auto;
}

.options-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #404040;
}

.option-group {
    margin-bottom: 24px;
}

.option-label {
    font-family: 'MinecraftSeven';
    color: white;
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    text-shadow: 2px 2px #000000;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.minecraft-slider {
    flex-grow: 1;
    height: 20px;
    -webkit-appearance: none;
    background: #404040;
    border: 2px solid #000000;
    outline: none;
    transform: translateZ(0);
}

.minecraft-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 30px;
    background: #808080;
    border: 2px solid #000000;
    cursor: pointer;
}

.minecraft-slider::-moz-range-thumb {
    width: 20px;
    height: 30px;
    background: #808080;
    border: 2px solid #000000;
    cursor: pointer;
}

.slider-value {
    font-family: 'MinecraftSeven';
    color: white;
    min-width: 60px;
    text-align: right;
    font-size: 20px;
    text-shadow: 2px 2px #000000;
}

.toggle-container {
    display: flex;
    gap: 12px;
}

.toggle-button {
    font-family: 'MinecraftSeven';
    background-color: #5C5C5C;
    border: 2px solid #000000;
    color: #E0E0E0;
    padding: 8px 16px;
    font-size: 20px;
    cursor: pointer;
    text-shadow: 2px 2px #373737;
    min-width: 120px;
    text-align: center;
    transform: translateZ(0);
}

.toggle-button:hover {
    background-color: #707070;
}

.options-buttons {
    margin-top: 32px;
    margin-bottom: 16px;
}

.options-container .menu-button {
    font-size: 20px;
    padding: 12px;
}

.mobile-only {
    display: none;
}

.mobile-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.warning-content {
    background-image: url('/dirt\ \(1\).png');
    background-repeat: repeat;
    background-color: rgba(0, 0, 0, 0.8);
    background-blend-mode: multiply;
    background-size: 64px 64px;
    padding: 30px;
    border: 2px solid #404040;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.warning-content h2 {
    font-family: 'MinecraftSeven';
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.warning-content p {
    font-family: 'MinecraftSeven';
    color: #CCCCCC;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.warning-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.warning-button {
    font-family: 'MinecraftSeven';
    background-color: #5C5C5C;
    border: 2px solid #000000;
    color: #E0E0E0;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
}

.warning-button:hover {
    background-color: #707070;
}

.ban-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.ban-content {
    background-image: url('/dirt\ \(1\).png');
    background-repeat: repeat;
    background-color: rgba(139, 0, 0, 0.9);
    background-blend-mode: multiply;
    background-size: 64px 64px;
    padding: 30px;
    border: 2px solid #ff0000;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.ban-content h2 {
    font-family: 'MinecraftSeven';
    color: #ff0000;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px #000000;
}

.ban-content p {
    font-family: 'MinecraftSeven';
    color: #ffffff;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 1px 1px #000000;
}

.ban-status {
    font-family: 'MinecraftSeven';
    color: #ff0000;
    font-size: 16px;
    margin-top: 5px;
    text-shadow: 1px 1px #000000;
}

@keyframes glitch {
    0% {
        transform: translate(0) rotate(-20deg);
        opacity: 1;
    }
    20% {
        transform: translate(-5px, 5px) rotate(-20deg);
        opacity: 0.8;
    }
    40% {
        transform: translate(5px, -5px) rotate(-20deg);
        color: #ff0000;
    }
    60% {
        transform: translate(-5px, -5px) rotate(-20deg);
        opacity: 0.8;
    }
    80% {
        transform: translate(5px, 5px) rotate(-20deg);
        color: #ff0000;
    }
    100% {
        transform: translate(0) rotate(-20deg);
        opacity: 1;
    }
}

.banned-user .minecraft-title,
.banned-user .menu-button,
.banned-user .world-item,
.banned-user .menu-header,
.banned-user .version-label,
.banned-user .bottom-text {
    color: #ff0000 !important;
    text-shadow: 2px 2px #660000 !important;
}

.banned-user .splash-text {
    color: #ff0000 !important;
    animation: glitch 0.5s infinite !important;
    text-shadow: 2px 2px #660000 !important;
}

.banned-user body {
    background-color: rgba(139, 0, 0, 0.6) !important;
    background-blend-mode: multiply !important;
}

.banned-user .menu-button {
    background-color: #660000 !important;
    border-color: #330000 !important;
}

.banned-user .menu-button:hover {
    background-color: #880000 !important;
}

.performance-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.performance-warning .warning-content {
    background-image: url('/dirt\ \(1\).png');
    background-repeat: repeat;
    background-color: rgba(0, 0, 0, 0.8);
    background-blend-mode: multiply;
    background-size: 64px 64px;
    padding: 30px;
    border: 2px solid #404040;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.performance-warning h2 {
    font-family: 'MinecraftSeven';
    color: #FFD700;
    font-size: 24px;
    margin-bottom: 20px;
}

.performance-warning p {
    font-family: 'MinecraftSeven';
    color: #FFFFFF;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.performance-warning .warning-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mods-menu {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #404040;
}

.texture-pack-list {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.texture-pack-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 2px solid #404040;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.texture-pack-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.texture-pack-item.selected {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.texture-pack-preview {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    image-rendering: pixelated;
    border: 1px solid #404040;
}

.texture-pack-info {
    flex-grow: 1;
}

.texture-pack-name {
    font-family: 'MinecraftSeven';
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.texture-pack-description {
    font-family: 'MinecraftSeven';
    color: #808080;
    font-size: 14px;
}

.texture-pack-buttons {
    display: flex;
    gap: 10px;
    padding: 10px;
    justify-content: space-between;
}

#video-settings-menu .options-container {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

#video-settings-menu .option-group {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#video-settings-menu .option-label {
    font-family: 'MinecraftSeven';
    color: #CCCCCC;
    font-size: 20px;
    flex: 1;
}

#video-settings-menu .toggle-container {
    min-width: 120px;
}

#video-settings-menu .toggle-button {
    width: 100%;
    font-family: 'MinecraftSeven';
    background-color: #404040;
    border: 2px solid #1f1f1f;
    color: #ffffff;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

#video-settings-menu .toggle-button:hover {
    background-color: #505050;
}

#video-settings-menu .slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

#video-settings-menu .minecraft-slider {
    flex: 1;
}

#video-settings-menu .slider-value {
    font-family: 'MinecraftSeven';
    color: #CCCCCC;
    font-size: 16px;
    min-width: 80px;
    text-align: right;
}

#video-settings-menu .button-row {
    margin-top: 20px;
    text-align: center;
}

.controls-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #404040;
    margin: 0 auto;
}

.control-group {
    margin-bottom: 24px;
}

.control-label {
    font-family: 'MinecraftSeven';
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
    text-shadow: 2px 2px #000000;
    border-bottom: 2px solid #404040;
    padding-bottom: 8px;
}

.control-bindings {
    padding: 0 20px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.binding-label {
    font-family: 'MinecraftSeven';
    color: #CCCCCC;
    font-size: 18px;
    text-shadow: 1px 1px #000000;
}

.key-binding {
    font-family: 'MinecraftSeven';
    background-color: #404040;
    border: 2px solid #1f1f1f;
    color: #ffffff;
    padding: 8px 16px;
    font-size: 16px;
    min-width: 100px;
    text-align: center;
    cursor: pointer;
    text-shadow: 1px 1px #000000;
    transform: translateZ(0);
}

.key-binding:hover {
    background-color: #505050;
}

.key-binding.listening {
    background-color: #606060;
    border-color: #ffffff;
}

#controls-menu .button-row {
    margin-top: 32px;
    text-align: center;
}

#controls-menu .menu-button {
    font-size: 20px;
    padding: 12px;
    width: auto;
    min-width: 200px;
}

.chat-container {
    position: fixed;
    left: 10px;
    bottom: 10px;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    font-family: 'MinecraftSeven';
    color: white;
    z-index: 1000;
}

.chat-message {
    margin: 5px 0;
    word-wrap: break-word;
    text-shadow: 1px 1px black;
}

@media (max-width: 768px) {
    .chat-container {
        width: 200px;
        font-size: 14px;
    }
}

.multiplayer-message {
    font-family: 'MinecraftSeven';
    color: #CCCCCC;
    font-size: 18px;
    text-align: center;
    margin: 20px 0;
    text-shadow: 2px 2px #000000;
}

.multiplayer-warning {
    display: none;
    font-family: 'MinecraftSeven';
    color: #CCCCCC;
    font-size: 16px;
    text-align: left;
    margin: 10px auto;
    max-width: 600px;
    padding: 0 20px;
    text-shadow: 2px 2px #000000;
    line-height: 1.8;
}

.server-input-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 20px;
}

.server-input-container label {
    font-family: 'MinecraftSeven';
    color: white;
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    text-shadow: 2px 2px #000000;
}

.multiplayer-buttons {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
}

#server-ip {
    width: 100%;
    padding: 10px;
    font-family: 'MinecraftSeven';
    font-size: 16px;
    background-color: #000000;
    border: 2px solid #404040;
    color: white;
}

#connect-server {
    flex: 2;
}

#mp-cancel {
    flex: 1;
}

.chat-input {
    font-family: 'MinecraftSeven';
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #404040;
    color: white;
    padding: 8px;
    font-size: 16px;
}

.chat-input:focus {
    outline: none;
    border-color: #ffffff;
}

.login-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-warning .warning-content {
    background-image: url('/dirt\ \(1\).png');
    background-repeat: repeat;
    background-color: rgba(0, 0, 0, 0.8);
    background-blend-mode: multiply;
    background-size: 64px 64px;
    padding: 30px;
    border: 2px solid #404040;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.login-warning h2 {
    font-family: 'MinecraftSeven';
    color: #FFD700;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px #000000;
}

.login-warning p {
    font-family: 'MinecraftSeven';
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 1px 1px #000000;
}

.login-warning .warning-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-warning .warning-button {
    font-family: 'MinecraftSeven';
    background-color: #5C5C5C;
    border: 2px solid #000000;
    color: #E0E0E0;
    padding: 12px;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.login-warning .warning-button:hover {
    background-color: #707070;
}

@media (max-width: 768px) {
    .login-warning .warning-content {
        width: 85%;
        padding: 20px;
    }

    .login-warning h2 {
        font-size: 24px;
    }

    .login-warning p {
        font-size: 16px;
    }

    .login-warning .warning-button {
        font-size: 18px;
        padding: 10px;
    }
}

.multiplayer-mode-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
}

.mode-button {
    font-family: 'MinecraftSeven';
    background-color: #5C5C5C;
    border: 2px solid #000000;
    color: #E0E0E0;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    flex: 1;
    max-width: 200px;
    text-align: center;
    transition: background-color 0.2s;
}

.mode-button:hover {
    background-color: #707070;
}

.mode-button.active {
    background-color: #707070;
    border-color: #FFFFFF;
}

.multiplayer-mode {
    display: none;
    width: 100%;
}

.multiplayer-mode.active {
    display: block;
}

.worlds-list-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid #404040;
    max-height: 400px;
    overflow-y: auto;
    contain: content;
}

.worlds-list {
    padding: 0;
}

.worlds-list .loading-worlds {
    font-family: 'MinecraftSeven';
    color: #CCCCCC;
    font-size: 18px;
    padding: 20px;
    text-align: center;
    animation: loadingPulse 1.5s infinite ease-in-out;
}

.worlds-list-header {
    display: flex;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-bottom: 2px solid #404040;
    position: sticky;
    top: 0;
    z-index: 2;
}

.world-name-header {
    flex: 3;
    font-family: 'MinecraftSeven';
    color: #FFFFFF;
    font-size: 18px;
    padding-left: 10px;
}

.world-status-header, .world-players-header {
    flex: 1;
    font-family: 'MinecraftSeven';
    color: #FFFFFF;
    font-size: 18px;
    text-align: center;
}

.world-item {
    display: flex;
    padding: 15px 10px;
    border-bottom: 1px solid #404040;
    cursor: pointer;
    transition: background-color 0.2s;
    align-items: center;
}

.world-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.world-item.selected {
    background-color: rgba(255, 255, 255, 0.2);
    border-left: 4px solid #55FF55;
}

.world-name {
    flex: 3;
    font-family: 'MinecraftSeven';
    color: #FFFFFF;
    font-size: 16px;
    padding-left: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.world-status, .world-players {
    flex: 1;
    font-family: 'MinecraftSeven';
    color: #FFFFFF;
    font-size: 16px;
    text-align: center;
}

.world-status.online {
    color: #55FF55;
}

.world-status.offline {
    color: #FF5555;
}

.world-status.busy {
    color: #FFAA00;
}

.server-address {
    display: none;
}

.world-item.create-public-world {
    background-color: rgba(40, 80, 40, 0.3);
    border: 2px solid #55FF55;
    transition: background-color 0.2s;
}

.world-item.create-public-world:hover {
    background-color: rgba(40, 80, 40, 0.5);
}

.example-worlds-header {
    font-family: 'MinecraftSeven';
    padding: 10px;
    color: #FFD700;
    text-align: center;
    font-size: 18px;
    margin-top: 15px;
    border-top: 1px solid #555;
}

.example-world {
    background-color: rgba(20, 60, 20, 0.3);
    border: 2px solid #3a7a3a;
}

.example-world:hover {
    background-color: rgba(20, 60, 20, 0.5);
}

.example-label {
    font-size: 12px;
    background-color: rgba(255, 215, 0, 0.3);
    color: #FFD700;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.frame-rate-monitor {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-family: monospace;
    font-size: 12px;
    z-index: 1000;
}

.performance-indicator {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    font-family: 'MinecraftSeven';
    font-size: 12px;
    z-index: 1000;
}

.performance-toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 12px;
    font-family: 'MinecraftSeven';
    font-size: 14px;
    cursor: pointer;
    z-index: 1000;
    border: 1px solid #555;
    border-radius: 4px;
}

@keyframes loadingPulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.mobile-controls > * {
    transform: translateZ(0);
    backface-visibility: hidden;
}

#game-view .player-model {
    transform: scale(1.2);
}

.player-hand {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 30%;
    height: 30%;
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 1;
}

.debug-info {
    position: fixed;
    top: 40px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    z-index: 1000;
    pointer-events: none;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    gap: 10px;
}

.tab-button {
    font-family: 'MinecraftSeven';
    background-color: #5C5C5C;
    border: 2px solid #000000;
    color: #E0E0E0;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    min-width: 150px;
    text-align: center;
}

.tab-button.active {
    background-color: #707070;
    border-color: #FFFFFF;
}

.mod-list {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.mod-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 2px solid #404040;
    margin-bottom: 10px;
    background-color: rgba(20, 20, 20, 0.8);
}

.mod-item.disabled {
    opacity: 0.6;
}

.mod-info {
    flex: 1;
    margin-bottom: 10px;
}

.mod-toggle {
    display: flex;
    justify-content: flex-end;
}

.mod-name {
    font-family: 'MinecraftSeven';
    color: white;
    font-size: 20px;
    margin-bottom: 5px;
}

.mod-description {
    font-family: 'MinecraftSeven';
    color: #A0A0A0;
    font-size: 14px;
    line-height: 1.3;
}

.mod-config-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #555;
}

.mod-config-group {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.mod-config-label {
    font-family: 'MinecraftSeven';
    color: #CCCCCC;
    width: 120px;
    font-size: 16px;
}

.select-container {
    flex: 1;
}

.minecraft-select {
    font-family: 'MinecraftSeven';
    background-color: #5C5C5C;
    border: 2px solid #000000;
    color: #E0E0E0;
    padding: 8px 12px;
    font-size: 18px;
    width: 100%;
    cursor: pointer;
    text-shadow: 2px 2px #373737;
}

.minecraft-select option {
    background-color: #3C3C3C;
    color: #E0E0E0;
    padding: 8px;
}

@media (max-width: 600px) {
    .menu-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .mod-config-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mod-config-label {
        margin-bottom: 5px;
        width: 100%;
    }
    
    .select-container, .slider-container {
        width: 100%;
    }
}

.game-notification {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    border: 2px solid #404040;
    font-family: 'MinecraftSeven';
    font-size: 18px;
    max-width: 80%;
    text-align: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
    pointer-events: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.fade-out {
    animation: fadeOut 0.5s ease-in-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, 10px); }
}