body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Mobile Warning Screen Styles */
#mobile-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    text-align: center;
}

.warning-content {
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff5722;
    border-radius: 10px;
    padding: 30px;
    max-width: 80%;
    color: white;
}

.warning-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.warning-content h2 {
    font-size: 24px;
    margin: 10px 0;
    color: #ff5722;
}

.warning-content p {
    font-size: 16px;
    margin: 10px 0;
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

#loading-content {
    text-align: center;
    color: white;
}

#loading-content h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#loading-bar-container {
    width: 300px;
    height: 8px;
    background-color: #333;
    border-radius: 4px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

#loading-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #81C784);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

#loading-text {
    font-size: 1.2em;
    margin: 20px 0;
    color: #ccc;
}

#play-button {
    background-color: #666;
    color: #999;
    border: 2px solid #666;
    padding: 15px 40px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 8px;
    cursor: not-allowed;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#play-button:enabled {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

#play-button:enabled:hover {
    background-color: #45a049;
    border-color: #45a049;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.6);
    transform: translateY(-2px);
}

#hw-accel-status {
    margin-top: 15px;
    font-size: 0.9em;
    color: #ccc;
}

.hw-accel-on {
    color: #4CAF50 !important;
}

.hw-accel-off {
    color: #ff5722 !important;
}

#hw-accel-warning {
    margin-top: 15px;
    padding: 10px 15px;
    background-color: rgba(255, 87, 34, 0.2);
    border: 1px solid #ff5722;
    border-radius: 5px;
    color: #ff5722;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

#hw-accel-warning p {
    margin: 5px 0;
}

.terminal {
    background-color: #1e1e1e;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: monospace;
    position: relative;
}

.terminal code {
    color: #f8f8f8;
    font-size: 0.9em;
}

#copy-settings-url {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 0 0 10px;
}

#copy-settings-url:hover {
    color: #81C784;
}


.loading-screen-hidden {
    opacity: 0;
    pointer-events: none;
}



#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#exit-message {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    pointer-events: none;
    z-index: 1000;
    font-size: 14px;
}

#instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
    text-align: center;
}



#instructions p {
    margin: 5px 0;
}

#stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    pointer-events: none;
    font-family: monospace;
}

#coordinates, #fps {
    margin: 5px 0;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px; /* Reduced crosshair size */
    pointer-events: none;
    text-shadow: 0 0 3px black;
    opacity: 0;
    transition: opacity 0.3s;
}

#gear-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    text-shadow: 0 0 3px black;
}

#settings-panel {
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    width: 200px;
    display: none;
    z-index: 99;
}

.settings-header {
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.settings-option {
    margin: 8px 0;
    display: flex;
    align-items: center;
}

.settings-option input[type="checkbox"] {
    margin-right: 10px;
}

.settings-option select {
    margin-left: 10px;
    background-color: rgba(50, 50, 50, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 2px 5px;
}

.settings-option button {
    background-color: rgba(50, 50, 50, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 5px;
}

.settings-option button:hover {
    background-color: rgba(70, 70, 70, 0.8);
}