@font-face {
    font-family: 'BahijTheSansArabic';
    src: url('/static/font/Bahij_TheSansArabic-Plain.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'BahijTheSansArabic', sans-serif;
}

.trust-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.9rem;
    /* semi-opaque blue */
    z-index: 3;
}

.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem 1rem;
    background: linear-gradient(115deg,
            /* Diagonal direction */
            white 0%,
            /* Start white */
            white 20%,
            #f5f5f5 40%,
            /* softer light gray */
            #e1f7fd 75%,
            /* lighter turquoise transition */
            #b6ecfb 100%
            /* Then blend to turquoise */
        );
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    overflow: hidden;
}


/* Sparkle stars (must be outside .hero-section in vanilla CSS) */
.star {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    clip-path: polygon(50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%);
    filter: drop-shadow(0 0 4px white);
    opacity: 0;
    animation: twinkle 2.5s ease-in-out infinite;
}

.sparkle-1 {
    top: 20%;
    left: 50%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 45%;
    left: 82%;
    animation-delay: 0.8s;
}

.sparkle-3 {
    top: 25%;
    left: 55%;
    animation-delay: 1.4s;
}
.sparkle-4 {
    top: 65%;
    left: 47%;
    animation-delay: 1.4s;
}

@keyframes twinkle {
    0%, 100% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

.hero-section>div {
    position: relative;
    z-index: 2;
}

.btn-brand-red {
    background-color: #E31717;
    color: #ffffff;
    font-weight: bold;
}

.btn-brand-red:hover {
    background-color: #c91010;
}

.warning-bar {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.5rem;
    font-size: 1rem;
    width: 100%;
}

#forPuzzle {
    width: 95vw;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #ffffff;
}

.polypiece {
    display: block;
    overflow: hidden;
    position: absolute;
}

.moving {
    transition-property: top, left;
    transition-duration: 1s;
    transition-timing-function: linear;
}

.gameCanvas {
    display: none;
    overflow: hidden;
    position: absolute;

}

.puzzle-section {
    min-height: 100vh;
    /* Full screen height */
    width: 100%;
 background: linear-gradient(115deg,
            /* Diagonal direction */
            white 0%,
            /* Start white */
            white 20%,
            #f5f5f5 40%,
            /* softer light gray */
            #e1f7fd 75%,
            /* lighter turquoise transition */
            #b6ecfb 100%
            /* Then blend to turquoise */
        );
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    overflow: hidden;
}

.look-header {
    background-color: white;
    color: #e1251b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    width: 100%;
    border-bottom: 1px solid #ccc;
}

.raffle-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
    text-align: center;
    /* key line */
}

.raffle-heading .subheading {
    font-size: 1.4rem;
    color: #e1251b;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}