body {
    background-image: url('/images (11).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Special Elite', cursive;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.title {
    color: white;
    text-align: center;
    margin: 20px;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.instructions {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.quiz-container {
    width: 95vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.post-it {
    width: 300px;
    height: 300px;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
    break-inside: avoid;
}

.post-it-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.2s;
    transform-style: preserve-3d;
}

.post-it:hover .post-it-inner {
    transform: rotateY(180deg);
}

.post-it-front, .post-it-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 5px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    font-size: 14px;
    line-height: 1.4;
}

.post-it-back {
    transform: rotateY(180deg);
    color: white;
    font-size: 18px;
}

.snowflake {
    color: #fff;
    position: absolute;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

.option {
    margin: 5px 0;
    text-align: left;
    width: 100%;
}

.glossary, 
.glossary h2, 
.glossary-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    margin: 20px;
    border-radius: 5px;
}

.glossary h2 {
    color: #333;
    margin-bottom: 15px;
}

.glossary-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glossary-term {
    font-weight: bold;
    color: #333;
}

.flag-icon {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.tradition-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.tradition-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
}

.gallery-section {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.gallery-title {
    color: #333;
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.gallery-subtitle {
    color: #666;
    text-align: center;
    font-size: 1em;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    height: 300px;
}

.gallery-item-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.gallery-item.flipped .gallery-item-inner {
    transform: rotateY(180deg);
}

.gallery-item-front,
.gallery-item-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-item-front {
    background: white;
}

.gallery-item-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-item-back {
    background: #333;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-item-back h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.gallery-item-back p {
    margin: 5px 0;
    font-size: 0.95em;
}

.gallery-item-back .tradition-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.gallery-overlay {
    display: none;
}

.guess-button {
    display: none;
}

@media print {
    body {
        background: white !important;
        padding: 0;
        margin: 0;
        font-size: 12pt;
        line-height: 1.3;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    .title, .instructions {
        color: black;
        text-shadow: none;
        page-break-before: avoid;
        page-break-after: avoid;
    }
    
    .quiz-container {
        display: block;
        column-count: 2;
        column-gap: 20px;
        width: 100%;
        padding: 10px;
    }
    
    .post-it {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 20px;
        width: 100%;
        height: auto;
        min-height: 250px;
    }
    
    .post-it-front {
        background-color: #fff !important;
        border: 1px solid #ccc;
        box-shadow: none;
        padding: 15px;
        font-size: 11pt;
    }
    
    .snowflake {
        display: none;
    }
    
    .post-it-inner {
        transform: none !important;
    }
    
    .post-it-back {
        display: none;
    }
    
    .glossary {
        display: block !important;
        break-before: page;
        background: white;
        color: black;
        border: 1px solid #ccc;
        margin: 20px 0;
        padding: 15px;
        font-size: 11pt;
    }
    
    .glossary h2 {
        margin-top: 0;
    }
    
    .option {
        margin: 3px 0;
    }
    
    .tradition-images {
        display: none;
    }

    .gallery-section {
        display: none;
    }
    
    @page {
        margin: 0.5in;
        size: letter portrait;
    }
}

