/* ================================== */
/*          GENERAL STYLES            */
/* ================================== */

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Arial', sans-serif;
    text-align: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* Gradient from new green to new yellow */
    background-image: linear-gradient(to bottom, #198754 11%, #fcf106 132%);
    color: #f0f0f0; /* Default text color for general content */
}

.home {
    width: 100%;
    background-color: rgba(252, 241, 6, 0.9); /* New yellow with 90% opacity */
    padding: 15px 0; /* Updated padding */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.home a {
    display: inline-block;
    padding: 5px 20px;
    color: #198754; /* New green text on yellow for strong contrast */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.home a:hover {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

h1 {
    display: block;
    font-size: 3.5em;
    margin: 0.67em auto;
    line-height: 1.2;
    font-family: 'Arial', sans-serif;
    color: #fcf106; /* New yellow color for the main heading */
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}


/* ============================================= */
/*          UNIFORM IMAGE GALLERY STYLES         */
/* ============================================= */

/* 1. This is the main Flexbox container that holds and aligns all your images. */
.spotlight-group {
    display: flex;
    flex-wrap: wrap; /* Allows images to wrap to the next line on smaller screens */
    justify-content: center; /* Centers the images horizontally */
    align-items: flex-start;
    gap: 20px; /* Adjust the space between images */
    padding: 20px; /* Padding around the entire group */
    margin: 20px auto; /* Centers the gallery on the page */
}

/* 2. This styles each LINK (<a> tag) to be a perfectly sized container. */
a.spotlight {
    display: block; /* Make the link a block to control its size */
    width: clamp(250px, 22vw, 350px); /* Responsive width: min 250px, ideal 22% of viewport, max 350px */
    aspect-ratio: 3 / 2; /* KEY: Enforces a 3:2 width-to-height ratio for all images */
    
    border-radius: 8px;
    border: 3px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;   /* IMPORTANT: Hides any part of the image that spills out */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 3. This styles the IMAGE (<img>) inside the link to fill the container correctly. */
a.spotlight img {
    width: 100%;        /* Fill the container's width */
    height: 100%;       /* Fill the container's height */
    object-fit: cover;  /* MAGIC: Scales the image to cover the box without stretching. Crops any excess. */
    transition: transform 0.5s ease-in-out;
}

/* 4. This defines the hover effects for the container and the image zoom. */
a.spotlight:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
    transform: scale(1.05); /* Slight lift/enlarge effect on the container */
}

a.spotlight:hover img {
	transform: scale(1.2); /* Zoom effect on the image itself */
}


/* ================================== */
/*          OTHER STYLES              */
/* ================================== */

b {
    display: block;
    padding: 12px 20px;
    background: rgba(252, 241, 6, 0.7); /* New yellow with 70% opacity */
    color: #198754;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 5px;
}

button {
    padding: 10px 25px;
    background-color: #198754;
    color: #fcf106;
    border: 2px solid #fcf106;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 20px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

button:hover {
    background-color: #fcf106;
    color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4);
}