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

body {
    font-family: 'Georgia', serif;
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Dark overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

.game-title {
    font-size: 4.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 
        3px 3px 0px #2d5016,
        6px 6px 0px #1a3d0f,
        9px 9px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 4px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 3px 3px 0px #2d5016, 6px 6px 0px #1a3d0f, 9px 9px 20px rgba(0, 0, 0, 0.5); }
    100% { text-shadow: 3px 3px 0px #2d5016, 6px 6px 0px #1a3d0f, 9px 9px 30px rgba(255, 255, 255, 0.3); }
}

.subtitle {
    font-size: 1.5rem;
    color: #e8f5e8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-style: italic;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3);
    border: 3px solid #8b4513;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-section:hover .hero-image {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    padding: 40px 30px 30px;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: #e8f5e8;
    margin: 0;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.game-button {
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(45deg, #8b4513, #a0522d, #cd853f);
    border: 3px solid #654321;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.game-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.game-button:hover::before {
    left: 100%;
}

.game-button:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(45deg, #a0522d, #cd853f, #daa520);
}

.game-button:active {
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #f5f5dc, #f0e68c, #daa520);
    margin: 5% auto;
    padding: 30px;
    border: 3px solid #8b4513;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
}

.close {
    color: #8b4513;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: color 0.3s ease;
}

.close:hover {
    color: #654321;
}

.modal-content h2 {
    color: #2d5016;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.game-description h3 {
    color: #4a7c59;
    margin: 20px 0 10px 0;
    font-size: 1.5rem;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 5px;
}

.game-description p, .game-description li {
    color: #2d5016;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.game-description ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: linear-gradient(135deg, #fff, #f8f8ff);
    border: 3px solid #8b4513;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4169e1, #1e90ff);
}

.card.yellow-card::before {
    background: linear-gradient(90deg, #ffd700, #ffa500);
}

.card:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-header h3 {
    color: #2d5016;
    font-size: 1.3rem;
    margin: 0;
}

.card-type {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.card-type.blue {
    background: linear-gradient(45deg, #4169e1, #1e90ff);
}

.card-type.yellow {
    background: linear-gradient(45deg, #ffd700, #ffa500);
}

.card-art {
    margin: 15px 0;
    text-align: center;
}

.card-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    border-radius: 10px;
    border: 2px solid #8b4513;
    object-fit: contain;
    object-position: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

.card-image:hover {
    transform: scale(1.05);
}

.card-text {
    color: #2d5016;
    font-size: 0.95rem;
    line-height: 1.4;
}

.card-text p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .hero-section {
        margin: 30px auto;
        border-radius: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-overlay {
        padding: 30px 20px 20px;
    }
    
    .game-button {
        min-width: 250px;
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    .button-container {
        gap: 20px;
    }
    
    .game-button {
        min-width: 200px;
        padding: 12px 25px;
        font-size: 1rem;
    }
} 