﻿@font-face {
    font-family: "Fredoka";
    src: url("../Fonts/Fredoka/Fredoka_SemiCondensed-Regular.ttf");
    font-display: swap;
}

#body {
    background: url(../Images/System/Mystical-Forest-BG.webp) center/cover no-repeat fixed;
    position: relative;
    overflow-x: hidden;
    min-height: 2400px;
}

    #body::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.22); /* שכבת כהות עדינה לשיפור ניגודיות */
        pointer-events: none;
    }

.pageBody {

}

*, /*  scroll sizing - מונע הפתעות עקב אלמנטים שגולשים מרוחב הדף */
*::before,
*::after {
    box-sizing: border-box;
}

/* leaving window */

#divLeavingArea {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    z-index: 1;
}

#leavingWindow {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 500px;
    height: 250px;
    z-index: 1; /* on top other elements */
    border: 4px double #7c224d;
    background-color: lightblue;
    color: #7c224d;
    font-size: 22px;
    font-family: "Fredoka";
}

#spnLeavingWindow {
}

#btnLeavingWindow {
    border: 4px double #7c224d;
    background-color: lightblue;
    color: #7c224d;
    font-size: 22px;
    font-family: "Fredoka";
}


/*  Header Elements */

#header {
    /*background-image: url(../Images/System/PurpleHeader.webp);
    background-repeat: no-repeat;
    background-size: 100%;*/
    width: 1800px;
    height: 240px;
    position: absolute;
    top: 5px;
    left: 25px;
    display: inline-block;
    z-index:10;
}

.headerTableSide {
    /*background-color: yellow;*/
}

#headerTableCenter-Right {
    /*background-color: orange;*/
}

#headerTableCenter-Left {
    /*background-color: orange;*/
}

#imgGamesHouseBanner {
    width: 300px;
    height: 100px;
    display:inline-block;
}

#imgLogo {
    width: 180px;
    height: 160px;
    display: inline-block;
}

#gameHeadline {
    color: gold;
    font-family: "Fredoka";
    font-size: 42px;
    line-height: 44px;
    letter-spacing: .25px;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 12px rgba(255,210,120,.18);
}

#gameSubHeadline {
    color: #e7ddff;
    font-family: "Fredoka";
    font-size: 28px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: .2px;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 12px rgba(190,150,255,.22);
}

#lnkHeaderLine {
    color: #a7f4ff;
    font-family: "Fredoka";
    font-size: 21px;
    line-height: 22px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(167,244,255,.85);
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 12px rgba(120,255,255,.22);
}

    #lnkHeaderLine:hover, .cat-anchors:hover {
    filter: brightness(1.18);
    text-decoration-thickness: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 18px rgba(120,255,255,.35);
}


/* The Page after the header */

#section1SideCommercial {
    position: absolute;
    top: 260px;
    left: 1520px;
    width: 300px;
    min-width: 300px;
    height: 990px;
    min-height: 990px;
    overflow: hidden;
    display: inline-block;
}

/* the menus bar and the game zone */
#divGameSection {
    display: inline-block; /* solved cls issue */
    z-index: 90;
    position: absolute;
    top: 260px;
    left: 420px;
    width: 1000px;
    height: 990px;
    overflow: hidden;
}

#loadingTimeCommercial {
    z-index: 99;
    position: absolute;
    top: 261px;
    left: 421px;
    width: 1000px;
    height: 800px;
    overflow: hidden;
    background-color: azure;
    color: darkslateblue;
    font-family: "Fredoka";
    font-size: 30px;
    display: inline-block;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(6px);
    border-radius: 14px;
}

#btnLoadingTimeCommercial {
    color: white;
    background: linear-gradient(135deg, #3e6be0, #8a2be2);
    font-family: "Fredoka";
    font-size: 30px;
    width: 220px;
    height: 90px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
    cursor: pointer;
    transition: all .25s ease;
}

    #btnLoadingTimeCommercial:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0,0,0,.6);
    }

#ctrlMenuBarGames {
    position: absolute;
    top: 260px;
    left: 420px;
    width: 1000px;
    min-width: 1000px;
    height: 120px;
    min-height: 120px;
    display: inline-block;
}

#spnBelowGame {
    color: rgba(240,250,255,.95);
    font-size: 19px;
    line-height: 22px;
    font-family: "Fredoka";
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 10px rgba(180,220,255,.18);
}

#divGame {
    border: 4px double #7c224d;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    /*border: 4px double #7c224d;*/
    color: lightblue;
    font-size: 22px;
    font-family: "Fredoka";
    display: inline-block;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0,0,0,.85);
}

#gameIFrame, #gameEmbed
{
    overflow: hidden;
}

.upperCommercialDiv {
    /*    position: absolute;*/
    /*    top: 250px;
    height: 300px;*/
    /*    left: 1000px;*/
    /*background-color: wheat;*/
}

.lowerCommercialDivs {
    height: 300px;
    display:inline-block;
    min-height:300px;
    /*background-color: wheat;*/
}

lowerAnimations{
    float:right;
}

#sideInfoBar {
    /*background-color: lightgoldenrodyellow;*/
}

#divOtherGamesPanel {
    position: absolute;
    top: 260px;
    left: 20px;
    width: 400px;
    height: 860px;
    display: inline-block;
}

#divLowerParts {
    position: relative;
    top: 1100px;
    left: 20px;
    display: inline-block;
    padding-top: 25px;
    width:700px;
}

#divLowerParts2 {
    position: absolute;
    top: 1850px;
    left: 20px;
    display: inline-block;
    padding-top: 25px;
    z-index: 10;
    width:100%;
}

#about {
    background-image: url(../Images/System/PurpleHeader.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 730px;
    font-family: "Fredoka";
    display: inline-block;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.ratingStars {
    width: 22px;
    height: 22px;
    cursor: pointer;
    background-repeat: no-repeat;
    display: block;
}

.savedRatingStar {
    background-image: url('../Images/System/Saved-Star.jpg');
    width: 24px;
    height: 24px;
}

.filledRatingStar {
    background-image: url('../Images/System/Filled-Star.png');
    width: 24px;
    height: 24px;
}

.emptyRatingStar {
    background-image: url('../Images/System/Empty-Star.png');
    width: 24px;
    height: 24px;
}

.literals {
    color: #ffd48a;
    font-size: 23px;
    line-height: 28px;
    font-weight: 700;
    font-family: "Fredoka";
    letter-spacing: .15px;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 12px rgba(255,210,120,.16);
}

.labels {
    color: #c9fff3;
    font-size: 21px;
    line-height: 28px;
    font-weight: 600;
    font-family: "Fredoka";
    letter-spacing: .1px;
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 12px rgba(120,255,230,.14);
}

.cat-anchors {
    color: #a7f4ff;
    font-size: 23px;
    font-weight: 700;
    font-family: "Fredoka";
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(167,244,255,.85);
    text-shadow: 0 2px 10px rgba(0,0,0,.95), 0 0 12px rgba(120,255,255,.22);
}


/* =========================================================
   Minimal magical polish (requested)
   - Subtle shimmer for game headline
   - Visible soft glow for sub-headline
   - Pearly-gold literals (less orange)
   - Rating stars sparkle more on hover
   ========================================================= */

/* 1) Shimmer headline (with safe fallback) */
@supports (-webkit-background-clip: text) {
    #gameHeadline {
        background-image: linear-gradient(
            90deg,
            #ffe7a6,
            #fff6d8,
            #ffd48a,
            #fff6d8,
            #ffe7a6
        );
        background-size: 260% 100%;
        -webkit-background-clip: text;
        background-clip: text;

        /* keep your existing size/spacing, only swap color rendering */
        color: transparent;
        -webkit-text-fill-color: transparent;

        animation: ghHeadlineShimmer 7.5s ease-in-out infinite;
    }
}

@keyframes ghHeadlineShimmer {
    0%   { background-position: 0% 50%;   filter: saturate(1.00); }
    50%  { background-position: 100% 50%; filter: saturate(1.06); }
    100% { background-position: 0% 50%;   filter: saturate(1.00); }
}

/* 2) Sub-headline: a visible, calm “breathing” glow */
#gameSubHeadline {
    animation: ghSubGlow 5.8s ease-in-out infinite;
}

@keyframes ghSubGlow {
    0% {
        text-shadow:
            0 2px 10px rgba(0,0,0,.95),
            0 0 12px rgba(190,150,255,.22);
        filter: brightness(1.00);
    }
    50% {
        text-shadow:
            0 2px 12px rgba(0,0,0,.96),
            0 0 20px rgba(200,170,255,.35);
        filter: brightness(1.06);
    }
    100% {
        text-shadow:
            0 2px 10px rgba(0,0,0,.95),
            0 0 12px rgba(190,150,255,.22);
        filter: brightness(1.00);
    }
}

/* 3) Pearly-gold values (less orange, still warm) */
.literals {
    color: #fff2d9 !important; /* pearly gold */
    text-shadow:
        0 2px 10px rgba(0,0,0,.95),
        0 0 14px rgba(255,230,170,.22) !important;
}

/* 4) Rating stars: sparkle more on hover (no JS, lightweight) */
.ratingStars {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.65));
}

.ratingStars:hover {
    animation: ghStarTwinkle 1.05s ease-in-out infinite;
    filter:
        drop-shadow(0 2px 6px rgba(0,0,0,.78))
        drop-shadow(0 0 12px rgba(255,230,170,.35))
        drop-shadow(0 0 18px rgba(167,244,255,.18));
}

@keyframes ghStarTwinkle {
    0%   { transform: scale(1.00); filter: brightness(1.00); }
    35%  { transform: scale(1.07); filter: brightness(1.18); }
    70%  { transform: scale(1.03); filter: brightness(1.06); }
    100% { transform: scale(1.00); filter: brightness(1.00); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    #gameHeadline,
    #gameSubHeadline,
    .ratingStars:hover {
        animation: none !important;
    }
}

/* =========================================================
   Balloon float animation (subtle, visible)
   Notes:
   - Does NOT require runat="server"
   - Targets ids balloon01..balloon09 (as in your Game.aspx)
   ========================================================= */

#balloon01, #balloon02, #balloon03, #balloon04, #balloon05,
#balloon06, #balloon07, #balloon08, #balloon09 {
    display: inline-block;
    position: relative;
    z-index: 2;
    transform-origin: 50% 100%;
    will-change: transform;
    animation-name: ghBalloonFloat;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

/* Stagger: different speed + phase so they don't move together */
#balloon01 {
    animation-duration: 6.0s;
    animation-delay: .10s;
}

#balloon02 {
    animation-duration: 7.1s;
    animation-delay: .65s;
}

#balloon03 {
    animation-duration: 6.6s;
    animation-delay: .30s;
}

#balloon04 {
    animation-duration: 7.6s;
    animation-delay: .95s;
}

#balloon05 {
    animation-duration: 6.3s;
    animation-delay: .22s;
}

#balloon06 {
    animation-duration: 7.2s;
    animation-delay: .72s;
}

#balloon07 {
    animation-duration: 6.8s;
    animation-delay: .40s;
}

#balloon08 {
    animation-duration: 7.8s;
    animation-delay: 1.05s;
}

#balloon09 {
    animation-duration: 6.9s;
    animation-delay: .52s;
}

@keyframes ghBalloonFloat {
    0% {
        transform: translate(0px, 0px) rotate(0deg) scale(1.00);
    }

    25% {
        transform: translate(2px, -6px) rotate(0.6deg) scale(1.01);
    }

    50% {
        transform: translate(0px, -14px) rotate(1.2deg) scale(1.02);
    }

    75% {
        transform: translate(-2px, -7px) rotate(0.6deg) scale(1.01);
    }

    100% {
        transform: translate(0px, 0px) rotate(0deg) scale(1.00);
    }
}

@media (prefers-reduced-motion: reduce) {
    #balloon01, #balloon02, #balloon03, #balloon04, #balloon05,
    #balloon06, #balloon07, #balloon08, #balloon09 {
        animation: none !important;
    }
}