/* Fonts */
@font-face {
    font-family: 'EternalUI';
    src: url('../font/EternalUiBold-p7mZ1.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'EternalUI';
    src: url('../font/EternalUiRegular-BWZGd.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#dos {
    width: 960px;
    height: 600px;
    border: 2px solid #333;
    box-shadow: 0 0 40px rgba(179, 0, 0, 0.3);
}

/* Loading screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #b30000;
    font-family: 'Courier New', monospace;
    z-index: 1000;
}

.loading-gif {
    width: 400px;
    height: auto;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Game selector */
.game-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 500;
    display: flex;
    gap: 8px;
    font-family: 'EternalUI', sans-serif;
}

.game-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #666;
    padding: 8px 16px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s ease;
}

.game-btn:hover {
    border-color: #b30000;
    color: #999;
}

.game-btn.active {
    background: #b30000;
    border-color: #b30000;
    color: #fff;
    box-shadow: 0 0 15px rgba(179, 0, 0, 0.5);
    cursor: default;
}

/* Game logo */
.game-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 200px;  /* fixed width instead of height */
    height: auto;
    z-index: 500;
    filter: drop-shadow(0 0 10px rgba(179, 0, 0, 0.5));
}

/* Auto-hide controls */
.game-logo,
.game-selector {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

body.controls-hidden .game-logo {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

body.controls-hidden .game-selector {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'EternalUI', sans-serif;
    font-size: 0.75rem;
    color: #444;
    z-index: 100;
}

.footer .separator {
    margin: 0 8px;
    color: #333;
}

.footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #b30000;
}

