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

body {
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.logo h1 {
    color: #2c5530;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #2c5530;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2c5530;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-element {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.floating-element:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2c5530;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #ff6b6b;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 320px;
}

.game-image {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 20px 20px 0 0;
}

.game-content {
    padding: 1.5rem;
    background: white;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-card::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-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.game-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-card h3 {
    font-size: 1.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
}

.game-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.play-button {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: #45b7b8;
    transform: scale(1.05);
}

/* Stories Section */
.stories-section {
    padding: 100px 0;
    background: white;
}

.story-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.story-card {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.story-card.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.story-image {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.story-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.story-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.story-nav {
    text-align: center;
    margin-top: 2rem;
}

.nav-btn {
    background: #2c5530;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #1e3a21;
    transform: scale(1.1);
}

/* Interactive Section */
.interactive-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.game-area {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.game-selector h3 {
    color: #2c5530;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.mini-games {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mini-game-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mini-game-btn:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Mini Game Styles */
#mini-game-container {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    min-height: 300px;
}

/* Kéo Co Game Enhanced */
.keo-co-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.team-display {
    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
}

.team {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    min-width: 150px;
    transition: all 0.3s ease;
}

.team.winning {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    animation: pulse 0.5s ease-in-out;
}

.team h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.score {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.rope-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rope {
    width: 250px;
    height: 12px;
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    border-radius: 6px;
    position: relative;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.rope::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 28px;
    background: #654321;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rope::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rope.pulling-left {
    transform: translateX(-20px);
    background: linear-gradient(90deg, #ff6b6b 0%, #A0522D 50%, #8B4513 100%);
}

.rope.pulling-right {
    transform: translateX(20px);
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 50%, #ff6b6b 100%);
}

.pull-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

.pull-button:hover {
    background: linear-gradient(45deg, #ff5252, #e53935);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

.pull-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

.pull-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-status {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    min-height: 30px;
}

.tension-indicator {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.tension-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #FFC107 50%, #F44336 100%);
    width: 50%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.power-meter {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.power-meter.show {
    opacity: 1;
}

/* Ô Ăn Quan Game Enhanced */
.o-an-quan-game {
    padding: 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 20px;
    color: white;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 450px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.o-an-quan-cell {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid transparent;
}

.o-an-quan-cell:hover {
    background: linear-gradient(135deg, #A0522D 0%, #CD853F 100%);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.o-an-quan-cell.selected {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border-color: #fff;
    animation: pulse 0.5s ease-in-out;
}

.o-an-quan-cell.valid-move {
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
}

.o-an-quan-cell.empty {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
}

.stones-animation {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    animation: stoneMove 0.5s ease-out;
}

.game-info {
    text-align: center;
    margin-bottom: 2rem;
}

.current-player {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    display: inline-block;
}

.scores {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.player-score {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    min-width: 120px;
}

.player-score h4 {
    margin-bottom: 0.5rem;
    color: #4ecdc4;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
}

.game-message {
    text-align: center;
    font-size: 1.1rem;
    margin: 1rem 0;
    min-height: 30px;
}

.winner-message {
    background: rgba(76, 175, 80, 0.3);
    padding: 15px;
    border-radius: 15px;
    animation: celebrate 1s ease-in-out;
}

@keyframes stoneMove {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.05); }
    75% { transform: scale(0.95); }
}

/* Nhảy Dây Game Enhanced */
.nhay-day-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 20px;
    color: white;
}

.jump-area {
    width: 300px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 75px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.jump-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 75px;
}

.jumper {
    font-size: 3rem;
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
}

.jumper.jumping {
    animation: jumpAnimation 0.6s ease-in-out;
}

.rope-line {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: transform 0.3s ease;
}

.rope-line.spinning {
    animation: ropeSpin 0.3s linear infinite;
}

.game-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ecdc4;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.jump-button {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
    position: relative;
    overflow: hidden;
}

.jump-button:hover {
    background: linear-gradient(45deg, #45b7b8, #3d8b7a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.6);
}

.jump-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(78, 205, 196, 0.4);
}

.combo-indicator {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.combo-indicator.show {
    opacity: 1;
    animation: comboPop 0.5s ease-out;
}

.speed-indicator {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    margin: 1rem 0;
    overflow: hidden;
}

.speed-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #FFC107 50%, #F44336 100%);
    width: 30%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

@keyframes jumpAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-40px); }
    100% { transform: translateY(0); }
}

@keyframes ropeSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

@keyframes comboPop {
    0% { 
        transform: translateX(-50%) scale(0.5);
        opacity: 0;
    }
    50% { 
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }
    100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Bắn Bi Game */
.banh-da-game {
    padding: 2rem;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
}

.shooting-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    border-radius: 15px;
    margin: 2rem 0;
    overflow: hidden;
}

.target {
    position: absolute;
    font-size: 2rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.shooter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    z-index: 5;
}

.shoot-button {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(17, 153, 142, 0.4);
}

.shoot-button:hover {
    background: linear-gradient(45deg, #0f8a7d, #32d96a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 153, 142, 0.6);
}

/* Bắn Đung Game */
.banh-dung-game {
    padding: 2rem;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
}

.dung-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    margin: 2rem 0;
    overflow: hidden;
}

.crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    z-index: 10;
    pointer-events: none;
}

/* Thả Chim Game */
.tho-chim-game {
    padding: 2rem;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    color: #333;
    text-align: center;
}

.chim-area {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 100%);
    border-radius: 15px;
    margin: 2rem 0;
    overflow: hidden;
}

.sky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to bottom, #87CEEB 0%, #B0E0E6 100%);
}

.ground {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, #90EE90 0%, #228B22 100%);
}

.tho-button {
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    color: #333;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(168, 237, 234, 0.4);
}

.tho-button:hover {
    background: linear-gradient(45deg, #96e6e1, #fdcae1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 237, 234, 0.6);
}

/* Animations for new games */
@keyframes chimFly {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(-50px);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes chimLand {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes chimFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    75% {
        transform: translateY(10px) rotate(-5deg);
    }
}

/* Enhanced game controls */
.game-controls {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.mode-selector {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.mode-selector .mini-game-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 15px;
}

/* Responsive adjustments for new games */
@media (max-width: 768px) {
    .shooting-area,
    .dung-area,
    .chim-area {
        height: 300px;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mode-selector {
        flex-direction: column;
        width: 100%;
    }
    
    .mode-selector .mini-game-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .target {
        font-size: 1.5rem;
    }
    
    .crosshair {
        font-size: 1.5rem;
    }
}

/* Rural Photos Section */
.rural-photos-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.photo-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: #4ecdc4;
    color: white;
    border-color: #4ecdc4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.photo-placeholder {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.photo-real {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.photo-real:hover {
    transform: scale(1.05);
}

/* Placeholder backgrounds for different categories */
.landscape-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.landscape-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.landscape-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.village-1 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.village-2 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.village-3 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.activity-1 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.activity-2 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
.activity-3 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.season-1 { background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%); }
.season-2 { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.season-3 { background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%); }

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.photo-overlay p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Quiz Section */
.quiz-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.quiz-start {
    text-align: center;
}

.quiz-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.quiz-intro p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.quiz-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.quiz-stats .stat-item {
    text-align: center;
}

.quiz-stats .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #4ecdc4;
}

.quiz-stats .stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.start-quiz-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.start-quiz-btn:hover {
    background: linear-gradient(45deg, #ff5252, #e53935);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 10%;
}

.progress-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.quiz-timer,
.quiz-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.timer-icon,
.score-icon {
    font-size: 1.2rem;
}

.timer-text,
.score-text {
    font-weight: 600;
    font-size: 1.1rem;
}

.quiz-question h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.5;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 1.1rem;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #4ecdc4;
    transform: translateX(10px);
}

.quiz-option.selected {
    background: rgba(78, 205, 196, 0.3);
    border-color: #4ecdc4;
}

.quiz-option.correct {
    background: rgba(76, 175, 80, 0.3);
    border-color: #4CAF50;
    animation: correctAnswer 0.5s ease-in-out;
}

.quiz-option.incorrect {
    background: rgba(244, 67, 54, 0.3);
    border-color: #F44336;
    animation: incorrectAnswer 0.5s ease-in-out;
}

.quiz-feedback {
    text-align: center;
    margin-top: 2rem;
}

.feedback-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.next-question-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.next-question-btn:hover {
    background: linear-gradient(45deg, #45b7b8, #3d8b7a);
    transform: translateY(-2px);
}

.quiz-result {
    text-align: center;
}

.result-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #fff;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 150px;
}

.result-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ecdc4;
}

.result-message {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.restart-quiz-btn,
.back-to-games-btn {
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.restart-quiz-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.back-to-games-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
}

.restart-quiz-btn:hover,
.back-to-games-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Quiz Animations */
@keyframes correctAnswer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes incorrectAnswer {
    0%, 25%, 75%, 100% { transform: translateX(0); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: translateX(-5px); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .photo-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .quiz-container {
        padding: 2rem 1.5rem;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .result-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .restart-quiz-btn,
    .back-to-games-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Memories Section */
.memories-section {
    padding: 100px 0;
    background: white;
}

.memory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.memory-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.memory-card:hover {
    transform: translateY(-5px);
    border-color: #4ecdc4;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.memory-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.memory-card h4 {
    color: #2c5530;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.memory-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #2c5530;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #4ecdc4;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #4ecdc4;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #45b7b8;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4ecdc4;
    color: #ccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .mini-games {
        flex-direction: column;
        align-items: center;
    }

    .mini-game-btn {
        width: 100%;
        max-width: 300px;
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-card {
        padding: 2rem 1rem;
    }

    .o-an-quan-game {
        grid-template-columns: repeat(3, 1fr);
    }

    .o-an-quan-cell {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .game-card {
        padding: 1.5rem;
    }

    .story-card {
        padding: 1.5rem 1rem;
    }

    .story-card h3 {
        font-size: 1.5rem;
    }

    .story-card p {
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c5530 0%, #1a3d1e 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.footer-info p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ff6b6b;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.social-link:hover {
    background: #1877f2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
    color: white;
    text-decoration: none;
}

.social-link.facebook {
    background: rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    font-weight: 500;
}

.social-link.facebook:hover {
    background: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
    color: white !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom strong {
    color: #ff6b6b;
    font-weight: 600;
}

.author-link {
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.author-link:hover {
    color: #1877f2;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}
