/* Global Styles */
body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: black;
    font-family: 'Courier New', monospace;
}

/* Content Wrapper (Fullscreen Iframe) */
#content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#art-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* UI Overlay (Top Left Buttons) */
#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Let clicks pass through outside buttons */
}

#buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    align-items: flex-start;
}

/* Retro Button Style (From Mythical Forest) */
.retro-btn {
    padding: 8px 12px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    color: black;
    background-color: #c0c0c0;
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #404040;
    border-bottom: 3px solid #404040;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    text-transform: uppercase;
    outline: none;
    user-select: none;
    text-align: center;
    width: 200px;
    /* Standardize width precisely */
    box-sizing: border-box;
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
    touch-action: manipulation;
}

@media (max-width: 600px) {
    .retro-btn {
        padding: 12px 16px;
        font-size: 16px;
        min-width: 140px;
    }
}

/* Specific styling for the mailto button if needed, but retro-btn handles most */
#mailto-btn {
    pointer-events: auto;
    /* ENABLE CLICKING */
    margin-bottom: 10px;
    /* Space between it and the list */
    background-color: black;
    /* Inverting for 'weirdness' / net art contrast? User said 'my color palette' */
    color: white;
    /* Explicitly keep the bevel borders but maybe adjust contrast if needed,
       but standard white/dark works well for 90s style */
    border-top: 3px solid #ffffff;
    border-left: 3px solid #ffffff;
    border-right: 3px solid #404040;
    border-bottom: 3px solid #404040;
    font-family: 'Courier New', monospace;
    display: block;
    width: 200px;
    /* Match other buttons */
    box-sizing: border-box;
}

#mailto-btn:hover {
    background-color: #202020;
}

#mailto-btn:active {
    /* Swap borders for pressed effect */
    border-top: 3px solid #404040;
    border-left: 3px solid #404040;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    background-color: black;
    /* Keep it black when pressed, or darken slightly */
    box-shadow: none;
    /* Remove shadow to look flat/pressed */
}

.retro-btn:active,
.retro-btn.active {
    background-color: #ffff00;
    border-top: 3px solid #404040;
    border-left: 3px solid #404040;
    border-right: 3px solid #ffffff;
    border-bottom: 3px solid #ffffff;
    box-shadow: none;
    /* Removed transform: translate to keep alignment perfect */
}

/* Settings Modal (Overlay) */
#settings-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* Mobile Detection Overlay */
#mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    color: white;
    z-index: 99999;
    /* Top level blocking */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 20px;
    box-sizing: border-box;
    text-transform: uppercase;
    line-height: 1.5;
}

#mobile-overlay.hidden {
    display: none !important;
}

.mobile-msg-container {
    /* Border removed for cleaner mobile layout */
    padding: 20px;
    width: 100%;
    /* No height constraint, just centered */
    background: black;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.retro-link {
    color: #ffff00;
    text-decoration: underline;
    cursor: pointer;
}

.retro-link:hover {
    background-color: #ffff00;
    color: black;
    text-decoration: none;
}

.retro-window {
    background-color: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    padding: 4px;
    width: 400px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.8);
}

.retro-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.retro-content {
    padding: 10px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 5px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    border: 2px solid #808080;
    border-right-color: white;
    border-bottom-color: white;
    background: black;
    color: #00ff00;
    /* Hacker green */
    box-sizing: border-box;
}

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.button-row .retro-btn {
    min-width: 100px;
    margin: 0;
}

#status-msg {
    margin-top: 10px;
    font-size: 11px;
    color: green;
    text-align: center;
    height: 15px;
}