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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #3795f3;
    background-image: url(images/bg.jpg);
    background-color: #3795f3;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
    /* NAVBAR MAIN CONTAINER */
nav {
    position: fixed;
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.123);
    backdrop-filter: blur(5px);
    padding: 0 30px;
    box-shadow: 0 0 15px #72a1de68;
    z-index: 999;
    font-family: "Inter", sans-serif; /* keeps font consistent */
}

/* LEFT SECTION */
nav .left {
    display: flex;
    align-items: center;
}

nav .left h1{
    font-size: 30px;
    display: flex;
    align-items: center;
     font-family: "Inter", sans-serif; 
}

nav .left img {
    width: 40px;
    margin: 0 15px;
}

/* MENU LIST */
nav ul {
    display: flex;
    justify-content: space-between;
    width: 30%;
    padding: 15px 15px;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #727fde65;
    cursor: pointer;
}

nav ul li {
    list-style: none;
}

nav ul a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    margin: 0 10px;
    font-family: inherit; /* force to use nav font */
}

/* ICON BOXES */
nav .box-icons {
    display: flex;
    gap: 40px;
}

nav .box-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #727fde;
    text-decoration: none;
    color: lightgray;
    border-radius: 50%;
    transition: 0.3s;
}

nav .box-icons a:hover {
    background-color: #727fde;
    color: black;
    box-shadow: 0 0 15px #727fde6f;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
    }

    nav .left {
        justify-content: center;
        width: 100%;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
        margin: 0;
    }

    nav ul a {
        margin: 5px 10px;
        font-size: 15px;
    }

    nav .box-icons {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        width: 100%;
    }

    nav .box-icons a {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}


/* This is end of Luna Pioneers logo and nav */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(45deg, #138b81, #14d43d);
    border-radius: 15px 15px 0 0;
    margin: -20px -20px 40px -20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.2em;
    font-style: italic;
    opacity: 0.9;
}

.sport-section {
    margin: 50px 0;
    padding: 30px;
    background: rgba(1, 32, 5, 0.884);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sport-section:hover {
    transform: translateY(-5px);
}

h2 {
    font-size: 2.5em;
    color: #8B4513;
    margin-bottom: 20px;
    border-bottom: 3px solid #DAA520;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.8em;
    color: #863bff;
    margin: 25px 0 15px 0;
}

.quidditch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.position-card {
    background: linear-gradient(135deg, #ff6b6b, #ffd93d);
    padding: 20px;
    border-radius: 10px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.position-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.position-card h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.rules-list {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #8B4513;
    margin: 20px 0;
}

.rules-list ul {
    list-style-type: none;
    padding-left: 0;
}

.rules-list li {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rules-list li:before {
    content: "⚡";
    margin-right: 10px;
    color: #DAA520;
    font-weight: bold;
}

.other-sports {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.sport-card {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.sport-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.sport-card h4 {
    font-size: 1.4em;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #2c3e50;
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.teams-section {
    background: #2d3748;
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.team-badge {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.team-badge:hover {
    transform: scale(1.1);
}

.gryffindor { background: linear-gradient(45deg, #740001, #ae0001); }
.slytherin { background: linear-gradient(45deg, #1a472a, #2a623d); }
.ravenclaw { background: linear-gradient(45deg, #0e1a40, #222f5b); }
.hufflepuff { background: linear-gradient(45deg, #ecb939, #f0c75e); color: #2c3e50; }

.gobstone-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.gobstone {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFD700, #B8860B, #8B7355);
    border: 3px solid #2F1B14;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

.gobstone:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.gobstone::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.interactive-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(139, 69, 19, 0.3);
    border-radius: 15px;
}

#game-message {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #FFD700;
    min-height: 50px;
}

.gobstonegame {
    background: linear-gradient(45deg, #D2691E, #8B4513);
    color: #f4f1e8;
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin: 0.5rem;
}

.gobstonegame:hover {
    background: linear-gradient(45deg, #FFD700, #D2691E);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}


/* Carousel Styling */
.carousel-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    max-height: 500px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 15px 15px;
}

.carousel-slide:hover .slide-overlay {
    transform: translateY(0);
}

.slide-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.slide-description {
    opacity: 0.9;
    font-size: 0.95rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 15px; }
.carousel-next { right: 15px; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.carousel-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    h1 { font-size: 2em; }
    h2 { font-size: 2em; }
    .container { margin: 10px; padding: 15px; }
    .sport-section { padding: 20px; }
    .carousel-slide img { height: 300px; }
    .carousel-nav { width: 40px; height: 40px; font-size: 16px; }
    .slide-title { font-size: 1.2rem; }
}
/* This is Luna Pioneers footer */
.custom-footer {
    background-color: #0a0c1a;
    color: lightgray;
    padding: 40px 20px 0;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-footer .footer-logo .logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-footer .footer-logo .logo-title img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.custom-footer .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-footer .footer-col {
    flex: 1 1 180px;
    margin: 20px;
}

.custom-footer .footer-logo p {
    font-size: 14px;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}

.custom-footer .footer-logo h2 {
    font-size: 28px;
    color: #727fde;
    padding-bottom: 15px;
    font-family: 'Cinzel Decorative', serif;
    margin-bottom: 0;
    border-bottom:none;
    padding-bottom: 0px;
}

.custom-footer .footer-col h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.custom-footer .footer-col ul {
    list-style: none;
    padding: 0;
}

.custom-footer .footer-col ul li {
    margin-bottom: 8px;
}

.custom-footer .footer-col ul li a {
    text-decoration: none;
    color: #aaa;
    transition: 0.3s;
}

.custom-footer .footer-col ul li a:hover {
    color: white;
    text-shadow: 0 0 10px #727fdeaa;
}

.custom-footer .footer-socials a {
    display: inline-block;
    font-size: 25px;
    margin-right: 15px;
    color: #727fde;
    transition: transform 0.3s cubic-bezier(1, 1.56,0.64, 1), color 0.3s ease;
}

.custom-footer .footer-socials a:hover {
    color: white;
    text-shadow: 0 0 10px #727fde;
    transform: translateY(-8px) rotate(-360deg);
}

.custom-footer .footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    background-color: rgb(13, 13, 44);
    color: lightgray;
}



@media (max-aspect-ratio: 16/9){
    .back-vid{
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9){
    .back-vid{
        width: 100%;
        height: auto;
    }
}