/* Navbar */
.topnav {
    position: sticky;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    padding: 0px;
    
}

    /* Desktop */
@media (min-width: 900px) {
    .topnav {
        gap: 250px;
        justify-content: center;
        width: 100%;
    }
}

/* Optional blur only if supported */
@supports (backdrop-filter: blur(6px)) {
    .topnav {
        backdrop-filter: blur(6px);
        background-color: rgba(0, 0, 0, 0.7);
        border-bottom: 2px solid #ffffff;  
    }
}

/* Navbar links */
.topnav a {
    color: rgb(255, 230, 119) !important;  /* Yellow color */
    text-align: center;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 18px;
    text-shadow: 0px 0px 5px black;
    transition: background-color 0.3s, color 0.3s;
}

/* Hover effect */
.topnav a:hover {
    background-color: rgba(255, 217, 0, 0.2) !important;
    color: rgb(255, 217, 0) !important;
}

/* Active link */
.topnav a.active {
    background-color: rgba(255, 217, 0, 0.35) !important;
    color: black !important;
    font-weight: bold !important;
}

/* Remove underline from links */
.topnav a:focus,
.topnav a:active {
    text-decoration: none !important;
}

        h1 {
            text-shadow: 0px 0px 5px rgb(160, 160, 160), 1px 1px 3px rgb(160, 160, 160), -1px -1px 3px rgb(160, 160, 160);
            color: rgb(255, 217, 0);
        }

        h2 {
            text-shadow: 0px 0px 5px rgb(60, 60, 60), 1px 1px 3px rgb(60, 60, 60), -1px -1px 3px rgb(60, 60, 60);
            color: rgb(255, 230, 119);
        }

        h3 {
            text-shadow: 0px 0px 5px rgb(30, 30, 30), 1px 1px 3px rgb(30, 30, 30), -1px -1px 3px rgb(30, 30, 30);
            color: rgb(255, 241, 177);
        }

        p {
            text-shadow: 0px 0px 5px rgb(0, 0, 0), 1px 1px 3px rgb(0, 0, 0), -1px -1px 3px rgb(0, 0, 0);
            color: rgb(255, 255, 255);
        }
        
        #countdown {
            text-shadow: 0px 0px 5px rgb(160, 160, 160), 1px 1px 3px rgb(160, 160, 160), -1px -1px 3px rgb(160, 160, 160);
        }

        body {
            cursor: url('yellowcursor.png'), auto;
            color: white;
            /* Background Image and Dimming */
             padding: 20px;  /* Adjust this value to your liking */
             box-sizing: border-box;  /* Ensures padding doesn’t break the layout */
        }

h1, h2, h3, p {
    margin: 20px 0;  /* Adds margin to the top and bottom */
    padding: 0 10px; /* Adds some horizontal space */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;  /* Ensure full height */
    overflow-x: hidden;  /* Avoid horizontal scroll */
}
        
html {
    scroll-behavior: smooth;
}

.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* full width */
    height: 100vh;  /* full height */
    z-index: -1;    /* background behind content */

    background: linear-gradient(
            rgba(0, 0, 0, 0.55), 
            rgba(0, 0, 0, 0.05)
        ),
        url("Innocent_Trio.png");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;  /* Make sure the image covers the entire viewport */
}

body {
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body {
        padding: 0px;  /* Smaller padding for mobile */
    }

    h1, h2, h3, p {
        margin: 15px 0; /* Adjust margin for mobile */
        padding: 3px 10px; /* Adjust horizontal padding */
    }
}

b, strong {
    font-weight: bold !important;
}

#factDisplay b {
    color: gold;
    font-size: 22px;
}

html, body { scroll-behavior: smooth; }


        /* Mobile-specific navbar adjustments */
@media (max-width: 600px) {
    .topnav {
        flex-direction: row;           /* horizontal row */
        flex-wrap: wrap;
        overflow-x: hidden;              /* enable horizontal scroll */
        white-space: nowrap;           /* keep links on one line */
        justify-content: flex-start;   /* align to left */
        font-size: 14px;               /* smaller text */
        padding: 5px 0;
    }

    .topnav a {
        padding: 10px 15px;            /* reasonable tap area */
        flex: 0 0 auto;                /* prevent shrinking */
        width: auto;                   /* let link size itself */
        text-align: center;
    }

    /* Optional: hide scrollbar for nicer look */
    .topnav::-webkit-scrollbar {
        display: none;
    }
}

#news {
    scroll-margin-top: 70px;
}

#gallery {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    justify-content: center; /* Vertically centers the content if needed */
    text-align: center; /* Centers text inside headings */
    margin-top: 20px; /* Optional: margin to add space from the top */
}

#gallery h1, #gallery h2 {
    margin: 10px 0; /* Optional: adjust margin for spacing between titles */
}

#gallery img {
    margin: 10px 0; /* Optional: adjust margin for spacing between images */
    height: auto; /* Maintain aspect ratio */
    width: 260px;
    display: block;

    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 217, 0, 0.7);
    transition: box-shadow 0.3s ease;
}

#gallery img:hover {
    box-shadow: 0 0 25px gold;
}

.countdownbox {
    text-align: center;
    font-family: Arial, sans-serif;
    border: 3px solid #FFFF00;
    padding: 20px;
    max-width: 300px;
    margin: 20px auto;
    border-radius: 10px;
}
#countdown {
    font-size: 3em;
    font-weight: bold;
    color: red;
}

.countdownbox {
  background: linear-gradient(-45deg, #262626
, #b3b3b3, #262626
, #b3b3b3);
  background-size: 400% 400%;
  animation: gradientAnimation 10s ease infinite;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-button:hover {
  animation: gradientAnimation 2s ease infinite; /* Speed up on hover */
}

.topnav::after {
    content: "";
    display: block;
    height: 5px; /* thin line */
    width: 100%;
    background: linear-gradient(90deg, #ffff00, #EFBF04, rgb(255, 230, 119));
    animation: gradientAnimation 3s ease infinite;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: 400% 100%;
    z-index: 1001;
    box-shadow: 0 0 8px rgba(255, 230, 119, 0.6);
}

.title-row {
    display: flex;
    align-items: center; /* vertically aligns them */
    gap: 10px;           /* space between h3 and button */
}

.title-row h3 {
    margin: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;

    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.item {
    text-align: center;
}

.text h2 {
    color: white;
    font-size: 22px;
    margin-bottom: 15px;
}

.pic {
    width: 100%;
}

.pic img {
    width: 100%;
    height: 320px;          /* consistent image height */
    object-fit: cover;      /* crops neatly */

    border-radius: 10px;
    display: block;

    box-shadow: 0 0 15px rgba(255, 217, 0, 0.7);
    transition: 0.3s ease;
}

.pic img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px gold;
}

@media (max-width: 480px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .pic img {
        height: auto;
        justify-content: center;
    }
}