/* Mortal Kombat: Defenders of the Realm - Shared Styles */

:root {
    --primary-blue: #0000ff;
    --dark-blue: #0000aa;
    --navy: #000066;
    --dark-navy: #000033;
    --yellow: #ffff00;
    --red: #ff0000;
    --left-column-width: 240px;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-blue);
    background-image: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, #4444ff 100%);
    color: white;
    overflow-x: auto;
    min-width: 800px;
}

/* Resolution Selector */
.resolution-selector {
    position: fixed;
    top: 5px;
    right: 10px;
    z-index: 1000;
    background-color: rgba(0, 0, 100, 0.9);
    border: 2px solid var(--yellow);
    padding: 5px;
    font-size: 12px;
}

.resolution-selector select {
    background-color: var(--dark-navy);
    color: white;
    border: 1px solid var(--yellow);
    padding: 2px;
    font-size: 12px;
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: var(--max-width, 1024px);
    margin: 0 auto;
}

/* Left Column */
.left-column {
    width: var(--left-column-width);
    background-color: var(--dark-blue);
    border-right: 3px solid #000000;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
}

/* Logo Section */
.logo-section {
    padding: 15px;
    text-align: center;
    background-color: var(--primary-blue);
    border-bottom: 2px solid #000000;
}

.logo-section img {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

/* Navigation */
.navigation {
    background-color: var(--navy);
    padding: 0;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.nav-item {
    display: block;
    padding: 10px 15px;
    background-color: var(--dark-navy);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid var(--primary-blue);
    border-bottom: 2px solid #000000;
    margin-bottom: 2px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    transition: all 0.3s;
}

.nav-item:hover {
    background-color: var(--primary-blue);
    color: var(--yellow);
    border-color: var(--yellow);
}

/* Right Column */
.right-column {
    flex: 1;
    padding: 0;
    background: linear-gradient(to right, var(--primary-blue), var(--dark-blue));
    position: relative;
    overflow-x: auto;
    min-width: 0;
}

/* Header Banner */
.header-banner {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--navy) 100%);
    border-bottom: 3px solid #000000;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.header-title {
    color: var(--yellow);
    font-size: 22px;
    font-weight: bold;
    text-shadow: 3px 3px 6px #000000;
    margin-bottom: 10px;
    font-family: "Times New Roman", serif;
}

.header-subtitle {
    color: var(--red);
    font-size: 26px;
    font-weight: bold;
    text-shadow: 3px 3px 6px #000000;
    font-family: Impact, sans-serif;
}

.header-image {
    position: absolute;
    right: 0;
    top: 0;
    height: 200px;
    z-index: 5;
}

/* Info Bar */
.info-bar {
    background-color: #000000;
    color: #ffffff;
    padding: 8px;
    text-align: center;
    font-size: 13px;
}

/* Main Content */
.main-content {
    padding: 20px;
}

.content-box {
    background-color: rgba(0, 0, 100, 0.8);
    border: 3px solid #000000;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5);
}

h1 {
    color: var(--yellow);
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px #000000;
    text-align: center;
}

h2 {
    color: var(--yellow);
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 15px;
}

p {
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: justify;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background-color: #000080;
    color: white;
    font-size: 12px;
}

/* Resolution-specific styles */
.res-640x480 {
    --max-width: 640px;
    --left-column-width: 180px;
}

.res-640x480 .nav-item {
    font-size: 11px;
    padding: 8px 10px;
}

.res-640x480 .header-banner {
    height: 150px;
}

.res-640x480 .header-title {
    font-size: 18px;
}

.res-640x480 .header-subtitle {
    font-size: 20px;
}

.res-640x480 .main-content {
    padding: 15px;
}

.res-640x480 h1 {
    font-size: 20px;
}

.res-640x480 p {
    font-size: 12px;
}

.res-640x480 .logo-section img {
    width: 120px;
}

.res-800x600 {
    --max-width: 800px;
    --left-column-width: 200px;
}

.res-800x600 .nav-item {
    font-size: 12px;
    padding: 9px 12px;
}

.res-800x600 .header-banner {
    height: 175px;
}

.res-800x600 .header-title {
    font-size: 20px;
}

.res-800x600 .header-subtitle {
    font-size: 23px;
}

.res-800x600 .logo-section img {
    width: 140px;
}

.res-1024x768 {
    --max-width: 1024px;
    --left-column-width: 240px;
}

.res-1280x1024 {
    --max-width: 1280px;
    --left-column-width: 260px;
}

.res-1280x1024 .nav-item {
    font-size: 14px;
    padding: 11px 15px;
}

.res-1280x1024 .header-banner {
    height: 220px;
}

.res-1280x1024 .header-title {
    font-size: 24px;
}

.res-1280x1024 .header-subtitle {
    font-size: 28px;
}

.res-1280x1024 h1 {
    font-size: 26px;
}

.res-1280x1024 p {
    font-size: 15px;
}

.res-1280x1024 .logo-section img {
    width: 180px;
}

.res-1600x1200 {
    --max-width: 1600px;
    --left-column-width: 290px;
}

.res-1600x1200 .nav-item {
    font-size: 15px;
    padding: 12px 18px;
}

.res-1600x1200 .header-banner {
    height: 250px;
}

.res-1600x1200 .header-title {
    font-size: 26px;
}

.res-1600x1200 .header-subtitle {
    font-size: 32px;
}

.res-1600x1200 h1 {
    font-size: 28px;
}

.res-1600x1200 p {
    font-size: 16px;
}

.res-1600x1200 .main-content {
    padding: 25px;
}

.res-1600x1200 .logo-section img {
    width: 200px;
}

.res-fullscreen {
    --max-width: 100%;
    --left-column-width: 290px;
}

.res-fullscreen .container {
    max-width: 100% !important;
}

/* Additional responsive adjustments */
@media screen and (max-width: 640px) {
    .container {
        flex-direction: column;
    }
    
    .left-column {
        width: 100% !important;
        max-height: 300px;
    }
    
    .navigation {
        display: flex;
        flex-wrap: wrap;
        max-height: none !important;
    }
    
    .nav-item {
        flex: 1 1 45%;
        margin: 2px;
    }
}

/* Ensure content scales properly */
.container {
    transition: max-width 0.3s ease;
}

/* Resolution switching animation */
.container.res-changing {
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Fix for overflow on smaller resolutions */
.res-640x480 .right-column,
.res-800x600 .right-column {
    min-width: auto;
    overflow-x: auto;
}

/* Gallery adjustments for different resolutions */
.res-640x480 .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
}

.res-800x600 .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
}

.res-1024x768 .gallery-grid,
.res-1280x1024 .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
}

.res-1600x1200 .gallery-grid,
.res-fullscreen .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
    border: 1px solid #000000;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border: 1px solid var(--yellow);
}

/* Animations */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

.header-image img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

/* Tables */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Marquee for older browser feel */
marquee {
    display: block;
}
