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

body {
    font-family: "Comic Sans MS", "Comic Neue", cursive;
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
    background: linear-gradient(270deg, #ffb6c1, #ffd700, #87cefa, #da70d6);
    background-size: 800% 800%;
    animation: gradientShift 25s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    text-align: center;
    margin: 60px 0 40px;
    position: relative;
    z-index: 2; /* Ensure the header is on top */
}

h1 {
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
    background: linear-gradient(45deg, #ff007f, #ff8c00, #ffff00, #00ff00, #00bfff, #8a2be2);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 900;
    text-shadow: 3px 3px 0 #00000055, 6px 6px 0 #ffffff55;
    animation: sparkle 4s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { filter: brightness(1); transform: rotate(-1deg); }
    50% { filter: brightness(1.4); transform: rotate(1deg) scale(1.03); }
    100% { filter: brightness(1); transform: rotate(-1deg); }
}

/* Unicorns */
.unicorns {
    position: fixed; /* Fix unicorns to the background */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none; /* So the unicorns don't interfere with clicks */
    z-index: -1; /* Bring unicorns in front of the images */
}

.unicorn {
    position: absolute;
    width: 50px; /* Adjust the width of the unicorn image */
    height: 50px; /* Adjust the height of the unicorn image */
    opacity: 0.8; /* Reduced opacity for subtle effect */
    background-image: url('./image.png'); /* Replace this with your image path */
    background-size: cover; /* Make sure the image covers the area */
    background-repeat: no-repeat;
    animation: fly linear infinite;
}

@keyframes fly {
    0% {
        transform: translateX(var(--start-x)) translateY(var(--start-y)) rotate(0deg);
    }
    100% {
        transform: translateX(var(--end-x)) translateY(var(--end-y)) rotate(360deg);
    }
}


/* Main content */
main {
    padding: 20px;
    overflow-y: auto;
    max-height: 80vh;
    position: relative;
    z-index: 2; /* Ensure the main content is above the unicorns */
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

.photo-pair {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
}

.photo {
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    width: 48%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 8px solid white; /* White frame around each image */
}

.photo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Horizontal image style */
.horizontal {
    height: 350px;
}

/* Vertical image style */
.vertical {
    scale:0.7;
    height: 450px;
}

@media (max-width: 700px) {
    h1 { font-size: 2.5rem; }
    .photo { width: 100%; }
}
