@import url('./clash-grotesk.css?v=3');

@font-face {
    font-family: 'MinionPro';
    src: url('./fonts/MinionPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/*---------------------- HEADER ----------------------*/
.app {
    background-color: #303030;
    display: flex;
    justify-content: center;
}

.page-container {
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    height: 100dvh;
    max-width: 500px;
    width: 100%;
}

.game-container {
    background-image: url('/backgroundBingo.jpg?v=3');
    height: 100%;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    background-color: #3d1116;
    position: relative;
}

.game-container::-webkit-scrollbar {
    display: none;
}

/*---------------------- GAME ----------------------*/

.bingoHeaderBox {
    width: 80%;
    margin-top: 12px;
    /*margin-bottom: 12px;*/

}

.smallBingoCircle {
    width: 100%;
}

.teenzoneLogo {
    width: 75%;
}

.square {
    width: 100%;
    position: relative;
}

.bigBingoCircle {
    position: absolute;
}

.square:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.content {
    position: absolute;
    width: 100%;
    height: 100%;
}

.padding {
    padding: 20px;
}

.flip-card-back {
    -webkit-box-shadow: 4px 6px 14px -2px rgba(0, 0, 0, 0.49);
    box-shadow: 4px 6px 14px -2px rgba(0, 0, 0, 0.49);
}

.flip-card-front,
.flip-card-back {
    height: 100%;
    border-radius: 15px;
    position: relative;
}

.flip-card.inner {
    align-items: center;
    display: flex;
    text-align: center;
}

.assignmentText {
    /*font-size: 3.3vw;*/
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    font-weight: 400;
    line-height: 1;
    color: #3d1116
}

@media only screen and (min-width: 582px) {
    .assignmentText {
        /*font-size: 20px;*/
    }
}

.white-text {
    color: white;
}

button {
    font-family: 'Raleway', sans-serif;
    color: #180e36
}

.overlay-icon {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.greenBackground {
    background: white
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}


.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}


.flip-card-now.flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

.flip-card-front {
    color: black;
}

.flip-card-back {
    background-color: white;
    color: #180e36;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

.wobble {
    animation: wobble 2s ease infinite;
    animation-delay: 1s;
}

@keyframes wobble {
    0% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-25%) rotate(-5deg);
    }
    30% {
        transform: translateX(20%) rotate(3deg);
    }
    45% {
        transform: translateX(-15%) rotate(-3deg);
    }
    60% {
        transform: translateX(10%) rotate(2deg);
    }
    75% {
        transform: translateX(-5%) rotate(-1deg);
    }
    100% {
        transform: translateX(0%);
    }
}

.resetBtn {
    background: #318063 !important;
    color: white !important;
}

.hithere {
    animation: hithere 1s ease 1;
}

@keyframes hithere {
    30% {
        transform: scale(1.2);
    }
    40%, 60% {
        transform: rotate(-20deg) scale(1.2);
    }
    50% {
        transform: rotate(20deg) scale(1.2);
    }
    70% {
        transform: rotate(0deg) scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.instagram {
    background: rgb(253,29,29);
    background: linear-gradient(234deg, rgba(253,29,29,1) 0%, rgba(252,176,69,1) 100%);
    box-shadow: inset 0 0 0 2px white, 4px 6px 14px -2px rgba(0, 0, 0, 0.49);
    -webkit-box-shadow: inset 0 0 0 2px white, 4px 6px 14px -2px rgba(0, 0, 0, 0.49);
}

.instagram-whitebox {
    border-radius: 10px;
    width: 86%;
    height: 84%;
    background-color: white;
}

.instagram-icon {
    width: 15%;
    /*height: 17px;*/
    position: fixed;
    bottom: 2px;
    transform: translate(-50%, -50%);
}

.instagram-icon-white {
    width: 20px;
    height: 20px;
}

.instagram-astrix {
    color: white;
   padding-left: 10px !important;
}

.instagram-astrix span, .instagram-astrix a {
    padding-left: 5px;
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    font-size: 20px;
}

/*---------------------- NO GAME ----------------------*/
.game-closed {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    text-align: center;
}

.game-closed h1,
.countdown-complete {
    color: white;
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    font-size: 3rem;
}

.error-subtitle {
    color: white;
    font-family: 'ClashGrotesk-regular', Arial, sans-serif;
    font-size: 1.5rem;
    margin: 0;
}

.count-down-timer {
    margin-top: -20px;
}

.countdown-number {
color: white;
        font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    font-size: 3.8rem;
    margin-bottom: -30px;
}

.countdown-notation {
    color: white;
    font-family: 'ClashGrotesk-Regular', Arial, sans-serif;
}


/*---------------------- PASSWORD TILES ----------------------*/

.treasure-lock-icon {
    position: absolute;
    bottom: calc(8% - 5px);
    right: calc(8% - 5px);
    width: 30%;
    height: 30%;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    animation: chest-bob 2.5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.treasure-chest-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.treasure-sparkle {
    position: absolute;
    background: #ffffff;
    clip-path: polygon(
        50% 0%,
        58% 42%,
        100% 50%,
        58% 58%,
        50% 100%,
        42% 58%,
        0% 50%,
        42% 42%
    );
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 1))
            drop-shadow(0 0 12px rgba(251, 237, 101, 0.85));
    animation: treasure-sparkle 2.6s ease-in-out infinite;
    will-change: transform, opacity;
    z-index: 3;
}

.treasure-sparkle-1 {
    top: 38%;
    left: 38%;
    width: 28%;
    height: 28%;
    animation-delay: var(--sparkle-delay, 0s);
}

.treasure-sparkle-2 {
    top: 62%;
    left: 14%;
    width: 22%;
    height: 22%;
    animation-delay: calc(var(--sparkle-delay, 0s) + 0.9s);
    animation-duration: 2.3s;
}

.treasure-sparkle-3 {
    top: 58%;
    right: 12%;
    width: 24%;
    height: 24%;
    animation-delay: calc(var(--sparkle-delay, 0s) + 1.7s);
    animation-duration: 2.8s;
}

@keyframes treasure-sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.2) rotate(0deg);
    }
    8% {
        opacity: 0;
    }
    22% {
        opacity: 1;
        transform: scale(1.3) rotate(140deg);
    }
    45% {
        opacity: 0;
        transform: scale(0.4) rotate(280deg);
    }
}

/*---------------------- LOCK PREVIEW PAGE ----------------------*/

.lock-preview-page {
    padding: 24px 16px 60px;
    color: white;
    font-family: 'ClashGrotesk-Regular', Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

.lock-preview-title {
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    font-size: 2rem;
    margin-bottom: 4px;
    text-align: center;
}

.lock-preview-sub {
    text-align: center;
    opacity: 0.85;
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.lock-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 18px;
}

.lock-preview-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 14px;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lock-preview-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.14);
}

.lock-preview-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 6px 14px -2px rgba(0, 0, 0, 0.49);
    margin-bottom: 10px;
    overflow: hidden;
}

.lock-preview-circle {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.lock-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.85rem;
}

.lock-preview-meta strong {
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
}

.lock-preview-meta code {
    font-size: 0.75rem;
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}

@keyframes chest-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Password popup overlay */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Treasure card popup */
.password-card-pop {
    width: 85%;
    max-width: 320px;
    animation: card-pop 0.3s ease;
}

.password-card {
    background-color: #3d1116;
    background-image: url('/backgroundBingo.jpg?v=3');
    background-size: cover;
    background-position: center;
    border: 3px solid #A0724A;
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 0 0 4px rgba(139, 94, 60, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

@keyframes card-pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.password-chest-header {
    margin-bottom: 8px;
}

.password-key-icon {
    width: 60px;
    height: 45px;
    filter: drop-shadow(0 2px 6px rgba(251, 237, 101, 0.4));
}

.password-title {
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    color: #fbed65;
    font-size: 1.2rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.password-title-success {
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 0 18px rgba(251, 237, 101, 0.6);
    animation: success-title-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes success-title-pop {
    0% { transform: scale(0.6); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.password-subtitle {
    font-family: 'ClashGrotesk-Medium', Arial, sans-serif;
    color: #5C3A1E;
    font-size: 0.85rem;
    line-height: 1.35;
    margin: 0 0 16px 0;
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #A0724A;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    font-size: 1.25rem;
    color: #3d1116;
    text-align: center;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-success-check {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    pointer-events: none;
}

.input-check-icon {
    position: relative;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 6px rgba(46, 204, 113, 0.55));
    animation: input-check-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    z-index: 2;
}

@keyframes input-check-pop {
    0% { transform: scale(0) rotate(-25deg); opacity: 0; }
    60% { transform: scale(1.25) rotate(6deg); opacity: 1; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.input-check-burst {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #2ecc71;
    box-sizing: border-box;
    animation: input-check-burst 0.7s ease-out both;
    animation-delay: 0.15s;
    z-index: 1;
}

.input-check-burst-2 {
    border-color: #fbed65;
    animation-delay: 0.3s;
}

@keyframes input-check-burst {
    0% { transform: scale(0.5); opacity: 0.9; }
    100% { transform: scale(2.8); opacity: 0; }
}

.password-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.password-input::placeholder {
    color: #a09080;
}

.password-btn {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: #fbed65;
    color: #5C3A1E;
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(251, 237, 101, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.password-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(251, 237, 101, 0.3);
}

.password-btn:disabled {
    cursor: default;
    opacity: 0.85;
}

.password-card.password-card-success {
    overflow: visible;
}

.popper {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 20;
}

.popper-left {
    left: 6%;
    top: 55%;
}

.popper-right {
    right: 6%;
    top: 55%;
}

.popper-mid {
    left: 50%;
    bottom: 18%;
}

.popper-piece {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--w, 8px);
    height: var(--h, 12px);
    background: var(--c, #fbed65);
    border-radius: 1px;
    opacity: 0;
    transform-origin: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: popper-fly 1.2s cubic-bezier(0.16, 0.78, 0.4, 1) both;
    animation-delay: var(--delay, 0s);
    will-change: transform, opacity;
}

@keyframes popper-fly {
    0% {
        transform: translate(0, 0) rotate(0);
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) rotate(var(--rot));
        opacity: 0;
    }
}

/* Error shake animation */
.input-shake {
    animation: input-shake 0.5s ease;
    border-color: #e74c3c !important;
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

.chest-shake {
    animation: chest-card-shake 0.5s ease;
}

@keyframes chest-card-shake {
    0%, 100% { transform: translateX(0) rotate(0); }
    20% { transform: translateX(-6px) rotate(-1deg); }
    40% { transform: translateX(6px) rotate(1deg); }
    60% { transform: translateX(-4px) rotate(-0.5deg); }
    80% { transform: translateX(4px) rotate(0.5deg); }
}

.password-error-text {
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    color: #fbed65;
    font-size: 0.9rem;
    margin: 2px 0 0 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.password-error-text.visible {
    opacity: 1;
}

.crying-smileys {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.crying-smiley {
    position: absolute;
    top: -2.5rem;
    transform: translateX(-50%);
    animation-name: smiley-fall;
    animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
    animation-fill-mode: forwards;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    will-change: transform, opacity;
}

@keyframes smiley-fall {
    0% {
        transform: translate(-50%, 0) rotate(var(--tilt, 0deg));
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        transform: translate(-50%, 240px) rotate(calc(var(--tilt, 0deg) + 6deg));
    }
    100% {
        transform: translate(-50%, 520px) rotate(calc(var(--tilt, 0deg) - 4deg));
        opacity: 0;
    }
}

/*---------------------- FOOTER ----------------------*/
.gameNameBox {
    background-color: #fbed65;
    padding: 3px 7px;
    border-radius: 10px;
}
.gameName {
    color: #ef3f4a;
    font-size: 1rem;
    font-family: 'ClashGrotesk-Semibold', Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0;
    }
