*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #5b21b6;
}

body.menu-open {
    overflow: hidden;
}

/* MAIN CONTAINER */

.container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* SLIDE ANIMATIONS */

@keyframes slideLeft {
    from {
        transform: translateX(-80px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(80px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* LEFT SIDE */

.left {
    flex: 1 1 400px;
    width: 100%;
    max-width: 100%;
    background: white;
    text-align: center;
    padding: 60px 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    animation: slideLeft 1.2s ease forwards;
}

.logo {
    display: block;
    max-width: 70%;
    height: auto;
    margin-bottom: 30px;
}

.left h2 {
    color: #6b21a8;
    margin-bottom: 15px;
    text-decoration: none;
}

.left p {
    color: #6b21a8;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.6;
    max-width: 500px;
}

/* RIGHT SIDE */

.right {
    flex: 1 1 400px;
    width: 100%;
    max-width: 100%;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    animation:
        slideRight 1.2s ease forwards,
        gradientMove 12s ease infinite;

    background: linear-gradient(
        -45deg,
        #5b21b6,
        #6b21a8,
        #4c1d95,
        #5b21b6
    );

    background-size: 400% 400%;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* CREST BACKGROUND */

.right::before {
    content: "";
    position: absolute;

    width: min(90%, 900px);
    height: auto;
    aspect-ratio: 1 / 1;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background:
        url("crest.png")
        center / contain
        no-repeat;

    opacity: 0.25;
    pointer-events: none;

    animation: float 6s ease-in-out infinite;
}

/* FLOAT ANIMATION */

@keyframes float {
    0%,
    100% {
        transform:
            translate(-50%, -50%)
            translateY(5px);
    }

    50% {
        transform:
            translate(-50%, -50%)
            translateY(-5px);
    }
}

/* OVERLAY */

.overlay {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 100%;

    text-align: center;
    color: white;
}

/* TITLES */

.overlay h3 {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: bold;
    margin-bottom: 20px;
    text-decoration: none;
}

.overlay h3.links-title {
    text-decoration: underline;
}

/* MAIN BUTTONS */

.btn {
    display: block;
    margin: 16px auto;

    color: white;
    font-weight: bold;
    font-size: clamp(20px, 2vw, 26px);
    text-decoration: none;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.btn:hover {
    transform: scale(1.12);
}

/* SOCIAL BUTTON */

.social-btn {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

/* SOCIAL POPUP */

.social-popup {
    position: absolute;
    top: 58%;
    left: 50%;

    width: max-content;
    max-width: calc(100% - 30px);

    transform:
        translate(-50%, -50%)
        scale(0.8);

    background: rgba(0, 0, 0, 0.85);

    padding: 18px 28px;
    border-radius: 12px;
    text-align: center;

    opacity: 0;
    pointer-events: none;

    transition: all 0.3s ease;
    z-index: 2;
}

.social-popup a {
    display: block;
    color: white;
    font-size: 20px;
    margin: 10px 0;
}

.social-popup.active {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1);

    pointer-events: auto;
}

/* GENERAL LINKS */

a {
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

/* LARGE BACK BUTTON */

.btn-large {
    font-size: clamp(26px, 3vw, 34px);
    padding: 10px 0;
    display: inline-block;
    background: none;
    border-radius: 0;
}

.btn-large:hover {
    transform: scale(1.12);
}

/* PAGE LAYOUT */

.page-content {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
}

.info-card {
    width: 100%;
    max-width: 100%;

    background: white;
    color: #4c1d95;

    padding: 30px;
    border-radius: 12px;

    text-align: left;
    line-height: 1.7;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.15);
}

.info-card hr {
    margin: 25px 0;
    border: none;

    border-top:
        2px solid
        rgba(76, 29, 149, 0.25);
}

.back-btn-wrap {
    text-align: center;
    margin-top: 35px;
}

/* RECRUITMENT PAGE */

.recruitment-container {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.recruitment-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;

    overflow-x: hidden;
    overflow-y: visible;

    padding: 20px 0;
    transform: none !important;
}

.recruitment-page::before {
    width: min(90%, 900px);
    height: auto;
    aspect-ratio: 1 / 1;
}

.week-title {
    color: #4c1d95;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 8px;

    border-bottom:
        2px solid
        rgba(76, 29, 149, 0.25);
}

/* EVENT SECTIONS */

.event-item {
    width: 100%;
    max-width: 100%;

    margin-bottom: 20px;
    padding-bottom: 15px;

    overflow-wrap: anywhere;

    border-bottom:
        1px solid
        rgba(0, 0, 0, 0.1);
}

.event-item h4 {
    margin-bottom: 8px;
    color: #4c1d95;
}

.event-item p {
    margin-bottom: 4px;
}

/* LOCATION BUTTON */

.location-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

    max-width: 100%;

    color: #5b21b6;
    font-weight: bold;
    text-decoration: none;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

button.location-link {
    border: none;
    padding: 0;
    background: none;

    font-family: inherit;
    font-size: inherit;
    text-align: left;

    cursor: pointer;
}

/* PIN EMOJI */

.location-pin {
    display: inline-block;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1;
}

/* ONLY THE LOCATION NAME IS UNDERLINED */

.location-name {
    display: inline;
    max-width: 100%;

    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* LOCATION HOVER EFFECT */

.location-link:hover {
    transform: translateY(-1px);
    opacity: 0.75;
    text-decoration: none;
}

.location-link:hover .location-name {
    text-decoration: none;
}

/* KEYBOARD FOCUS */

.location-link:focus-visible {
    outline: 3px solid #6b21a8;
    outline-offset: 4px;
    border-radius: 4px;
}

.tbd-location {
    cursor: pointer;
}

/* LAKE DAY NOTE */

.lake-note {
    margin-top: 10px;
    padding: 10px 12px;

    background: rgba(107, 33, 168, 0.08);

    border-left:
        4px solid
        #6b21a8;

    border-radius: 6px;

    font-size: 0.95rem;
    line-height: 1.5;
}

/* SCHEDULE MESSAGE */

.schedule-message {
    margin-top: 25px;
}

.schedule-message p {
    margin-bottom: 15px;
}

.schedule-update {
    padding: 12px;

    border-left:
        4px solid
        #6b21a8;

    background:
        rgba(107, 33, 168, 0.08);
}

/* CONTACT BOX */

.contact-box {
    width: 100%;
    max-width: 100%;

    margin-top: 25px;
    padding: 20px;

    border:
        2px solid
        #6b21a8;

    border-radius: 12px;
    text-align: center;

    background:
        rgba(107, 33, 168, 0.06);
}

.contact-box h4 {
    margin-top: 0;
    margin-bottom: 10px;

    color: #4c1d95;
    font-size: 22px;
}

.contact-box p {
    margin-bottom: 15px;
}

.contact-btn {
    display: inline-block;
    max-width: 100%;

    padding: 12px 20px;

    color: white;
    background: #5b21b6;

    border:
        2px solid
        #5b21b6;

    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    overflow-wrap: anywhere;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    opacity: 0.88;
    text-decoration: none;
}

/* MAP MENU BACKGROUND */

.map-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;

    width: 100%;
    max-width: 100%;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.65);

    opacity: 0;
    visibility: hidden;

    overflow-x: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.map-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* MAP MENU */

.map-menu {
    width: 100%;
    max-width: 460px;

    background: white;

    border-radius: 20px;
    overflow: hidden;

    transform: translateY(40px);

    transition:
        transform 0.3s ease;

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.35);
}

.map-menu-overlay.active .map-menu {
    transform: translateY(0);
}

/* MAP MENU HEADER */

.map-menu-header {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 22px 22px 18px;
}

.map-menu-pin {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    background:
        rgba(107, 33, 168, 0.1);

    border-radius: 50%;
    font-size: 24px;
}

.map-menu-label {
    margin-bottom: 2px;

    color: #6b7280;

    font-size: 13px;
    font-weight: bold;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.map-menu-header h4 {
    color: #4c1d95;
    font-size: 22px;
    line-height: 1.25;
}

.map-menu-divider {
    height: 1px;

    background:
        rgba(0, 0, 0, 0.1);
}

/* MAP MENU OPTIONS */

.map-menu-option {
    width: 100%;
    max-width: 100%;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 18px 22px;

    border: none;

    border-bottom:
        1px solid
        rgba(0, 0, 0, 0.08);

    background: white;
    color: #4c1d95;

    font-family: inherit;
    font-size: 17px;
    font-weight: bold;

    text-align: left;
    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        padding-left 0.2s ease;
}

.map-menu-option:hover {
    background:
        rgba(107, 33, 168, 0.08);

    padding-left: 27px;
    text-decoration: none;
}

.map-menu-option:focus-visible {
    outline: 3px solid #6b21a8;
    outline-offset: -3px;
}

.map-option-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 30px;
    flex-shrink: 0;

    font-size: 20px;
}

.cancel-option {
    color: #7f1d1d;
    border-bottom: none;
}

/* TBD LOCATION MESSAGE */

.location-notice {
    position: fixed;
    left: 50%;
    bottom: 25px;
    z-index: 60;

    width: calc(100% - 40px);
    max-width: 500px;

    padding: 14px 18px;

    color: white;

    background:
        rgba(38, 20, 61, 0.96);

    border-radius: 10px;

    text-align: center;
    font-weight: bold;

    opacity: 0;
    pointer-events: none;

    transform:
        translate(-50%, 20px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.location-notice.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}

/* TABLET AND MOBILE */

@media (max-width: 768px) {

    .container {
        flex-direction: column;
    }

    .left,
    .right {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .left {
        padding: 40px 20px;
    }

    .right {
        padding-top: 40px;
        padding-bottom: 40px;
        transform: none !important;
    }

    .right::before {
        width: min(95%, 650px);
    }

    .recruitment-page {
        padding: 20px 0;
    }

    .page-content {
        padding: 25px 15px;
    }

    .page-title {
        font-size: 22px;
    }

    .info-card {
        padding: 20px;
        font-size: 15px;
        line-height: 1.6;
    }

    .week-title {
        font-size: 21px;
    }

    ul {
        padding-left: 18px;
    }

    .btn-large {
        font-size: 22px;
        margin-top: 10px;
    }

    .contact-box {
        padding: 18px 14px;
    }

    .contact-btn {
        width: 100%;
    }

    .map-menu-overlay {
        padding: 12px 12px 18px;
    }

    .map-menu {
        border-radius: 18px;
    }
}

/* DESKTOP MAP MENU POSITION */

@media (min-width: 769px) {

    .map-menu-overlay {
        align-items: center;
    }

    .map-menu {
        border-radius: 18px;
    }
}

/* SMALL PHONES */

@media (max-width: 430px) {

    .logo {
        max-width: 85%;
    }

    .page-content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .info-card {
        padding: 18px 15px;
    }

    .event-item h4 {
        font-size: 16px;
    }

    .location-link {
        margin-top: 3px;
    }

    .map-menu-header {
        padding: 19px 18px 16px;
    }

    .map-menu-option {
        padding: 17px 18px;
        font-size: 16px;
    }

    .right::before {
        width: 95%;
    }
}
