/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: monospace;
    background-color: #000;
    color: #ddd; /* Default text color */
    height: 100vh;
}

/* Fullscreen container */
.full-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #000;
    z-index: 1;
}

/* ASCII art scaling for smaller screens */
.ascii-art {
    display: inline-block; /* Ensure the span is treated as a block */
}

@media (max-width: 768px) {
    .ascii-art {
        transform: scale(0.3) !important; /* Scale down to 70% on smaller screens */
        transform-origin: top left; /* Ensure scaling is from the top-left corner */
    }
}

/* Login form */
#loginForm {
    text-align: center;
}

#googleLoginBtn {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ddd;
    border: 2px ridge #555; /* Lighter border */
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

#googleLoginBtn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: #eee; /* Lighter hover text */
    border-color: #777; /* Lighter hover border */
}

/* Character form */
#characterForm {
    display: flex;
    flex-direction: column;
    gap: 20px;  /* This already provides spacing between form elements */
    align-items: center;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 90%;
    margin: 0 auto;
}

/* Add a specific class or target the second label to add extra margin */
#characterForm label[for="characterGender"] {
    margin-top: 10px; /* Add extra space before the gender label */
}

/* Or alternatively, add margin to the bottom of the name input */
#characterName {
    margin-bottom: 10px;  /* Add extra space after the name input */
}

#characterForm label {
    color: #ffffff;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
    width: 100%;
    text-align: center;
    display: block;
    margin-bottom: 5px;
}

/* Separate styles for input and select */
#characterForm input {
    background-color: #111;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px;
    font-family: monospace;
    width: 100%;
    font-size: 1.1em;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
    outline: none;
    text-align: center;
    border-radius: 0;
}

/* Style the select element to remove glossy appearance in Safari */
#characterForm select {
    background-color: #111;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 10px;
    font-family: monospace;
    width: 100%;
    font-size: 1.1em;
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
    outline: none;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 0;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

/* Remove the focus ring in Safari */
#characterForm select:focus {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    outline: none;
}

#characterForm input:focus,
#characterForm select:focus {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Style the select options */
#characterForm select option {
    background-color: #111;
    color: #ffffff;
    padding: 5px;
}

/* Add space under the gender dropdown */
#characterGender {
    margin-bottom: 15px;
}

#playBtn {
    background-color: #111;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 30px;
    font-family: monospace;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    letter-spacing: 2px;
    width: 100%;
}

#playBtn:hover {
    background-color: #ffffff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Load game button styling */

#loadBtn {
    background-color: #111;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 30px;
    font-family: monospace;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    letter-spacing: 2px;
    width: 100%;
}

#loadBtn:hover {
    background-color: #ffffff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Terminal container */
#terminal-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
}

#terminal {
    height: 100vh !important;
    width: 100vw !important;
}

/* Terminal customization */
.terminal {
    --color: #ffff;
    --background: #000;
    --size: 1.2;
    font-family: monospace;
}

/* Terminal specific styles */
.terminal-wrapper {
    height: 100vh !important;
    width: 100vw !important;
    background-color: #000;
}

/* Override any default terminal colors */
.terminal,
.terminal .terminal-output div div,
.terminal .prompt {
    --color: #ffff;
    --background: #000;
}

.cmd {
    background-color: transparent !important;
}

/* Floating mute button */
.floating-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.7);
    color: #eee; /* Lighter mute text */
    border: 2px solid #555;
    padding: 8px 20px; /* Increased padding for larger buttons */
    font-family: 'Courier New', monospace;
    font-size: 1.1em; /* Increased font size */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    text-shadow: 1px 1px 2px #000; /* Add text shadow */
}

.floating-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
}

/* Volume container styling */
.volume-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #111;
    color: #eee; /* Lighter mute text */
    border: 2px solid #555;
    padding: 8px 20px; /* Increased padding for larger buttons */
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px #000; /* Add text shadow */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    width: auto;
    max-width: 86px; /* Slightly smaller max width */
}

.volume-container:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.volume-label {
    margin-bottom: 5px; /* Reduced margin */
    font-size: 0.9em; /* Smaller font size */
    letter-spacing: 1px;
}

#volumeSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 70px; /* Slightly smaller width */
    height: 4px; /* Slightly smaller height */
    background: #333;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.3s;
    margin: 4px 0;
}

#volumeSlider:hover {
    opacity: 1;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #ffffff;
    cursor: pointer;
    border-radius: 0;
}

#volumeSlider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #ffffff;
    cursor: pointer;
    border-radius: 0;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 100;
}

#privacy {
    background-color: transparent;
    color: #ddd; /* Lighter privacy text */
    border: none;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 2px #000;
}

#privacy:hover {
    color: #fff; /* Lighter hover text */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #555;
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    color: #ddd;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.close {
    float: right;
    cursor: pointer;
    font-size: 28px;
    color: #ddd;
}

.close:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terminal {
        --size: 1;
    }

    .modal-content {
        margin: 20% auto;
        width: 90%;
    }

#saveBtn {
    top: 60px;
}

/* Update floating button styles to match the white theme */
.floating-btn {
    position: absolute;
    right: 10px;
    z-index: 100;
    padding: 10px 20px; /* Increased padding for bigger buttons */
    border: 1px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em; /* Slightly larger font */
    min-width: 100px; /* Ensure minimum width */
    text-align: center;
}

.floating-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.volume-container {
    position: absolute;
    right: 10px;
    z-index: 100;
    cursor: pointer;
    padding: 10px 20px; /* Increased padding for bigger buttons */
    font-size: 1.1em; /* Slightly larger font */
    transition: all 0.3s ease;
    min-width: 100px; /* Ensure minimum width */
    text-align: center;
}
}