:root {
    --bg-color: #e0f7fa; /* Light cyan/sky blue */
    --text-color: #37474f; /* Dark slate */
    --primary-color: #ffeb3b; /* Sunny yellow */
    --secondary-color: #4caf50; /* Playful green */
    --accent-color: #e91e63; /* Pop pink */
    --card-bg: #ffffff;
    --border-radius: 24px;
    --font-heading: 'Bubblegum Sans', cursive;
    --font-body: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
#main-header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s, border-bottom 0.3s;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--primary-color);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    transition: padding 0.3s;
}

#main-header.scrolled .container {
    padding: 5px 20px;
}

.logo-container {
    max-width: 120px;
    transition: max-width 0.3s;
}

#main-header.scrolled .logo-container {
    max-width: 80px;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
    background-color: white;
    border-radius: 16px;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
}

#nav-menu ul {
    display: flex;
    list-style: none;
}

#nav-menu li {
    margin-left: 20px;
}

#nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}

#nav-menu a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, #e0f7fa 0%, #fff9c4 100%);
    position: relative;
    overflow: hidden;
}

.animated-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: #ff5722; /* Orange for title */
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #ffe082;
    animation: bounce 2s infinite;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #546e7a;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(233, 30, 99, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 2;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px rgba(233, 30, 99, 0.4);
}

/* Games Section */
#games {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 3px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 4px solid transparent;
    position: relative;
    z-index: 2;
}

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

#game-timesup:hover { border-color: #4caf50; }
#game-blocker:hover { border-color: #2196f3; }
#game-blockit:hover { border-color: #ff9800; }

.card-inner {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.game-card-logo {
    max-width: 80px;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.game-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.game-card p {
    margin-bottom: 20px;
    color: #78909c;
    flex-grow: 1;
}

.play-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    border-radius: 30px;
    transition: background-color 0.2s, transform 0.2s;
}

.play-link:hover {
    background-color: #388e3c;
    transform: scale(1.05);
}

/* Feedback Section */
#feedback {
    padding: 60px 0;
    background-color: #fff9c4; /* Light yellow */
}

.feedback-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.feedback-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feedback-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.feedback-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #ff5722;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    border-radius: 40px;
    box-shadow: 0 6px 12px rgba(255, 87, 34, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feedback-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(255, 87, 34, 0.4);
}

/* Footer */
#main-footer {
    background-color: #37474f;
    color: white;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animated-title {
        font-size: 2.5rem;
    }
    
    #main-header .container {
        flex-direction: column;
    }
    
    #nav-menu ul {
        margin-top: 15px;
    }
    
    #nav-menu li {
        margin: 0 10px;
    }
}
