:root {
    --primary-color: #F4C430; /* Corn Yellow */
    --secondary-color: #8FD14F; /* Fresh Husk Green */
    --bg-color: #FAFAFA;
    --text-color: #333333;
    --card-bg: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    background-color: var(--secondary-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    text-align: center;
    padding: 4rem 2rem;
    color: #4A3B00;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-block;
}

.btn:hover {
    background-color: #79BA42;
    transform: translateY(-2px);
}

/* Layout */
.content {
    flex: 1;
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* Cards & Grid */
.joke-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.punchline {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.punchline.hidden {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
}

.reveal-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: #4A3B00;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: auto;
}

.reveal-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background-color: #333;
    color: #AAA;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}