@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Patrick+Hand&display=swap');

body {
    font-family: 'Patrick Hand', cursive;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
    font-size: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    font-family: 'Special Elite', cursive;
    text-align: center;
    color: #333;
    font-size: 48px;
    margin-bottom: 40px;
}

.letter-section, .timer-section {
    text-align: center;
    margin: 20px 0;
}

button {
    font-family: 'Patrick Hand', cursive;
    padding: 12px 24px;
    font-size: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
}

button:hover {
    background-color: #45a049;
}

.hint-btn {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}

.hint-btn:hover {
    background-color: #f57c00;
}

.game-tables {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.player-answers, .example-answers {
    flex: 1;
    min-width: 450px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 22px;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    line-height: 1.4;
}

th {
    background-color: #f2f2f2;
    font-size: 24px;
    font-family: 'Special Elite', cursive;
}

.answer-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 20px;
    font-family: 'Patrick Hand', cursive;
}

#currentLetter {
    font-size: 72px;
    font-weight: bold;
    color: #4CAF50;
    font-family: 'Special Elite', cursive;
    display: inline-block;
    padding: 20px 40px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 3px solid #4CAF50;
    margin: 15px;
}

#timer {
    font-size: 36px;
    font-weight: bold;
    color: #ff4444;
    font-family: 'Special Elite', cursive;
}

h2 {
    font-family: 'Special Elite', cursive;
    font-size: 36px;
}

h3 {
    font-family: 'Special Elite', cursive;
    color: #4CAF50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 32px;
}

.example-answers td:last-child {
    font-style: italic;
    color: #444;
    font-size: 22px;
}

.letter-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.letter-tab {
    font-size: 20px;
    font-family: 'Patrick Hand', cursive;
    padding: 8px 16px;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.letter-tab.active {
    background-color: #4CAF50;
    color: white;
}

.example-set {
    display: none;
}

.example-set.active {
    display: block;
}

.example-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.example-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.example-card:nth-child(2) {
    background-color: #f0f8ff;  
}

.creative-examples {
    margin-top: 60px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.creative-examples h2 {
    text-align: center;
    color: #4CAF50;
    margin-bottom: 30px;
}

.example-card h3 {
    font-size: 32px;
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.creative-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.creative-category:last-child {
    border-bottom: none;
}

.creative-category h4 {
    color: #4CAF50;
    margin-bottom: 15px;
    font-size: 26px;
    font-family: 'Special Elite', cursive;
}

.creative-category p {
    color: #666;
    line-height: 1.8;
    font-size: 22px;
}

.combined-topics {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    position: relative;
}

.combined-topics table {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.combined-topics h3 {
    margin-bottom: 30px;
}

.pdf-container {
    width: 100%;
    margin: 20px 0 40px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-container embed {
    display: block;
}

@media (max-width: 1200px) {
    .game-tables {
        flex-direction: column;
    }
    
    .player-answers, .example-answers {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    table {
        font-size: 18px;
    }
    
    .creative-category p {
        font-size: 18px;
    }
}

@media print {
    .pdf-container {
        display: none !important;
    }
    .container > *:not(.combined-topics) {
        display: none !important;
    }

    .container {
        padding: 0;
        margin: 0;
        box-shadow: none;
    }

    .combined-topics {
        margin: 0;
        padding: 0;
        background-color: white;
    }

    .combined-topics table {
        box-shadow: none;
        page-break-inside: auto;
    }

    .combined-topics tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    body {
        background-color: white;
        margin: 0;
        padding: 0;
    }

    table, th, td {
        background-color: white !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    th {
        color: black !important;
    }

    .combined-topics h3 {
        font-size: 24pt;
        margin-bottom: 20pt;
    }

    table {
        font-size: 12pt;
    }
}