@font-face {
    font-family: 'GreenEnergy';
    src: url('../assets/GreenEnergy.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --text-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 24px rgba(255, 255, 255, .8), 0 0 36px rgba(255, 255, 255, .6);
    --white: #fff;
    --pad: clamp(12px, 2vw, 24px);
}

* {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    cursor: none !important;
}


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    color: var(--white);
    font-family: 'GreenEnergy', Arial, sans-serif;
    background: #000;
    scrollbar-color: var(--white) black;
}

/* BG */
.bg {
    position: fixed;
    inset: 0;
    z-index: -3;
}

.bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 65%, rgba(0, 0, 0, .9));
    pointer-events: none;
}

/* LAYOUT */
.stage {
    position: relative;
    min-height: 100vh;
    padding: var(--pad);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 3vh, 32px);
}

.logo {
    z-index: 10;
    opacity: 1;
}

.logo img {
    max-width: clamp(120px, 28vw, 280px);
    height: auto;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 1)) brightness(1.2);
}

/* NAV */
.nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1.8vh, 14px);
}

.nav a {
    font-size: clamp(22px, 3vw, 44px);
    text-decoration: none;
    color: var(--white);
    opacity: .92;
    text-shadow: var(--text-shadow);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .35s ease, color .35s ease, opacity .35s ease;
    animation: shake 2s infinite;
}

.nav a::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 1.25em;
    background: var(--white);
    z-index: -1;
    transition: width .4s ease;
}

.nav a:hover::before {
    width: 100vw;
}

.nav a:hover {
    color: #000;
    opacity: 1;
    transform: scale(1.18);
}

/* Cart Counter */
.cart-counter {
    font-size: clamp(18px, 2vw, 32px);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: clamp(18px, 2vw, 32px);
    height: clamp(18px, 2vw, 32px);
    padding-left: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: var(--text-shadow);
}

/* Shake Effect */
@keyframes shake {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    20% {
        transform: translate(-1px, 1px) rotate(-0.5deg);
    }
    40% {
        transform: translate(-1px, -1px) rotate(0.5deg);
    }
    60% {
        transform: translate(1px, 1px) rotate(-0.5deg);
    }
    80% {
        transform: translate(1px, -1px) rotate(0.5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Slider */
.slider-container {
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: start;
}

.slider img {
    max-width: 100%;
    max-height: 100%;
    transform: scale(1.25);
    object-fit: contain;
    margin: auto auto;
    display: block;
}

.prev-button,
.next-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    border: none;
    font-size: 32px;
    color: white;
}

.prev-button {
    left: 10px;
}

.next-button {
    right: 10px;
}

/* Merch */
.merch {
    display: flex;
    flex: 1;
    width: 100%;
    gap: 5%;
    justify-content: center;
    flex-direction: row;
    font-family: Arial, sans-serif;
}

.merch-panel {
    display: flex;
    width: 40%;
    flex-direction: column;
    gap: 12px;
    margin-top: 2%;
}

.merch-panel > * {
    margin: 0;
}

.merch-price {
    font-size: clamp(22px, 3vw, 44px);
}

.merch-size {
    display: grid;
    align-items: center;
    font-size: clamp(12px, 2vw, 20px);
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 12px;
    grid-row-gap: 0;
}

.merch-size > * {
    margin: 0;
}

.size-title {
    grid-area: 1 / 1 / 2 / 3;
}

.size-select {
    grid-area: 2 / 1 / 3 / 2;
}

select {
    height: clamp(18px, 3vw, 36px);
    width: 80%;
    color: var(--white);
    font-weight: bold;
    font-size: 120%;
    border: 2px solid #3C3C3C;
    border-radius: 6px;
    background-color: #131313;
}

select:hover {
    background-color: #333;
}

.size-grid {
    grid-area: 2 / 2 / 3 / 3;
}

.size-grid:hover {
    text-shadow: 2px 2px 4px white;
}

.merch-btn {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    outline: inherit;
    display: flex;
    justify-content: left;
    align-items: center;
    text-align: center;
    font-size: clamp(64px, 6vw, 240px);
    font-weight: bold;
    width: 100%;
    height: auto;
}

/* CART Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -480px;
    width: min(92vw, 480px);
    height: 100%;
    background: rgba(0, 0, 0, .95);
    color: var(--white);
    z-index: 2500;
    padding: 16px;
    box-shadow: -2px 0 18px rgba(0, 0, 0, .7);
    transition: right .4s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 10px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px solid #333;
    font-size: clamp(18px, 2vw, 24px);
}

.cart-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.cart-item-details p {
    margin: 0;
    text-align: center;
}

.cart-item-remove {
    font-family: 'GreenEnergy', Arial, sans-serif;
    font-size: clamp(18px, 2vw, 24px);
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: #dc2626;
}

.cart-footer {
    border-top: 1px solid #333;
    padding-top: 10px;
    display: grid;
    gap: 10px;
    font-size: clamp(14px, 2vw, 28px);
}

.cart-total {
    text-align: left;
    margin: 0;
}

.cart-footer button {
    font-family: 'GreenEnergy', Arial, sans-serif;
    font-size: clamp(14px, 2vw, 28px);
    padding: 5px;
    background: #111;
    border: 1px solid #444;
    color: var(--white);
    cursor: pointer;
}

/* CROSSHAIR */
.crosshair {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.crosshair.shown {
    opacity: 1;
}

.crosshair-line {
    position: absolute;
    background: var(--white);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.crosshair-horizontal-top, .crosshair-horizontal-bottom {
    width: 100%;
    height: 2px;
}

.crosshair-vertical-left, .crosshair-vertical-right {
    height: 100%;
    width: 2px;
}

.hidden {
    display: none;
}

.modal {
    z-index: 4999;
    position: absolute;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 80%;
    border: 2px solid var(--white);
    border-radius: clamp(12px, 2vw, 24px);

    * {
        border: 2px solid var(--white);
        border-radius: clamp(12px, 2vw, 24px);
    }
}

.modal img {
    width: 100%;
    height: 100%;
    filter: invert(1);
}

.close-modal {
    position: absolute;
    top: 0;
    right: 0;
    width: clamp(36px, 3vw, 72px);
    height: clamp(36px, 3vw, 72px);
    font-size: clamp(36px, 3vw, 72px);
    border: unset;
    text-align: center;
    color: var(--white);
}

.opacity-half {
    *:not(.modal):not(.modal *) {
        opacity: 0.7;
    }
}

#cartClose {
    font-family: 'GreenEnergy', serif;
    font-weight: normal;
    font-style: normal;
    background-color: black;
    color: var(--white);
    border: none;
    font-size: 28px;
}

@media (max-width: 768px) {
    .merch {
        justify-content: start;
        flex-direction: column;
        align-items: center;
    }

    .slider-container, .merch-panel {
        width: 100%;
    }

    .merch-panel {
        margin-top: 5%;
        align-items: center;
    }

    .merch-btn {
        width: fit-content;
    }

    .slider-container {
        height: 400px;
    }

    .slider img {
        transform: scale(0.9);
    }

    select {
        font-size: 100%;
    }

    .modal {
        left: 0;
        width: 100%;
        height: 50%;
    }

    .crosshair {
        display: none;
    }

    .crosshair.shown {
        display: none;
    }

    .cart-sidebar {
        width: 100%;
    }

    #cartClose {
        font-size: 56px;
    }

}
