header {
    background: #ffcccc;
    padding: 15px;
    font-family: "Merienda", cursive;
    font-size: 3em;
    color: #fff;
    text-shadow: 2px 2px #b30000;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background: #fdf6f0;
    color: #333;
    text-align: center;
}

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

.gallery img {
    width: 100%;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.gallery img:hover {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.quiz-button, .restart-button {
    background: #ff6666;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 10px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    font-family: "Merienda", cursive;
}

footer {
    background: #ffcccc;
    padding: 30px;
    font-family: "Merienda", cursive;
    color: #fff;
    font-size: 1.5em;
    margin-top: 30px;
}

a {
    text-decoration: none;
}

.title {
    font-family: "Merienda", cursive;
    color: #ff6666;
    margin-top: 20px;
    font-size: 2.5em;
}

.subtitle {
    font-family: "Merienda", cursive;
    color: #ff9999;
    margin-top: 10px;
    font-size: 1.5em;
}

.quiz-button:hover, .restart-button:hover {
    transform: scale(1.05);
}

.quiz-button:active, .restart-button:active {
    transform: scale(0.95);
}

.question-section {
    max-width: 600px;
    margin: 40px auto;
    text-align: left;
}

.question-section p {
    font-size: 1.2em;
    margin-bottom: 20px;
    font-family: "Merienda", cursive;
    color: #ff6666;
    text-align: left;
}

.question-section label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
    font-family: "Merienda", cursive;
}

.question-section input[type="radio"] {
    margin-right: 10px;
}

.submit-button {
    background: #ff9999;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    font-family: "Merienda", cursive;
    margin-top: 20px;
}

#result {
    margin-top: 30px;
    font-size: 1.3em;
    font-family: "Merienda", cursive;
    color: #ff6666;
}

.fact-section {
    margin-top: 60px;
}

.fact-section h3 {
    font-family: "Merienda", cursive;
    color: #ff6666;
    font-size: 2.5em;
}

.fact-section p {
    font-size: 1.5em;
    margin-top: 10px;
    font-family: "Merienda", cursive;
    color: #ff6666;
}

.fact-section button {
    background: #ff9999;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    font-family: "Merienda", cursive;
    margin-top: 20px;
    margin-bottom: 30px;
}

.fact-section button:hover {
    transform: scale(1.05);
}

.fact-section button:active {
    transform: scale(0.95);
}

p {
    font-family: "Merienda", cursive;
    color: #ff6666;
}

#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

#close-lightbox:hover {
    color: #ffb6c1;
}

#heart {
    position: fixed;
    font-size: 40px;
    pointer-events: none;
    opacity: 0;
    animation: pop 0.6s ease;
    z-index: 9999;
}

@keyframes pop {
    0% {
        transform: scale(0.5) translateY(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.4) translateY(-20px);
        opacity: 1;
    }
    100% {
        transform: scale(1) translateY(-50px);
        opacity: 0;
    }
}

::selection {
    background: #ffcccc;
    color: #fff;
}

button:focus, .quiz-button:focus, .restart-button:focus, .submit-button:focus {
    outline: none;
    box-shadow: 0 0 5px 2px #ff6666;
}

a:focus {
    outline: none;
    box-shadow: 0 0 5px 2px #ff6666;
}