/* Basic CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    line-height: 1.5;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9; /* Light background for all pages */
    color: #555; /* Softer text color for readability */
}

/* General Element Styles */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    text-decoration: none;
    color: #72a4f2; /* Consistent link color */
    font-weight: bold;
}

a:hover {
    text-decoration: underline; /* Adds emphasis on hover */
}

ul, ol {
    list-style: none;
}

/* Header Styles */
header {
    text-align: center;
    padding: 32px 16px;
    background-color: #fff; /* White background for contrast */
    border-bottom: 2px solid #ddd; /* Subtle divider below the header */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds depth */
}

header h1 {
    font-family: 'Georgia', serif; /* Elegant serif font for titles */
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

/* Intro Container (Shared Across Pages) */
.intro-container, .instructions-container {
    max-width: 800px;
    margin: 32px auto;
    font-size: 1rem;
    line-height: 1.8;
    padding: 16px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.intro-container p, .instructions-container p {
    margin-bottom: 16px;
}

/* Section Headers (e.g., Gallery or Links) */
section h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #444;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 16px;
    text-align: left;
}

/* Gallery Styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 24px;
    max-width: 1200px;
    margin: 16px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
    opacity: 0;
    animation: popIn 0.5s ease forwards;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: attr(data-hover-text); /* Use the data-hover-text attribute */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    color: #fff;
    padding: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* Prevent interaction with the text */
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translateY(0); /* Slide up into view */
}

@keyframes popIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Links Section (e.g., Yolo Links) */
.links-container ul {
    padding: 0;
    margin: 0;
}

.links-container li {
    margin-bottom: 16px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 16px;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
}