        @font-face {
            font-family: 'Mojang';
            src: url('Mojang.ttf') format('truetype');
            font-display: swap;
        }

        :root {
            --header-height: 70px;
            /* used to offset main content */
        }

        body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: url("https://media.dirtmansion.co.uk/Background.jpg");
            color: white;
            text-align: center;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 10px 30px;
            display: flex;
            justify-content: flex-start;
            align-items: center;
            z-index: 1000;  
            gap: 0;
            flex-wrap: wrap;
        }

        footer {
            text-align: center;
            font-family: 'Mojang';
            padding: 50px;
            word-spacing: 5px;
            line-height: 1.5;
            background: url("https://media.dirtmansion.co.uk/footer.jpg");
            color: white;
        }

        .logo {
            width: auto;
            height: 75px;
            display: block;
            margin: 0 auto;
            flex-shrink: 0;
        }

        .logo-mobile {
            width: auto;
            height: 75px;
            display: none;
            margin: 0 auto;
            flex-shrink: 0;
        }

        h1 {
            font-family: 'Mojang';
            font-size: 48px;
            margin-top: 20px;
        }

        .description {
            max-width: 1000px;
            margin: 20px auto;
            font-family: 'Mojang';
            font-size: 20px;
            word-spacing: 5px;
            line-height: 1.5;
            padding: 20px 30px;
            background: rgba(30, 30, 30, 0.35);
            border-radius: 15px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .button-grid {
            max-width: 100%;
            padding: 0 20px;
            display: flex;
            gap: 0;
            flex-wrap: wrap;
            flex: 1;
        }

        .nav-button {
            text-decoration: none;
            color: white;
            background: rgba(255, 255, 255, 0.2);
            padding: 6px 10px;
            margin: 0;
            border-radius: 12px;
            font-size: 20px;
            font-weight: bold;
            transition: background 0.3s, transform 0.2s;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            white-space: nowrap;
            flex-shrink: 1;
            min-width: fit-content;
        }

        .nav-button-main {
            text-decoration: none;
            color: white;
            background: rgba(255, 255, 255, 0.2);
            padding: 10px 20px;
            margin: 0;
            font-weight: bold;
            transition: background 0.3s, transform 0.2s;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-button-main img {
            height: 50px;
            width: auto;
        }

        .nav-button:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
        }

        .nav-button-main:hover {
            background: rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
        }

        main {
            margin-top: var(--header-height);
            padding: 20px;
            color: white;
            flex: 1;
            display: flex; /* Included in maps but not index, bear in mind for troubleshooting*/
            flex-direction: column; /* Same here*/
        }
        
                /*   Map panel design   */

        /* New split layout for maps */
        .map-split {
            display: flex;
            gap: 20px;
            flex: 1;
            min-height: calc(100vh - var(--header-height) - 140px);
            /* leave space for footer */
            align-items: stretch;
        }

        .panel {
            position: relative;
            flex: 1;
            overflow: hidden;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 320px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
        }

        /* Background layer that's scaled on hover */
        .panel .bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            transition: transform 0.7s cubic-bezier(.2, .8, .2, 1), filter 0.4s;
            will-change: transform;
            transform-origin: center;
            filter: brightness(0.78);
        }

        .panel:hover .bg {
            transform: scale(1.08);
            filter: brightness(1);
        }

        /* Subtle entrance scale on load */
        .panel .bg {
            transform: scale(1);
        }

        /* Content (buttons / title) sits above bg */
        .panel-content {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: center;
            justify-content: center;
            padding: 24px;
            width: 100%;
            max-width: 540px;
        }

        .panel h2 {
            font-family: 'Mojang';
            font-size: 32px;
            margin: 0;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
        }

        /* Align text and buttons differently for left/right panels */
        .panel.left .panel-content {
            align-items: flex-start;
            padding-left: 40px;
            text-align: left;
        }

        .panel.right .panel-content {
            align-items: flex-end;
            padding-right: 40px;
            text-align: right;
        }
        .panel .nav-button {
            margin-left: 0;
            background: rgba(0, 0, 0, 0.55);
            padding: 12px 22px;
            border-radius: 12px;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        }

        .panel p.lead {
            font-family: 'Mojang';
            margin: 6px 0 0 0;
            opacity: 1;
            font-size: 14px;
            word-spacing: 3px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6);
            line-height: 1.4;
        }

        /* Responsive: stack vertically on mobile */
        @media (max-width: 720px) {
            .map-split {
                flex-direction: column;
                min-height: auto;
                gap: 12px;
            }

            .panel {
                min-height: 240px;
            }

            .panel.left .panel-content, .panel.right .panel-content {
                align-items: center;
                padding: 16px;
                text-align: center;
            }
        }

                /*   Carousel   */

                /* Carousel container */
        .carousel {
            position: relative;
            max-width: 1500px;
            overflow: hidden;
            border-radius: 20px;
            margin: 20px auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }

        .carousel img {
            width: 100%;
            display: none;
            border-radius: 20px;
        }

        .carousel img.active {
            display: block;
        }

        /* Caption */
        .caption {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(5px);
            padding: 8px 20px;
            border-radius: 12px;
            font-weight: bold;
            color: white;
            text-transform: capitalize;
        }

        /* Navigation buttons */
        .prev, .next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255,255,255,0.2);
            backdrop-filter: blur(5px);
            border: none;
            color: white;
            font-size: 24px;
            padding: 10px 15px;
            cursor: pointer;
            border-radius: 50%;
            transition: background 0.3s, transform 0.2s;
        }
        .prev:hover, .next:hover { background: rgba(255,255,255,0.4); transform: translateY(-50%) scale(1.1); }
        .prev { left: 10px; }
        .next { right: 10px; }

        .header-buttons {
            display: flex;
            gap: 0;
            align-items: center;
            flex: 1;
            flex-wrap: wrap;
            justify-content: center;
        }

                /*   Calendar   */
        
        #calendar {
            max-width: 350px;
            margin: 2rem auto;
            font-family: Mojang;
            word-spacing: 5px;
            border: 1px solid #aaa;
            border-radius: 8px;
            padding: 1rem;
            box-shadow: 1px 1px 8px #aaa;
        }
        #calendar h2 {
            text-align: center;
        }
        .calendar-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: .5rem;
        }
        .calendar-table th, .calendar-table td {
            width: 14.28%;
            height: 40px;
            text-align: center;
            border: 1px solid #ddd;
            cursor: pointer;
        }
    
        .calendar-table td.event-date {
            background: #e0f6e6;
            font-weight: bold;
            color: #218838;
        }
        .calendar-table td.selected {
            outline: 2px solid #099;
            background: #deebf7;
        }
        #event-list {
            font-size: .95em;
            min-height: 30px;
            color: #333;
            padding: .3em;
            background: #f8f9fa;
            border-radius: 4px;
        }   

                /*   Dropdown menu for mobile   */

        .dropdown {
            position: relative;
            display: none;
            /* Hidden by default, shown on small screens */
        }

        .dropbtn {
            min-width: 130px;
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 16px;
            font-size: 16px;
            font-family: 'Mojang';
            border: none;
            cursor: pointer;
        }

        .dropdown-content {
            text-decoration: none;
            display: none;
            position: absolute;
            background: url("https://media.dirtmansion.co.uk/dropdown.png");
            background-size: 12em 12em;
            min-width: 130px;
            padding: 12px 16px;
            color: white;
            font-family: 'Mojang';
        }

        .dropdown-content a {
            color: white;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
        }

        .dropdown-content a:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        .dropdown:hover .dropdown-content {
            display: block;
        }

        @media (max-width: 1200px) {
            .header-buttons {
                display: none;
            }

            .dropdown {
                display: inline-block;
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                z-index: 1101;
            }

            .dropdown-content {
                left: 50%;
                transform: translateX(-50%);
                min-width: 160px;
            }

            .logo {
                display: none;
            }

            .logo-mobile {
                display: block;
            }
        }

        @media (max-width: 360px) {
            .dropdown {
                left: 10px;
                right: 10px;
                transform: none;
                min-width: unset;
            }
        }