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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
}

.game-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.game-header {
    background-color: #1e1e1e;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-header h1 {
    margin: 0;
    color: #0af;
    font-size: 1.5rem;
}

.back-button {
    color: #0088ff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    background-color: #252525;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #333333;
}

.controls-info {
    font-size: 0.8rem;
    color: #888;
}

.emulator-container {
    flex: 1;
    display: flex;
    padding: 20px;
}

@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-button {
        align-self: flex-start;
    }
}

/* Game list styles */
.game-list {
    width: 300px;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 5px;
    margin-right: 20px;
}

.game-list h2, .instructions h2 {
    color: #0af;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 0;
}

.system-section {
    margin-bottom: 20px;
}

.system-section h3 {
    color: #0af;
    font-size: 1rem;
    margin-bottom: 10px;
}

.system-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.game-link {
    display: block;
    padding: 8px 10px;
    background-color: #252525;
    border-radius: 5px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #f0f0f0;
    transition: background-color 0.3s;
}

.game-link:hover {
    background-color: #333333;
}

.rom-ready {
    display: inline-block;
    margin-left: 5px;
    width: 8px;
    height: 8px;
    background-color: #00cc00;
    border-radius: 50%;
}

.instructions {
    flex: 1;
    padding: 20px;
    background-color: #1e1e1e;
    border-radius: 5px;
}

.instructions p {
    line-height: 1.6;
}

.note {
    background-color: #252525;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.controls-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.controls-table th, .controls-table td {
    border: 1px solid #333;
    padding: 8px;
    text-align: left;
}

.controls-table th {
    background-color: #252525;
}

/* Secret tip for Konami code */
.secret-tip {
    margin-top: 30px;
    padding: 15px;
    background-color: #252525;
    border-radius: 5px;
    color: #888;
    font-style: italic;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s;
}

.secret-tip:hover {
    color: #0af;
}

@media (max-width: 900px) {
    .emulator-container {
        flex-direction: column;
    }
    
    .game-list {
        width: auto;
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Emulator screen styles */
.emulator-screen {
    width: 100%;
    background-color: #000;
    aspect-ratio: 16/9;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    overflow: hidden;
}

/* EmulatorJS Custom Styling */
#game {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Style EmulatorJS menu */
.ejs--3def36d861be8c7a8ce326d7e2434b87 {
    border-radius: 8px !important;
    overflow: hidden !important;
}

/* Style menu buttons */
.ejs--de9288f431e3c432a093abc3eba7f347 {
    background-color: #333 !important;
    border-radius: 4px !important;
}

.ejs--de9288f431e3c432a093abc3eba7f347:hover {
    background-color: #0088ff !important;
}

/* Hidden Easter Egg element */
.easter-egg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.easter-egg.active {
    opacity: 1;
    pointer-events: all;
}

.easter-egg h2 {
    color: #ff8800;
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.easter-egg p {
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 600px;
    text-align: center;
}

.easter-egg button {
    background-color: #ff8800;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.easter-egg button:hover {
    background-color: #cc6c00;
}

/* Feature Cards */
.emulator-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 10px;
}

.feature-card {
    flex: 1;
    min-width: 200px;
    background-color: #252525;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #0088ff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.feature-card p {
    margin: 0;
    font-size: 14px;
    color: #cccccc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .emulator-container {
        flex-direction: column;
    }
    
    .game-list, .instructions {
        min-width: 100%;
    }

    .emulator-features {
        flex-direction: column;
    }

    .feature-card {
        margin-bottom: 10px;
    }
} 