/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Colors */
:root {
    --primary-color: #1a2530;
    --secondary-color: #c5a059;
    --background-light: #ffffff;
    --text-dark: #333333;
    --text-light: #ffffff;
    --card-bg: #ffffff;
}

/* Header */
.top-notice {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
}

.header {
    background-color: var(--background-light);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section {
    margin-bottom: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    color: #555;
}

/* Hero Section */
.hero-card {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero-card h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
}

.hero-card p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
}

.game-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-info h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.game-info .btn {
    width: 100%;
}

/* Two Column Layout */
.two-col {
    display: flex;
    gap: 30px;
    align-items: center;
}

.two-col > div {
    flex: 1;
}

.about-img {
    width: 100%;
    border-radius: 8px;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.copyright {
    font-size: 12px;
    color: #aaa;
}

/* Game Page iframe */
.iframe-container {
    width: 100%;
    height: 600px;
    border: none;
    margin-bottom: 20px;
}

.game-disclaimer {
    background: #eee;
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Text Content Pages */
.text-content-card h2 {
    margin-top: 30px;
}

.text-content-card ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    margin-right: 15px;
}
.search-bar input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-light);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .two-col {
        flex-direction: column;
    }
    
    .search-bar {
        display: none;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}
