/* Reset for nav + lists */
        * {
            box-sizing: border-box;
        }


        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: Georgia, 'Times New Roman', Times, serif;
        }

        body{
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        nav, nav ul, nav li {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        /* Nav container */
        nav {
            position: absolute;
            width: 100%;
            padding: 0;
            overflow: hidden;
            background-color: rgba(0,0,0,0.5);
            box-sizing: border-box;
        }

        /* Hamburger button */
        .hamburger {
            width: 40px;
            height: 40px;
            padding: 8px;
            cursor: pointer;
            position: absolute;
            top: 20px;
            left: 15px;
            z-index: 2000;
            display: none;
            flex-direction: column;
            justify-content: space-between;
            border: 1px solid white;
            border-radius: 6px;
            box-sizing: border-box;
        }

        .hamburger .bar {
            height: 3px;
            background: white;
            width: 24px;
            margin: 3px 0;
            transition: 0.4s;
        }

        .hamburger.open .bar:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .hamburger.open .bar:nth-child(2) {
            opacity: 0;
        }

        .hamburger.open .bar:nth-child(3) {
            transform: rotate(-45deg) translate(4px, -5px);
        }

        .hamburger:hover {
            transform: scale(1.2);
            transition: transform 0.4s ease-in-out;
            border-color: white;
        }

        /* Nav links */
        nav li {
            float: right;
        }

        nav li.home {
            float: left;
        }

        nav li.MyStory {
            font-style: italic;
        }

        li a {
            display: block;
            color: white;
            text-align: center;
            padding: 30px 12px;
            text-decoration: none;
            letter-spacing: 2px;
            font-size: 10px;
            text-transform: uppercase;
            transition: transform 0.4s ease, color 0.4s ease;
        }

        li a:hover {
            transform: scale(1.2);
            color: black;
        }

        /* Centered logo */
        li.logo {
            float: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        li.logo img {
            height: 100px;
        }

        .messages {
            list-style: none;
            padding: 0;
            margin-bottom: 15px;
        }

        .messages li {
            color: red;
            font-weight: bold;
            text-align: center;
        }

        /* Login container & box */
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding-top: 50px;
        }

        .login-box {
            background-color: rgba(255, 255, 255, 0.95);
            padding: 40px 30px;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgb(0, 0, 0);
            max-width: 800px;
            width: 90%;
            text-align: center;
            opacity: 0;
            transform: translateY(-20px);
            animation: fadeInBox 0.8s forwards;
        }
        @keyframes fadeInBox {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-box h1 {
            margin-bottom: 25px;
        }

        .login-box button {
            background-color: #780090;
            color: white;
            border: none;
            border: 3px solid transparent;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 10px;
            transition: background 0.3s;
        }

        .login-box button:hover {
            background-color: white;
            color:#c7b500;
            border-color:#c7b500;
        }

        .login-box a {
            color: #780090;
            text-decoration: none;
            position: relative;
        }
        .login-box a::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px;             /* adjust distance from text */
            height: 2px;              /* underline thickness */
            width: 0;                 /* start with zero width */
            background-color: #c7b500;   /* underline color */
            transition: width 0.3s ease; /* smooth animation */
        }
        .login-box a:hover{
            color: #c7b500;
        }

        .login-box a:hover::after {
            width: 100%;           /* expands to full width on hover */
        }

        #ios-banner {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background-color: #f0f0f0;
            color: #000;
            padding: 12px;
            text-align: center;
            font-family: sans-serif;
            font-size: 14px;
            z-index: 9999;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            }

            #ios-banner p {
            margin: 0;
            }

            #ios-banner-close {
            float: right;
            cursor: pointer;
            margin-right: 8px;
            font-weight: bold;
            }

        .footerBottom{
            background-color: rgba(0,0,0,0.5);
            padding: 20px;
            text-align: center;
            font-size: 15px;
            clear: both;
            margin-top: auto;
        }

        .footerBottom p{
            color: white;
        }

        .designer{
            text-transform: uppercase;
            font-weight: 400;
        }

        input[type="checkbox"] {
            accent-color: #FFD700; /* gold, for example */
            width: 15px;
            height: 15px;
        }
        

        /* Mobile styles */
        @media (max-width: 800px) {
            nav li.home, nav li {
                float: none;
            }

            li a {
                padding: 0 12px;
            }

            li.logo {
                position: relative;
                top: 0;
                left: 0;
                transform: none;
                width: fit-content;
                margin: 0 auto;
            }

            li.logo img {
                height: 125px;
            }

            .hamburger {
                display: flex;
                top: 15px;
                left: 15px;
            }

            .mobile-menu {
                position: fixed;
                top: 0;
                left: 0;
                height: 100vh;
                width: 100vw;
                background-color: rgba(0, 0, 0, 0.8);
                z-index: 1000;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                opacity: 0;
                transform: translateY(-80px);
                pointer-events: none;
                transition: opacity 0.5s ease, transform 0.5s ease;
            }

            .mobile-menu.open {
                opacity: 1;
                transform: translateY(0);
                pointer-events: auto;
            }

            .mobile-menu li {
                margin: 70px 0;
            }

            .mobile-menu li a:hover {
                color: #fff;
                background-color: rgba(255, 255, 255, 0.1);
                border-radius: 8px;
                transition: background 0.3s;
            }

            .login-box {
                max-width: 90%;
                padding: 30px 20px;
            }
        }

        @media (max-width: 1130px) and (orientation: landscape) {
                .login-container {
                    align-items: flex-start;
                    padding: 10px; 
                    margin-top: 100px; 
                }

                .login-box {
                    max-height: 100vh; /* reduce box height for landscape */
                    padding: 20px;
                    overflow-y: auto;
                }

                .footerBottom{
                    margin-top: 50px;
                }
            }

        