@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap");

:root {
    --darkest-green: #0c2b26;
    --dark-green: #173732;
    --green: #245448;
    --pastel-green: #8eb69b;
    --light-green: #daf1df;
    --white: #ffffff;
    --black: #000000;
}

/* Loading animation */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, #ffffff, #1d4d2c);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: fadeOut 0.8s ease-out 1.5s forwards;
}

.loading-title {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite;
}

.loading-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-size: 48px 48px;
    animation: bgMove 20s infinite alternate;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        pointer-events: auto;
    }
    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bgMove {
    from {
        background-position: 0% 0%;
    }
    to {
        background-position: 100% 100%;
    }
}

body {
    font-family: "Lexend Deca", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    text-align: center;
    width: 100vw;
    max-width: 768px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
}

.special {
    text-align: center;
    width: 100%;
}

.nav-container {
    box-sizing: border-box;
    background-color: var(--green);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    z-index: 1000;
}

main {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

h1 {
    color: var(--white);
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.75rem;
    margin: 0;
}

h2 {
    font-weight: 900;
    font-size: x-large;
    width: 100%;
    max-width: 100%;
    color: var(--dark-green);
    margin: 15px;
}

.hamburger-button svg {
    transition: all 0.2s ease-in-out;
}

.hamburger-button.active svg {
    transform: rotate(180deg);
}

.hamburger {
    background-color: var(--darkest-green);
    color: var(--white);
    text-decoration: none;
    display: none;
    transform: translateY(-100%);
    transition: all 0.2 ease-in-out;
}

.hamburger.active {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
}

.hamburger > ul {
    padding: 15px;
    margin: 0;
}

.hamburger ul {
    list-style-type: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
}

.hamburger ul * {
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    width: 100%;
}

.hamburger ul li ul {
    padding: 30px 15px;
}

button {
    padding: 15px;
    font-size: 1.2rem;
    font-family: "Lexend Deca", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    border-radius: 15px;
    border: none;
    background-color: var(--light-green);
    color: var(--darkest-green);
    box-shadow: 0 0 15px var(--light-green);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    transform: scale(0.9);
    background-color: var(--darkest-green);
    color: var(--light-green);
    box-shadow: 0 0 15px var(--darkest-green);
}

.container {
    text-align: center;
    color: black;
    border-radius: 10px;
    background-color: var(--light-green);
    width: 80%;
    max-width: 600px;
    text-wrap: wrap;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    padding: 20px 10px;
    margin: 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
}

#prize {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

#prize button {
    background-color: var(--white);
    box-shadow: 0 0 15px var(--dark-green);
}

#prize button:hover {
    background-color: var(--dark-green);
    box-shadow: 0 0 15px var(--dark-green);
}

.progress {
    font-size: 1.1rem;
}

.map {
    position: relative;
    margin-bottom: 0px;
}

.map img {
    width: 100%;
}

.station {
    display: block;
    box-sizing: border-box;
    position: absolute;
    padding: 10px;
    border-radius: 10px;
    width: fit-content;
    box-shadow: 0 0 5px var(--darkest-green);
    background-color: var(--white);
    transition: all ease-in-out 0.2s;
    text-decoration: none;
}

.station * {
    font-size: 1em;
    margin: 10px;
    color: var(--black);
}

.station:hover {
    transform: scale(1.1);
    background-color: var(--pastel-green);
    color: var(--dark-green);
    box-shadow: 0 0 15px var(--pastel-green);
}

.complete {
    background-color: #cccccc;
    color: #4e4e4e;
    pointer-events: none;
}

.complete:hover {
    background-color: #cccccc;
    color: #4e4e4e;
    transform: scale(1);
    box-shadow: 0 0 5px var(--darkest-green);
    pointer-events: none;
}
.id-box {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: 1rem;
    margin: 2rem auto;
    width: fit-content;
    transition: all 0.3s ease;
}

.loading {
    background-color: #f0f0f0;
    border: 2px dashed #888;
    color: #888;
}

.verified {
    background-color: #d4fcd2;
    border: 2px solid #2ecc71;
    color: #2ecc71;
    box-shadow: 0 0 20px 5px rgba(46, 204, 113, 0.5);
}

.unverified {
    background-color: #fddddd;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.message {
    text-align: center;
    font-size: 1.25rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.pageTitle {
    font-weight: 900;
    font-size: x-large;
    width: 100%;
    max-width: 100%;
    color: var(--dark-green);
    margin: 10px;
    margin-top: 30px;
}

.footer-bottom {
    background-color: var(--green);
    padding: 20px 10px;
    color: var(--white);
    text-align: center;
}

.pdf {
    width: 80%;
    aspect-ratio: 8.5 / 11;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.start-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 300px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    margin-bottom: 20px;
}

.secondary-button {
    background-color: rgba(107, 114, 128, 0.8);
}

.secondary-button:hover {
    background-color: rgba(107, 114, 128, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}
