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

/* Body Styling */
body {
    font-family: 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: url('bg_wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px;
}

/* Menu Container */
.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

/* Body styling for menu page */
body:has(.menu-container) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Game Title with stroke effect */
.game-title {
    position: relative;
    margin-bottom: 8px;
}

.title-stroke {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-size: 64px;
    font-weight: 800;
    font-family: 'Montserrat', Arial, sans-serif;
    color: transparent;
    -webkit-text-stroke: 3px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.26);
    z-index: 1;
}

.title-fill {
    position: relative;
    font-size: 64px;
    font-weight: 800;
    font-family: 'Montserrat', Arial, sans-serif;
    color: #0E6FCC;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.26);
    z-index: 2;
}

/* Game Subtitle */
.game-subtitle {
    font-size: 36px;
    font-weight: 600;
    font-style: italic;
    color: #2C2C2C;
    margin-bottom: 40px;
}

/* Spacers */
.spacer {
    height: 40px;
}

.button-spacer {
    height: 16px;
}

/* Button Container */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 420px;
}

/* Menu Buttons */
.menu-button {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 14px 24px;
    background-color: #F8F9FB;
    border: 2px solid #0E6FCC;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-button:hover {
    background-color: #0E6FCC;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 111, 204, 0.3);
}

.menu-button span {
    font-size: 24px;
    font-weight: 600;
    color: #2C2C2C;
    font-family: 'Montserrat', Arial, sans-serif;
}

.menu-button:hover span {
    color: white;
}

/* Button Icon */
.button-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
    border-radius: 4px;
    object-fit: cover;
}

/* Header and Navigation (for content pages) */
.top-banner {
    background-color: #0E6FCC;
    color: #fff;
    padding: 20px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-banner h1 {
    font-size: 24px;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Main Content (for content pages) */
main {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

h1, h2, h3 {
    color: #333;
    margin-bottom: 10px;
}

p, ul {
    margin-bottom: 20px;
}

ul {
    list-style: disc;
    margin-left: 20px;
}

/* Back Button Container (for content pages) */
.back-button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(14, 111, 204, 0.2);
}

.back-button-container .menu-button {
    max-width: 200px;
    min-height: 60px;
}

.back-button-container .menu-button span {
    font-size: 24px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 10px 0;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.54);
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-stroke,
    .title-fill {
        font-size: 48px;
    }
    
    .game-subtitle {
        font-size: 28px;
    }
    
    .menu-button span {
        font-size: 20px;
    }
    
    .button-container {
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .title-stroke,
    .title-fill {
        font-size: 36px;
    }
    
    .game-subtitle {
        font-size: 24px;
    }
    
    .menu-button span {
        font-size: 18px;
    }
    
    .button-container {
        max-width: 280px;
    }
}
