﻿/* Basic Reset and Layout Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: grid;
    grid-template-rows: auto 1fr auto; /* Header (auto), Body (fills remaining space), Footer (auto) */
    min-height: 100vh; /* Full viewport height */
    font-family: sans-serif;
}

/* Header and Footer Styling */
.site-header, .site-footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

/* Main Body Styling using Flexbox */
.site-body {
    display: flex;
    justify-content: space-around; /* Distributes items evenly */
    align-items: center;
    padding: 2rem 1rem;
    background-color: #f4f4f4;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

/* Styling for each of the four items */
.body-item {
    flex: 1; /* Makes all items equal width */
    min-width: 200px; /* Minimum width for responsiveness */
    margin: 1rem;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.image-area img {
    width: 100%;          /* fill container width */
    height: auto;         /* maintain aspect ratio */
    border-radius: 6px;   /* rounded corners */
    transition: transform 0.3s ease; /* smooth hover animation */
    display: block;       /* removes extra space below images */
    margin-bottom: 1rem;  /* spacing below image */
}


.image-area img:hover {
    transform: scale(1.05); /* Simple animation */
}
.interactive-dropdown {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
}

.interactive-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: auto; /* Pushes the button to the bottom */
}

.interactive-btn:hover {
    background-color: #0056b3;
}


.marquee-slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Background images */
.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: slideShow 25s infinite;
}

.slide-image:nth-child(1) { animation-delay: 0s; }
.slide-image:nth-child(2) { animation-delay: 5s; }
.slide-image:nth-child(3) { animation-delay: 10s; }
.slide-image:nth-child(4) { animation-delay: 15s; }
.slide-image:nth-child(5) { animation-delay: 20s; }

@keyframes slideShow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Moving winner text */
.moving-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    white-space: nowrap;
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    z-index: 10;
    animation: moveText 12s linear infinite;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
}

@keyframes moveText {
    0% { transform: translateY(-50%) translateX(100%); }
    100% { transform: translateY(-50%) translateX(-100%); }
}
