* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins";
    background-color: var(--white);
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

:root {
    --red: #B03224;
    --light-red: #E5CBC8;
    --white: #FFFFFF;
    --grey: #F2F3F4;
    --black: #343434;
}

input:focus {
    outline: none;
}

.button1 {
    padding: .8rem 2.2rem;
    font-size: 1.2rem;
    color: var(--white);
    background: var(--red);
    border-radius: 6px;
    border: 2px solid var(--red);
    min-width: 140px;
}

.button2 {
    padding: .8rem 2.2rem;
    font-size: 1.2rem;
    color: var(--bladk);
    background: transparent;
    border: 2px solid var(--black);
    border-radius: 6px;
    min-width: 140px;
}

/* ========================== footer ========================== */
footer {
    background-color: var(--black);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
        bottom: 0;
        left: 0;
    width: 100%;
    height: 2.5rem;
    font-size: .8rem;
    z-index: 10;
}

/* ======================== login form ======================== */
.login-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.form-container {
    width: 90vw;
    max-width: 450px;
    text-align: center;
}

.form-container > h1 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.form-container form > div {
    text-align: left;
    width: 100%;
    margin-bottom: 1.2rem;
}

.input-container {
    display: flex;
    align-items: center;
    background-color: var(--grey);
    padding: .8rem 1.2rem;
    border-radius: 5px;
}

.input-container input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.2rem;
}

.input-container div {
    margin-left: .5rem;
    width: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.input-container div svg {
    position: absolute;
}

.d-none {
    display: none;
}

.input-container svg path {
    fill: var(--black)
}

a {
    color: var(--red);
    text-decoration: none;
}

.form-container button {
    margin-top: 3rem;
    margin-bottom: 1rem;
    background-color: var(--red);
    border: none;
    padding: .9rem 1.8rem;
    width: 100%;
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
}

.forgot-container {
    width: 100%;
    display: flex;
    justify-content: end;
}

.form-container span {
    color: var(--red);
}


/* ==================================== NAVBAR ==================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.5rem 2rem;
    position: relative;
}

#pageName-container {
    position: absolute;
        top: 0;
        left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: -2;
}
nav h3 {
    color: var(--red);
    text-align: center;
}

.logo-container {
    width: 38px;
    height: 38px;
    background-color: var(--black);
}

/* ham menu */
.nav-container {
    position: relative;
    width: 38px;
    height: 38px;
}

.hamBtn {
    display: none;
}
.hamLabel::after {
    content: '';
    position: absolute;
        top: 0;
        left: 0;
    width: 38px;
    height: 38px;
    background: transparent;
    z-index: 6;
}
.hamLabel::before {
    content: '';
    position: absolute;
        top: 0;
        left: 0;
    width: 38px;
    height: 6px;
    margin: 16px 0;
    background: var(--black);
    transition: .3s;
}

.nav-links {
    text-decoration: none;
    list-style-type: none;
    position: absolute;
        top: 50px;
        left: 0;
    visibility: hidden;
    width: 120px;
    z-index: 1;
    /* transition: .3s; */
}
.nav-links::before {
    content: '';
    position: absolute;
        top: -32px;
        left: 17px;
    width: 0;
    height: 0;
    background: var(--red);
    border-radius: 50%;
    z-index: -1;
    transition: .3s;
}
.nav-links a {
    color: var(--white);
}
.nav-links li {
    margin-top: .5rem;
}

input[type="checkbox"]:checked ~ .nav-links {
    visibility: visible;
}
input[type="checkbox"]:checked ~ .nav-links::before {
        top: calc(0px - 2rem - 50px);
        left: -2rem;
    width: calc(100% + 2rem + 2rem);
    height: calc(100% + 2rem + 50px + 2rem);
    background: var(--red);
    border-radius: 0 0 1.5rem 0;
}

input[type="checkbox"]:checked ~ .hamLabel::before {
    background: var(--red);
}
input[type="checkbox"]:checked ~ .burger-icon::before {
    background: var(--white);
    transform: translateY(16px) rotate(-45deg);
}
input[type="checkbox"]:checked ~ .burger-icon::after {
    background: var(--white);
    transform: translateY(-16px) rotate(45deg);
}

.burger-icon {
    position: absolute;
        top: 0;
        left: 0;
    width: 38px;
    height: 38px;
    z-index: 5;
}
.burger-icon::before,
.burger-icon::after {
    transition: .3s;
}
.burger-icon::before {
    content: '';
    position: absolute;
        top: 0;
        left: 0;
    width: 38px;
    height: 6px;
    background-color: var(--black);
}
.burger-icon::after {
    content: '';
    position: absolute;
        top: 32px;
        left: 0;
    width: 38px;
    height: 6px;
    background-color: var(--black);
}


/* ==================================== HEADER ==================================== */
header {
    padding: .5rem 0 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h2 {
    z-index: -2;
}

/* QR Button */
#qrBtn:checked ~ .qrPopup-container {
    visibility: visible;
}
#qrBtn:checked ~ .qrLabel {
    transform: translateX(100%);
}

#qrBtn {
    display: none;
}

.qrLabel {
    background-color: var(--red);
    border-radius: 1rem 0 0 1rem;
    padding: .7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}
.qrLabel img {
    width: 3rem;
    height: 3rem;
}

/* QR POPUP */
.qrPopup-container {
    position: absolute;
        top: 0;
        left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    z-index: 7;
}
.qrPopup-container::before {
    content: '';
    position: absolute;
        top: 0;
        left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: rgba(0, 0, 0, 20%);
    backdrop-filter: blur(2px);
}
.qrPopup {
    max-width: 500px;
    width: 100vw;
    margin: 0 2rem;
    padding: 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: var(--black);
    border-radius: 1.2rem;
}

.qrPopup {
    width: 100%;
    text-align: center;
    position: relative;
}
.qrPopup h1 {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 1rem;
}
.qrPopup label {
    position: absolute;
        top: 2.5rem;
        right: 2rem;
    background: none;
    border: none;
}
.qrPopup label::before {
    content: '';
    position: absolute;
        top: 0;
        left: -38px;
    width: 38px;
    height: 6px;
    background: var(--white);
    transform: translateY(16px) rotate(-45deg);
}
.qrPopup label::after {
    content: '';
    position: absolute;
        top: 32px;
        left: -38px;
    width: 38px;
    height: 6px;
    background: var(--white);
    transform: translateY(-16px) rotate(45deg);
}

.qrImg-container {
    max-width: 425px;
    width: 70vw;
    overflow: hidden;
}
.qrImg-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* =================================== BOOTHS =================================== */
.boothHeader {
    position: fixed;
    width: 100vw;
    background-color: var(--white);
}

.boothSelect {
    position: relative;
    z-index: 0;
    padding: .8rem 1.2rem;
    border-radius: 5px;
    background: var(--grey);
    border: none;
    width: 60vw;
    max-width: 400px;
}
.boothSelect:focus {
    outline: none;
}

.content {
    padding: 0 2rem 4.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-container {
    margin-top: calc(4rem + 38px + 3rem + 5.5rem);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.grid-container div {
    background-color: var(--grey);
    width: 100%;
    height: 40vw;
    border-radius: .5rem;
}


/* ================================= PROGRESS BAR ================================= */
.progressBar-container {
    margin-top: 5rem;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
}

.bar {
    height: 5px;
    background: var(--grey);
    position: relative;
    z-index: -2;
}

.checkpoint-container {
    position: absolute;
        top: 0;
        left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.checkpoint {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grey);
    display: flex;
    justify-content: center;
    align-items: center;
}

.done {
    background: var(--red);
    color: var(--white);
}
.checkpoint.current {
    width: 50px;
    height: 50px;
    background: var(--red);
    color: var(--white);
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
}

.checkpoint.current::before {
    content: '';
    position: absolute;
        top: 0;
        left: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--red);
    z-index: -1;
    opacity: 50%;
    transform: scale(1);

    animation: pulse 2s infinite;
}

.cp1 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grey);
    display: flex;
    justify-content: center;
    align-items: center;
}
.cp1.current {
    width: 30px;
    height: 30px;
    background: var(--red);
    color: var(--white);
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
}
.cp1.done {
    background: var(--red);
    color: var(--white);
}
.cp1.current::before {
    content: '';
    position: absolute;
        top: 0;
        left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--red);
    z-index: -1;
    opacity: 50%;
    transform: scale(1);

    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(2);
    }
    65% {
        transform: scale(2.2);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.checkpoint-container > :first-child span {
    color: var(--black);
    margin-top: 4rem;
    font-weight: 600;
}

.checkpoint-container > :last-child {
    position: relative;
}

/* GIFT Indicator */
.checkpoint svg path {
    fill: var(--black);
}

.gift-checkpoint span {
    position: absolute;
    margin-top: -5rem;
    animation: gift 1s infinite;
}
.gift-checkpoint b {
    display: none;
}

.current.unclaimed-gift {
    background: var(--red);
    color: var(--red);
    width: 50px;
    height: 50px;
}
.unclaimed-gift span {
    position: absolute;
    animation: gift .8s infinite;
    margin-top: .2rem;
}
.unclaimed-gift span svg path {
    fill: var(--white);
}

.unclaimed-gift b {
    color: var(--red);
    position: absolute;
    margin-top: -5.6rem;
    font-size: 1.1rem;
}

.claimed-gift span,
.claimed-gift b {
    display: none;
}
.claimed-gift span svg path {
    fill: var(--grey);
}

@keyframes gift {
    0% {
        transform: rotate(12deg);
    }

    50% {
        transform: rotate(-12deg);
    }

    100% {
        transform: rotate(12deg);
    }
}

/* BOOTH DISPLAY (index page) */
.booths-container {
    width: 100vw;
    height: calc(100vh - (38px + 3rem + 78px + .5rem + 157px + 48px + 1rem));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.booth-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.booth-box {
    background: var(--grey);
    border-radius: 10px;
    width: 25vw;
    height: 25vw;
    max-width: 130px;
    max-height: 130px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: .5rem;
    position: relative;
    color: var(--black);
}

.booth-box.visited {
    border: 2px solid var(--red);
}
.booth-box.visited::before {
    content: '';
    position: absolute;
        top: -2px;
        left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: var(--red);
    border-radius: inherit;
    opacity: 20%;
    backdrop-filter: blur(2px);
}

.booth-box h4 {
    font-weight: 500;
}


/* =================================== BOOTH VIEW =================================== */
.boothInfo-container {
    padding: 1.5rem 2rem;
}

.boothImg-container {
    width: 100%;
    height: 30vh;
    border-radius: .5rem;
    overflow: hidden;
    position: relative;
}
.boothImg-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visited-tag {
    position: absolute;
        top: 1rem;
        right: 1rem;
    width: 120px;
    height: 2.8rem;
    background: var(--light-red);
    color: var(--red);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    font-weight: 600;
}

.booth-content {
    width: 100%;
    height: calc(100vh - (38px + 3rem + 78px + .5rem + 1.5rem + 30vh + 2rem));
    display: flex;
    flex-direction: column;
}
.booth-content p {
    margin: 1rem 0;
}
.booth-content h4 {
    color: var(--red);
}
.booth-content span {
    font-weight: 600;
}
.btn-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto 0 2.5rem 0;
}


/* ===================================== GUIDE ===================================== */
.guide-container {
    padding: 3.3rem 2rem 0 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
    height: calc(100vh - (38px + 3rem + 78px + .5rem + 2rem));
}

.guide-container h2 {
    margin: 1rem 0;
}

.guide-container .btn-container {
    display: flex;
    gap: .8rem;
}