/* border-box */
/* *,
*::before,
*::after {
  box-sizing: border-box;
} */

/* Helps with child positioning if needed */
/* .parent-div {
  background-image: url('white-image.png');
  background-size: cover;
  filter: invert(100%);
  position: relative; 
} */

/* Re-invert children to appear normal */
/* .parent-div > * {
  filter: invert(100%); 
} */


@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');



/* Import fonts */
@font-face {
  font-family: 'customFont_1';   /* give font name */
  src: url('./fonts/PlaypenSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'customFont_2';   
  src: url('./fonts/Boogaloo-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'customFont_3';   
  src: url('./fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'customFont_4';   
  src: url('./fonts/RobotoMono-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* create variables */
:root {
    --bg-color: #fcfcfc;
    --primary-color: #0A4FA3;           
    --secondary-color: #4A7EBB;         
    --asset-color: #fdb913;             
    --highlight-color: #349df3;         
    --black-font-color: #1a1a1a;
    --border-color: #3d3d3d;
}


/* body {
    margin: 0;
    padding: 0;
} */

/* Common Styling classes */
.imgContain {
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;   
    background-position: center;
}

.imgCover {
    background-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;   
    background-position: center;
}

.flexColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flexRow {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* -------------- Main Styling -------------- */


.game-wrapper {
    /* default styling */
    all: initial;
    margin: 0;
    padding: 0;
    font-family: 'customFont_1', Arial, Helvetica, sans-serif;
    font-size: 16px;
    box-sizing: border-box;

    /* Container styling */
    /* position: relative; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: whitesmoke;
    background-size: contain;
    background-repeat: repeat;
    background-position: center;
    width: 100%;
    height: 85vh;
    overflow: hidden;
    /* filter: invert(100%); */
    /* background-image: url(/imgs/bgim/white-line-background-12.1.png); */
    animation: bgScroll 60s linear infinite; 
}

/* .game-wrapper button,
.game-wrapper input,
.game-wrapper textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
} */

.game-wrapper button {
  cursor: pointer;
  border: none;             
    padding: 0;               
    margin: 0;
}

.game-wrapper button:active {
    transform: scale(.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.game-wrapper h1, .game-wrapper h2, .game-wrapper h3, 
.game-wrapper h4, .game-wrapper h5, .game-wrapper h6 {
    margin: 0;
    padding: 0;
}

@keyframes bgScroll {
  from {
    background-position: 0 -100%;
  }
  to {
    background-position: 0 0;  /* move image up */
  }
}



.main-game-container {
    height: 90%;
    aspect-ratio: 9/16;
    max-width: 95%;
    position: relative;
    display: flex;
    /* display: none; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 1%;  */
    user-select: none;
    z-index: 0;
    overflow: hidden;
   /* box-sizing: border-box; */
}

/* level select box */
.level-selector-container {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    width: 80%; height: 60%;
    text-align: center;
    border: 3px solid var(--secondary-color);
    z-index: 3;
    overflow: hidden;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
    /* padding-top: 0.4em; padding-bottom: 0.3em; */
}

.level-select-title {
    flex: 0 0 auto;
    font-size: 1.5em;
    /* font color */ 
    color: var(--black-font-color);
    background-color: var(--secondary-color);
    width: 100%;
        padding: 1% 0;
        border-bottom: 3px solid var(--secondary-color);
}

.game-levels {
    width: 100%;
    height: 100%;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    gap: 2%;
    padding: 2%;
    min-height: 0;
    /* flex: 1; */
}

.game-lvl-cards {
    background-color: whitesmoke;
    border-radius: 50%;
    /* padding: 1%; */
    width:30%;
    flex: 0 0 30%;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--secondary-color);
    font-weight: bold;
    color: transparent;
    cursor: pointer;
}

.level-locked {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
}
.level-unlocked {
    opacity: 1;
    cursor: pointer;
    filter: none;
}
/* ----------------- */


.points-and-word-count {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 98%;
    height: 8%;
    font-size: 1.2em;
}

.points-display {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    height: 100%;
    gap: 2px;
    text-align: center;
    padding-left: 2px;
    /* background-color: var(--asset-color); */
}

.points-display span {
    margin-bottom: 1.5%;
}

#attempts-icon {
    display: block;
    height: 55%;
    aspect-ratio: 2/1.91;
    /* background-image: url(/imgs/chances-icon.svg); */
}

#attempts-counter, #points-counter {
    /* font-size: 1.2em; */
    color: black;
    margin-left: 1%;
}

#points-icon {
    display: block;
    height: 60%;
    aspect-ratio: 1/1.025;
    margin-left: 8%;
    /* background-image: url(/imgs/total-points-icon.svg); */
}

#add-points {
    display: block;
    height: 30%;
    aspect-ratio: 1/1;
    margin-left: 1%;
    /* background-image: url(/imgs/add-points-icon.svg); */
}

#add-chances:active,
#add-points:active {
    transform: scale(.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2)
}

#add-chances:hover,
#add-points:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2)
}


.words-learnt-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    right: 0;
    top: 0;
    /* font-size: 1.2em; */
    letter-spacing: 1px;
    height: 100%;
    padding-right: 2px;
    /* background-color: var(--secondary-color); */
}

.words-learnt-indicator span {
    margin-bottom: 1.5%;
}

#wl-indicator-icon {
    display: block;
    height: 55%;
    aspect-ratio: 1 / 0.66;
    /* background-image: url(/imgs/words-learnt-icon-2.svg); */
}

#info-tooltip {
    display: block;
    height: 40%;
    aspect-ratio: 1/1;
    margin-left: 0.5%;
    /* background-image: url(/imgs/word-learnt-tooltip.svg); */
}

#tooltip-box {
    /* display: block; */
    display: none;
    position: absolute;
    right: 0;
    top: 7.0%;
    width: 65%;
    aspect-ratio: 6/1;
    background-color: var(--black-font-color);
    color: white;
    /* font-weight: bold; */
    padding: 5px;
    border: 1px solid wheat;
    border-radius: 10px;
    font-size: 0.9em;
    z-index: 3;
}

/* Game welcome Screen */
.game-welcome-screen {
    position: absolute;
    display: flex;
    flex-direction: column;
    width: 95%;
    height: 92%;
    /* background-color: var(--asset-color); */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap:3%
   /*  border: 1px solid rgb(44, 44, 44); */
    /* z-index: 1; */
}

.game-title-board {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 65%;
    /* animation: flyDown 10s ease-out; */
}

#bee-on-board {
    display: block;
    width: 20%;
    aspect-ratio: 2.50/2.22;
    background-color: transparent;
    /* background-image: url(/imgs/flying-bee-welcome-1.svg); */
}


.game-title-image {
    display: block;
    width: 90%;
    aspect-ratio: 5.50/3.55;
    /* margin-bottom: 2%; */
    background-color: transparent;
    /* background-image: url(/imgs/game-title-board.svg); */
    /* animation: swing 6s infinite ease-in-out; */
    
}

#hangman-deco-block {
    display: block;
    height: 15%;
    min-height: 35px;
    aspect-ratio: 1/1;
    background-size: contain;
    background-position: 0% 0%;
    /* will-change: background-position; */
    overflow: hidden;
    /* animation: hangmanFrames 8s steps(8) infinite; */
}

/* @keyframes hangmanFrames {
  from { background-position: 0 0; }
  to   { background-position: -501px 0; }
} */

.game-welcome-screen button {
    display: block;
    border-radius: 25px;
    height: 6%;
    min-height: 35px;
    aspect-ratio: 3/1;
    outline: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background-color: transparent;
    font-weight: bold;
    font-family: customFont_3;
    font-size: 1.1em;
    z-index: 8;
}

/* fly down animation */
@keyframes flyDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}
/* swing animation */
@keyframes swing {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
    100% {
        transform: rotate(0deg);
    }
}



.game-welcome-screen button:hover {
    color: white;
    background-color: var(--primary-color);

    .game-title-image {
        transform: rotate(5deg);
    }
}


.hangman-game-container {
    display: flex;
    /* display: none; */
    /* visibility: hidden; */
    flex-direction: column;
    width: 100%; /* 100% */
    height: 92%; /* 92% */
    background-color: transparent; /* whitesmoke */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    /* z-index: 1; */
}

#gameloading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: whitesmoke;
    z-index: 3;
    text-align: center;
    
}

#site-name {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: 1px;
    font-size: 0.85em;
    color: rgb(54, 54, 54);
    font-family: customFont_3, cursive, Arial, Helvetica, sans-serif;
    animation:  fadeInOut 2s ease-in-out infinite;
    text-align: center;
}

/* opacity animation for #site-name*/
@keyframes fadeInOut {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.dots-loader {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 3px;
}

.overlay-dots {
    width: 6px;
    height: 6px;
    background-color: rgb(94, 94, 94);
    border-radius: 50%;
    animation: dots-bounce 1.5s infinite ease-in-out;
}

#overlay-dot-1 {animation-delay: 0s;}

#overlay-dot-2 {animation-delay: 0.15s;}

#overlay-dot-3 {animation-delay: 0.3s}

@keyframes dots-bounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}   




/* Loading Container */
.game-loading-container {
    /* display: none; */
    display: flex;
    position: absolute;
    background-color: whitesmoke;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 85%;
    z-index: 2;
}

.game-loading-container h2 {
    width: 100%;
    text-align: center;
    font-family: customFont_3, Arial, Helvetica, sans-serif;
}

.loading-hint {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1em;
    margin-top: 5%;
}

.section-divider {
  width: 80%;
  border: none;
  border-top: 1px solid #3d3d3d; /* your border color */
  
}

.loading-word-empty, .loading-letters, .loading-bee-container {
    /* font-size: 1.3em; */
    gap: 5px;
    height: 15%;
    width: 80%;
    text-align: center;
    color: var(--border-color);
}



.loading-blanks {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 8px;
    aspect-ratio: 1/1 !important;
}

.loading-letters {
    margin-top: 5%;
    margin-bottom: 2px;
    align-items: flex-end;
}

.loading-bee-container {
    align-items: flex-start;
}

.loading-letter-btns {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    background-color: var(--black-font-color);
    border-radius: 50px;
    /* padding: 1%; */
    /* height:100%; */
    aspect-ratio: 1/1 !important;
    border: none;
    font-weight: bold;
    color: transparent;

   
}

.loading-bee-box {
    /* height:100%; */
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1 !important;
    /* border: 1px solid black; */
}



#loading-icon {
  display: inline-block;
  animation: spinPause 3s linear infinite;
  font-size: 1.2em;
}

#loading-dots {
    color: transparent;
    transition: color 0.2s;
    /* color: rgba(0, 128, 0, 0.507); */
}

#loading-continue-btn {
    display: none;
    aspect-ratio: 3/1;
    padding: 5px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9em;
    background-color: transparent;
    /* border: 3px solid white; */
    border-radius: 30px;
    /* animation: pulseGlow 1.8s infinite ease-in-out; */
    box-shadow:   0 4px 8px rgba(0, 0, 0, 0.2);
    /* box-shadow: 
    -4px 0 6px rgba(0, 0, 0, 0.15), 
     4px 0 6px rgba(0, 0, 0, 0.15); */ 
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        /* box-shadow: 0 0 0 rgba(253, 185, 19, 0); */
    }
    50% {
        transform: scale(1.05);
        /* box-shadow: 0 0 18px rgba(253, 185, 19, 0.7); */
    }
    100% {
        transform: scale(1);
        /* box-shadow: 0 0 0 rgba(253, 185, 19, 0); */
    }
}

@keyframes spinPause {
  0%   { transform: rotate(0deg); }

  /* rotate happens quickly */
  40%  { transform: rotate(180deg); }

  /* then HOLD (pause) */
  100% { transform: rotate(180deg); }
}

.bounce-soft {
  animation: bounceSoft 0.6s ease-in-out /* infinite */;
}

@keyframes bounceSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px); /* small lift */
  }
}

/* End of Loading Container */



#show-points-earned {
    display: none;
    font-size: 2.6em;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(52, 157, 243);
    /* z-index: 3; */
}

.hangman-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35%;
    /* background-color: rgb(170, 238, 231); */
    position: relative;
}

.game-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 65%;
    background-color: transparent;
}

.hangman-aspect-box {
    display: block;
    position: relative;
    height: 95%;
    aspect-ratio: 1 / 1.005;
    max-width: 100%;
    /* background-color: rgb(206, 34, 169); */
}

#hangman-img {
    position: absolute; 
    inset: 0;
    will-change: background-image;
    object-fit: contain;
    width: 100%;   
    height: 100%; 
    object-position: center;
    display: block;
}

#hangman-rope-zone {
    position: absolute;
    top: 5%;     
    left: 56%;     
    width: 10%;     
    height: 13%;    
    pointer-events: none; 
    /* debug */
    /* background: rgb(241, 0, 112); */
}

#flybee-img-frame {
    display: block;
    height: 50%;
    width: 100%;
    top: 5%;
    position: absolute;
    background-size: 11%;
    background-position: right top;
    background-repeat: no-repeat;
    /* debug */
    /* background-color: rgba(238, 130, 238, 0.438); */
}

#feedback-ani-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
     /* debug */
    background-color: transparent;
    background-size: auto  100%;
    background-position: 0% 0%;
    will-change: background-position;
    overflow: hidden;
    /* background-image: url(./imgs/hangman-frames/level-won-sheet.svg); */
}


/* ------------ Game Box Elements Styling --------- */
.blank-word-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.4em; /*   / 2.1em until 13-14 / 1.8em until 15-16 / 1.6em until 17-18 / 1.4em until 19-20 / 1.3em until 19-20  1.1=20*/
    width: 100%;
    height: 18%;
    font-family: customFont_4, monospace, Arial, Helvetica, sans-serif;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    white-space: pre-wrap;
    gap: 3px;
}

/* .blank-word-display span {
    margin-right: 3px;
} */

.word-hint-display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 97%;
    height: 30%;
    text-align: center;
    font-size: 1em;
    font-weight: normal;
    border: none;
    background-color: transparent;
    /* overflow: hidden; */
    /* font-family: customFont_3; */
    margin-top: 6%;
    border: 2px solid var(--border-color);
    /* border-top: none; */
    border-radius: 8px;
}

#defi-title{ font-weight: bold;}

.hint-title-and-expand-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 25%;
    text-align: center;
    font-size: 1.05em;
    font-weight: normal;
    border: none;
}

#hint-box-title {
    color: var(--black-font-color);
    font-weight: normal;
    /* height: 100%; */
    background-color: transparent;
    padding-right: 4px; padding-left: 4px;
    text-align: center;
    /* font-size: 2.4em; */
}


#expand-hint-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
    aspect-ratio: 1.3/1;
    border: none;
    border-left: 2px solid var(--border-color);
    /* border-top-right-radius: 8px;
    border-top-left-radius: 8px; */
    background-color: transparent;
    background-size: 55%;
    background-repeat: no-repeat;
    background-position: center;
    /* background-image: url('/imgs/expand-img-icon-1.png'); */
    /* animation: pulse-effect 2s infinite ease-in-out;  */ 
    /* cursor: pointer; */
    cursor: default;
    overflow: hidden;
}

#expand-hint-box:active {
    transform: scale(0.99);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    opacity: 1;
}

#expand-hint-box:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    opacity: .9
}

@keyframes pulse-effect {
    0% {
        transform: scale(.95)
    }

    50% {
        transform: scale(1)
    }

    100% {
        transform: scale(.95)
    }
}

.word-definition-and-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* lil bigger -- looks okay */
    height: 75%;
    border-top: 2px solid var(--border-color);
    /* border-radius: 8px;
    border-top-right-radius: 0px;
    border-top-left-radius: 0px; */
}

#word-clue-img {
    display: flex;
    height: 100%;
    aspect-ratio: 3/2;
    border-right: 2px solid var(--border-color);
    /* overflow: hidden; */
    /* background-image: url(/imgs/hangman-pics-to-guess/guess-img-0.webp); */
    image-rendering: high-quality;
    
}

.definition-text {
    width: 100%;
    /* min-width: 70%; */
    color: var(--black-font-color);
    font-size: 1.2em;
    background-color: transparent;
    padding-right: 2px; padding-left: 2px;
    border: none;
    text-align: center;
    font-weight: normal;
    text-wrap: wrap;
}

/* QWERTY Keypad */
.game-keypad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: var(--primary-color);
    
    width: 95%;
    height: 35%;
    margin-top: 6%;
    border-radius: 8px;
    position: relative;
    transition: opacity 0.3s ease;
}

.keypad-rows {
    /* position: relative; */
    display: flex;
    /* flex: 1; */
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 30%;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.2em;
    /* gap: 1.5%; */
}

.keypad-keys {
    display: block;
    position: relative;
    text-align: center;
    aspect-ratio: 1/1 !important;
    color: var(--primary-color);  /* var(--primary-color) */
    border: 2px solid #ccc;
    /* border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,.2); */
    background-color: transparent ;  /* #fefefe transparent */
    /* transition: all .2s ease; */
    border: none;             
    padding: 0;               
    margin: 0;
    font: inherit;            
    /* font-weight: normal; */
    /*text-transform: inherit;   */
    cursor: pointer;
   /*  outline: none;
    -webkit-tap-highlight-color: transparent; */
}

/* .keypad-keys:hover {
    border: 1px solid rgb(255, 255, 255); 
    border-radius: 50px;
    transform: rotate(3deg);
} */

.keypad-keys:disabled {
    pointer-events: none;
    /* cursor: default; */
    opacity: 0.3;
}

#keypad-row-2 {
    width: 92%;
}

#keypad-row-3 {
    width: 73%;
}

/* QWERTY  themes */
/* .light-theme {
    background-color: #fefefe;
    color: var(--primary-color);
}
.blue-theme {
    background-color: #1a5bb0;
    color: white;
}
.dark-theme {
    background-color: var(--border-color);
    color: white;
}
.yellow-theme {
    background-color: var(--asset-color);
    color: var(--black-font-color);
} */


.play-again-message {
    display: flex;
    /* display: none; */
    visibility: hidden;
    pointer-events: none;
    gap: 0px;
    width: 98%;
    height: 100%;
    border-radius: 8px;
    position: absolute;
    font-size: 1.1em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    
    color: var(--primary-color);
    text-align: center;
}

#refresh-or-nextLvl-text {
    width: 100%;
    
}


#refresh-or-nextLvl-btn {
    display: block;
    border: none;
    width: 15%;
    aspect-ratio: 1/1;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#refresh-or-nextLvl-btn:hover {
    filter: contrast(1.4);
    box-shadow: none;
}



/* Old setup *deprecated* */
.game-keypad-row {
    width: 95%;
    gap: 1.2%;
    margin-bottom: 1.2%;
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    /* visibility: hidden; */
}




.game-keypad-row button {
    width: 8%;
    aspect-ratio: 1.1/1;
    /* height: 2.4em; */
    border-radius: 0.3em;
    border: none;
    outline: none;
    background-color: rgba(255, 255, 255);
    background-color: transparent;
    text-transform: uppercase;
    /* border: 1px solid #ccc; */
    /* cursor: pointer; */
    color: #002b59;
    /* font-weight: bold; */
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    font-family: customFont_1;

    /* added later */
    display: block;
    /* flex: 1; */
    position: relative;
}

.game-keypad-row button span {
    display: none;
    /* font-size: 1.2em;
    font-weight: bold; */
    position: absolute;
    bottom: 50%;
    right: 25%;
    transform: translate(-50%, -50%);
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Android Emoji', EmojiSymbols, sans-serif;
}

.game-keypad-row button[disabled] {
    pointer-events: none;
    opacity: 0.6;
}

:where(.game-keypad-row) button:hover {
    /* background: #575757;
    color: #ffffff; */
    border: 1px solid #002b59b7; 
    /* rotate */
    transform: rotate(5deg) scale(1.10);
}


@keyframes floatUp {
    0% {
        transform: translateY(0)
    }

    100% {
        transform: translateY(-40px)
    }
}

.floating-emoji {
    animation: floatUp 1s; 
}

.emoji-reaction {
    display: block;
    position: absolute;
    bottom: 50%;
    right: 25%;
    transform: translateX(-50%, -50%);
    pointer-events: none;
    /* font-size: 1.4em; */
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 
    'Noto Color Emoji', 'Android Emoji', EmojiSymbols, sans-serif;
}



/* styling for "word hint box EXPANDED view" */
.word-hint-box-expand-view {
    /* display: none; */
    /* visibility: hidden; */
    position: absolute;
    justify-content: flex-start;
    top: 50%;
    left: 50%;
    /* transform: translate(-50%, -50%); */
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    /* height: 70%; */
    width: 90%;
    aspect-ratio: 1/1.3;
    overflow: hidden;
    border: 2px solid var(--border-color);
    flex-wrap: nowrap;
    /* padding-bottom: 6%; */
}

.hint-box-title-ev {
    justify-content: space-between;
    height: 8%;
    width: 100%;
    background-color: transparent;
    color: var(--black-font-color);
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    font-size: 1.2em;
    text-wrap: nowrap;
    padding-left: 2px;
}

/* #hbtv-span {
    font-size: 2em;
} */

#close-notifier-ev {
    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
    height: 100%;
    aspect-ratio: 1/1;
    border: none;
    font-weight: bolder;
    font-size: 0.85em;
    text-align: center;
    font-family: customFont_4; 
    /* cursor: pointer; */
    /* border-left: 2px solid var(--border-color); */
}

#word-clue-img-ev {
    display: flex;
    /* width: 100% */;
    height: 52%;
    aspect-ratio: 3/2;
    min-width: 100%;
    border-bottom: 2px solid var(--border-color);
    /* background-image: url(/imgs/hangman-pics-to-guess/guess-img-0.webp); */
}



.definition-text-ev {
    /* display: flex; */
    height: 22%;
    /* margin-top: 1%; */
    font-size: 1.1em;
    text-align: center;
    /* padding: 5px; */
    font-family: customFont_3, Arial, Helvetica, sans-serif;
}

.synonym-antonym-ev {
    text-align: center;
    height: 14%;
    width: 85%;
    border-radius: 8px;
    border: 1px solid black;
    /* margin-top: 3%; */
    /* padding: 3px; */
    overflow: hidden;
    background-color: transparent;
    text-transform: capitalize;
    
}

.synonym-antonym-text {
    border-right: 1px solid black;
    width: 50%;
    font-size: 1.1em;
}
#antonym-div {
    border: none;
}


/* How to Play Tutorial Dialogue */

.how-to-play-tutorial-dialogue {
    visibility: hidden;
    justify-content: space-between;
    width: 75%;
    height: 8%;
    position: absolute;
    top: 103%;
    left: 0%;
    background-color: rgb(255, 255, 255);
    color: var(--black-font-color);
    font-size: 1em;
    /* font-weight: 600; */
    text-align: center;
    font-family: customFont_1;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    border-top-left-radius: 0;
    gap: 1.5%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

#element-pointer {
    display: block;
    height: 80%;
    aspect-ratio: 1/1;
    /* background-image: url(/imgs/bee-pointer-up.svg); */
}

.htp-info {
    justify-content: space-around;
    height: 100%;
    width: 100%;
    padding: 2px;
    text-align: center;
    text-transform: none;
    font-size: 1em !important;
}

#how-to-play-info-text {
    padding-left: 2px;
    font-weight: normal;
    font-size: 1em !important;
    width: 100%;
    /* text-wrap: wrap; */
    /* height: 100%; */
}

#htp-img-icon {
    display: block;
    height: 75%;
    aspect-ratio: 1/1;
    /* background-image: url(/imgs/total-points-icon.svg); */
}





.how-to-play-toggle {
    display: flex;
    /* visibility: hidden; */
    /* height: 5%; */
    width: 25%;
    aspect-ratio: 3/1;
    bottom: 0%;
    left: 1%;
    /* transform: translate(-50%, 50%); */
    position: absolute;
    justify-content: space-evenly;
    align-items: center;
    font-weight: bold;
    text-align: center;
    border: 2px solid var(--border-color);
}

#htp-title {
    position: absolute;
    /* font-weight: normal; */
    color: var(--primary-color);
    width: 100%;
    left: 50%;
    top: -2px;
    transform: translate(-50%, -100%);
    text-wrap: wrap;
    font-size: 1.2em;
    background-color: white;
    border: 2px solid var(--border-color);
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#how-to-play-close-dialogue,
#how-to-play-next-element {
    width: 50%;
    height: 100%;
    border: none;
    background-color: #1f1f1f;
    color: white;
    font-size: 1.3em;
    font-weight: bold;
}

#how-to-play-close-dialogue {
    background-color: #e02e2b; /* #f32323 */}



.arrow-sign {
    opacity: 0;
    animation: arrow-pulse 1.2s infinite
}

.arrow-sign:nth-child(1) {
    animation-delay: 0s
}

.arrow-sign:nth-child(2) {
    animation-delay: .4s
}

.arrow-sign:nth-child(3) {
    animation-delay: .6s
}

@keyframes arrow-pulse {

    0%,
    100% {
        opacity: 0;
        transform: translateX(0)
    }

    50% {
        opacity: 1;
        transform: translateX(3px)
    }
}







.wordNum {
    font-weight: bold;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px black;
}


#letter-hint {
    display: block;
    position: absolute;
    border: none;
    bottom: 0;
    right: 0;
    width: 12%;
    aspect-ratio: 1/1;
    /* filter: invert(100%); */
    /* background-image: url(/imgs/hm-hint-icon.webp); */
    cursor: pointer;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    
    /* background: transparent; */
    /* outline: none;
    appearance: none; */
}

#letter-hint:focus,
#letter-hint:active,
#letter-hint:focus-visible {
  outline: none;
  box-shadow: none;
  border: none;
}

#letter-hint:hover {
    filter: contrast(1.4);
    box-shadow: none;
}



#show-minus-points {
    display: none;
    font-size: 1.2em;
    font-weight: bold;
    position: absolute;
    bottom: 3%;
    right: 1%;
    transform: translate(-50%, -50%);
    color: black;
    z-index: 2;
}

@keyframes floatUpFade {
    0% {
        opacity: 1;
        transform: translateY(0)
    }

    100% {
        opacity: 0;
        transform: translateY(-80px)
    }
}

.floating-minus {
    animation: floatUpFade 2s ease-out forwards
}

.get-points-dialogue {
    display: flex;
    display: none;
    align-items: center;
    justify-content: left;
    padding: 10px;
    font-weight: 700;
    font-size: .9em;
    color: #2b2b2b;
    position: absolute;
    top: 1%;
    left: 25%;
    background-color: wheat;
    border-radius: 10px;
    height: auto;
    width: auto;
}

@keyframes floatUpFade {
    0% {
        opacity: 1;
        transform: translateY(0)
    }

    100% {
        opacity: 0;
        transform: translateY(-80px)
    }
}

.floating-minus {
    animation: floatUpFade 2s ease-out forwards
}

.attempts-remaining {
    top: 1%;
    left: 1%;
    gap: 3px;
    height: 5%;
    display: flex;
    align-items: center;
    justify-content: left;
    font-weight: normal;
    position: absolute;
    font-size: 1em;
    /* font-family: customFont_1; */
}

/* #ele-spacer {width: 10px;} */













.flybee-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-color: transparent;
}



#crow-img {
    position: absolute;
    display: none;
    right: 10%;
    top: 28%;
    width: 16%;
    aspect-ratio: 1/0.922;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

/* create bee moving forward animation */
@keyframes moveBee {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}





/* .hangman-box h1 {
    font-size: 1.45em;
    text-align: center;
    margin-top: 20%;
    text-transform: uppercase;
    font-family: 'customFont_2', Arial, Helvetica, sans-serif;
} */



.game-box .word-display {
    width: 86%;
    height: 7%;
    gap: 1.5%;
    list-style: none;
    display: flex;
    /* flex-wrap: wrap; */
    justify-content: center;
    align-items: center;
    margin-bottom: 10%;
    margin-left: 0;
    padding: 0;  
    box-sizing: border-box;
    /* border: 1px solid #2c2c2c; */
}

.word-display .letter {
    width: 5%;
    font-size: 2em;
    text-align: center;
    font-weight: 600;
    margin-bottom: 4%;
    text-transform: uppercase;
    border-bottom: 3px solid #000;
}

.word-display .letter.guessed {
    margin: -8% 0 1%;
    border-color: transparent;
    font-family: customFont_3, Arial, Helvetica, sans-serif;
}













/* GAME BOX */
.game-box h4 {
    text-align: center;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 2%;
}

.game-box h4 b {
    font-weight: 600;
}

.game-box .guesses-text b {
    color: #ff0000;
    font-size: 0.8em;
}



.level-succees-animation {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 108%;
    aspect-ratio: 14.72/2.50;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    /* flip element horizontally */
    /* transform: scaleX(-1); */
}













/* BONUS WORD INFO */
.bonus-word-box {
    font-family: customFont_1, Arial, Helvetica, sans-serif;
    /* display: flex; */
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    align-items: center;
    /* width: 60%; */
    height: 90%;
    max-width: 90%;
    aspect-ratio: 3/4;
    background-color: whitesmoke; /* #a5c8fd */
    color: #111111;
    transition: bottom .3s ease-in-out;
    border: 2px solid #3d3d3d;
    border-radius: 15px;
}


/* BONUS WORD */
  .bonus-word-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90%;
    background-color: #139ffd00;
    background-color: transparent;
    text-align: center;
    /* padding: 1%; */
    /* border-top: 2px solid #3d3d3d;
    border-bottom: 2px solid #3d3d3d; */
  }

  .bwc-title-box, .bwc-subtitle-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 88%;
    height: 10%;
    gap: 2px;
    border-bottom: 2px solid #3d3d3d;
  }

  .bwc-subtitle-box { 
    border-bottom: none;
    margin-bottom: 6%;
  }

    .challenge-icon {
    display: block;
    height: 60%;
    aspect-ratio: 1 / 1;
    border: 1px solid #ffffff;
    background-color: #000000;
    border-radius: 6px;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
  }

  #thinking-bee-img {
    display: block;
    height: 75%;
    aspect-ratio: 2 / 2;
    background-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .bwc-game-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 50%;
    gap: 2px;
    font-size: 1.05em;
  }

  #bwc-game-img{
    display: flex;
    /* height: 90%; */
    width: 85%;
    aspect-ratio: 3/2;
    border: 5px solid #ffffff;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }

  .guess-letter-grid {
    display: flex;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    height: 15%;
    gap: 1px;
    margin-top: 3%;
    /* border: 2px solid #2c2c2c; */
  }

  .bonus-grid-cells {
    flex: 1;
    max-width: 50px; 
    aspect-ratio: 1 / 1;
    border: 2px solid #3d3d3d;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 6px;
    text-transform: uppercase;
    color: #3030e7;
    }

  #close-bonus-word {
    display: block;
    border: 2px solid #3d3d3d;
    border-radius: 50%;
    padding: 3%;
    background-color: #3d3d3d;
    color: white;
    font-weight: bold;
    animation: pulse-effect 3s infinite ease-in-out;
  }



















/* Common CSS */
/* Level success screen */
.game-level-complete-container {
    /* display: none; */
    display: flex;
    /* visibility: hidden; */
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80%;
    aspect-ratio: 1/1.35; /* 1/1.5 */
    max-width: 88%;
    background-color: #ffffff;
    text-align: center;
    font-family: customFont_3, Arial, Helvetica, sans-serif;
    padding: 2%;
    overflow: hidden;   
    border-radius: 20px;
    border: 10px solid var(--secondary-color);  /* rgba(74, 127, 187, 0.65) */
}

.glc-inner-box {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: top;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    color: rgb(89, 89, 89);
}

.congratulatory-text-and-img {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    height: 30%;
    width: 100%;
    color: rgb(89, 89, 89);
    background-color: #f1afaf00;        
}

#bee-trophy-img {
    display: block;
    height: 95%;
    aspect-ratio: 4/3.47;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;         /* 4/3.47      star: 2/2.09 */
    transform: translate(-150%, 150%);
    animation: beeFlyIn 1.2s ease-out forwards;
    position: relative;
}

#star-blink, #star-blink-2 {
    display: block;
    height: 10%;
    aspect-ratio: 2/2.09;
    background-color: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: starBlink 1s infinite;
    position: absolute;
    top: 0;
    right: 4%;
    pointer-events: none;
}

#star-blink-2 {
    top: 3%;
    right: 15%;
}

/* starBlink animation */
@keyframes starBlink {
    0% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.2) rotate(20deg);
    }
    100% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
}

/* fly-in animation */
@keyframes beeFlyIn {
    0% {
        opacity: 0;
        transform: translate(-150%, 150%) scale(0.7) rotate(-20deg);
    }
    70% {
        opacity: 1;
        transform: translate(10%, -10%) scale(1.05) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
}

#level-success-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* height: 100%;
    width: 40%; */
    /* background-color: #ffffff; */
    font-family: customFont_2;
    font-size: 2.4em;
    text-wrap: wrap;
    color: black;
}

.progress-message-text {
    font-size: 1.4em;
    font-weight: bold;
    /* margin-top: 1%;
    margin-bottom: 1%; */
    font-family: customFont_1;
}

/* .progress-message-text span {
    
} */


/* Styling for Level Progress Bar */
.progress-shell {
  width:  100%;
  /* max-width: 1200px; */
  height: 20%;
  /* margin: 0.8em auto; */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 2%; */
  background: transparent;
  color: #111;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 1rem;
}

.progress-bar {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: space-between;
    width: 75%;
    height: 25%;
    background: #e3e3e3;
    border-radius: 0.8em;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 -0.12em 0 rgba(0,0,0,0.04);
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #0A4FA3, #349df3); /* #111111, #726b6b */
/* background: linear-gradient(319deg, #FFFF31, #f8de7e); */  
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 0.6em;
  box-sizing: border-box;
  transition: width 600ms cubic-bezier(.2,.9,.2,.99);
}

.progress-text {
    /* position: absolute;
    transform: translate(-50%, -50%); */
    color: #0f0e0e;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}

/* Confetti animation */
.confetti-burst-effect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 5%;
}

#confetti-left, #confetti-right {
    display: block;
    height: 100%;
    aspect-ratio: 1 / 1;
    /* background-color: #1c1d1c; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.confetti {
    position: absolute;
    width: 6%;
    /* min-width: 25px;
    max-width: 60px; */
    aspect-ratio: 1/1;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation: burst 1s ease-out infinite;
}

@keyframes burst-left {
    0%   { opacity: 1; transform: translateY(0) translateX(0) rotate(0); }
    100% {  opacity: 0.7; transform: translateY(-600px) translateX(200px) rotate(-720deg);}
}

@keyframes burst-right {
    0%   { opacity: 1; transform: translateY(0) translateX(0) rotate(0); }
    100% { opacity: 0.7; transform: translateY(-600px) translateX(-200px) rotate(720deg);}
}


.words-counter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-family: customFont_1;
    font-weight: bold;
    color: #111111;
    font-size: 1.4em;
    width: 100%;
    height: 15%;
}

#wc-divider-icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 4%;
    aspect-ratio: 1.71/9.87;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#continue-game {
    margin: 0 auto;
    margin-top: 6px;
    width: 40%;
    display: block;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1%;
    background-color: transparent;
    color:  var(--black-font-color);
    font-weight: bold;
    font-size: 1.2em;
    /* animation: pulse-effect 3s infinite ease-in-out; */
}


/* #reveal-wrapper {
    background-color: white;
    width: 100%;
    height: 100%;
    display: block;
    margin-top: 0;
} */



/* Reveal Words Accordion */
.reveal-word-list {
    display: none;
    position: absolute;
    justify-content: flex-start;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 45%;
    aspect-ratio: 3/3;
    max-width: 98%;
    background-color: var(--asset-color);
    border: 2px solid var(--border-color);
    box-shadow: 4px 0 50px 
    rgba(255, 255, 255, 1);
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    
      
}

.reveal-word-list h3 {
    margin: 0;
    padding-top: 3px;
}

.reveal-word-list h4 {
    margin: 0;
    padding: 0;
}

#rw-heading {
    flex: 0 0 auto;  
    padding: 5px 0;
    width: 100%;
    border-bottom: 2px solid var(--border-color);
}

.word-reveal-lv {
    flex: 1;     
    overflow-y: scroll;
    width: 100%;
    flex-wrap: wrap;
    scrollbar-width: thin;
    scrollbar-color: var(--asset-color) #fff;
}

.word-reveal-box {
    width: 100%;
}



.word-reveal-box h4 {
    font-size: 0em;
}

.reveal-word-wrapper {
    width: 100%;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 1);
    margin-top: 5px;
    padding-top: 4px; padding-bottom: 4px;
}
.rw-num {
    padding-left: 3px;
}
.rw-expand-icon {
    padding-right: 3px;
    /* font-weight: bold; */
    font-size: 1.2em;
}




/* falling obeject animation */
.snow-fall-animation {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
    cursor: none;
    justify-content: center;
    align-items: center
}

.snowfall {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: 0 0
}

.snowflake {
    /* --small: 3px;
    --medium: 20px;
    width: var(--medium);
    height: var(--medium);
    border: 2px solid #3d3d3d85;
    position: absolute;
    background-color: transparent;
    border-radius: 50%;
    animation: snow 75s linear infinite, wind 10s ease-in-out infinite;
    top: -10%;
    left: 10% */

    --medium: 25px;

    width: var(--medium);
    height: var(--medium);
    position: absolute;
    top: -10%;
    left: 10%; 
    /* animation: snow 15s linear infinite, wind 10s ease-in-out infinite, rotate360 20s linear infinite; */
}

.snowflake svg {
    width: 100%;
    height: 100%;
    display: block;
}

.snowflake svg * {
    fill: transparent;
    stroke: rgba(61, 61, 61, 0.522);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.snow-fall-animation.solid .snowflake svg * {
    fill: #3d3d3d85;
    stroke: none;
}

.snowflake:nth-child(2n+3) {
    width: var(--medium);
    height: var(--medium);
}

.snowflake:nth-child(1) {
    left: 25%;
    animation-delay: 1s;
    
}

.shape-square {
    fill: #a74811;
}

.snowflake:nth-child(2) {
    left: 85%;
    animation-delay: 1.5s
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-delay: 2s
}

.snowflake:nth-child(4) {
    left: 65%;
    animation-delay: 2.5s
}

.snowflake:nth-child(5) {
    left: 25%;
    animation-delay: 3s
}

.snowflake:nth-child(6) {
    left: 95%;
    animation-delay: 3.5s
}

.snowflake:nth-child(7) {
    left: 55%;
    animation-delay: 4s
}

.snowflake:nth-child(8) {
    left: 10%;
    animation-delay: 4.5s
}

.snowflake:nth-child(9) {
    left: 70%;
    animation-delay: 5s
}

.snowflake:nth-child(10) {
    left: 20%;
    animation-delay: 5.5s
}

@keyframes snow {
    100% {
        top: 100%
    }
}

/* transform: rotate(-5deg); */
@keyframes rotate360 {
    0% {
        transform: rotate(0deg)
    }
    100% {
        transform: rotate(360deg)
    }
}

 /* @keyframes snow {
    0% {
        top: 0%; /* Explicit start for clarity 
    }
    20% {
        top: 100%;
    }
    100% {
        top: 100%; /* Hold position during 60s pause 
    }
} */

@keyframes wind {
    50% {
        transform: translateX(120px)
    }
}



















/* INTEGRATED VOCABULARY BUILDER */
/* Basic structure for scroll */
.vb-parent-wrapper {
    display: none;      /* no specific display; no flex or block */
    height: 90%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background-color: white;
    letter-spacing: 1px;
}

/* center heading texts for .vb-parent-wrapper*/
.vb-parent-wrapper h1, .vb-parent-wrapper h2, .vb-parent-wrapper h3, 
.vb-parent-wrapper h4, .vb-parent-wrapper h5, .vb-parent-wrapper h6 
{
    text-align: center;
    color: var(--black-font-color);
}

.vb-parent-div {
    position: relative;
    height: 90%;
    width: 100%;
    overflow: hidden;
}

.vb-inner-content {
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
  display: block;
  align-items: center;
}

.vb-panel {
  height: 100%;
  width: 90%;
  margin: 0 auto; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.vb-panel ol,
.vb-panel ul {
    /* margin-left: 0; */
    padding-left: 3%;
}

/* #toggle-btn{
    height: 5%;
} */

.vb-nav {
    height: 10%;
    width: 100%;
}

#vb-scroll-btn {
    height: 55%;
    aspect-ratio: 2/1;
    min-width: 40px;
    border-radius: 6px;
    padding: 0;
    margin: 0;
    border: none;
    background-color: var(--secondary-color);
    color: white;
    font-size: 1em;
    /* visibility: hidden;
    display: none;
    pointer-events: none; */
}


.down-arrow {
    animation: arrow-pulseY 1.3s infinite
}

/* .down-arrow:nth-child(1) {
    animation-delay: 1s
} */

@keyframes arrow-pulseY {

    0%,
    100% {
        /* opacity: 1; */
        transform: translateY(-4px)
    }

    50% {
        /* opacity: 1; */
        transform: translateY(-1px)
    }
    
}
/* --Basic structure for scroll END */


/* Intro Section */
#vb-intro-header h2 {
    color: rgb(255, 255, 255);
    border-radius: 50px;
    padding: 0.5% 6%;
    background-color: var(--secondary-color);
    text-transform: capitalize;
}

#definition-sect-1 h3 {
    margin-top: 13px;
}

#fun-span {
    display: inline-block;
    /* animation: skew-animation 1.5s infinite; */
    animation: tilt 0.6s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

#proceed-to-words-button {
    height: 65%;
    /* min-width: 50px; */
    aspect-ratio: 2/1;
    /* display: block; */
    /* margin-top: 4%; */
    border: none;
    /* padding: 2%; */
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    /* text-align: center; */
}

/* #proceed-to-words-button:hover {
    background-color: var(--asset-color);
} */


/* Styling for Word Cards */
.word-screen {
    width: 90%;
}


.vocab-word-list {
    width: 100%;
    height: 100%;
}

.vocab-word-list h2 {
    margin-top:7px;
}

.word-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    height: auto;
    margin-top: 2%;
    overflow-y: scroll;
    scrollbar-width: thin;
    padding: 3px;
    margin-left: 0;  
}

.builder-word-card {
    flex: 1;
    min-width: 40%; /* 20% */
    /* width: 200px; */
    /* box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); */
    transition: 0.3s;
    border-radius: 5px; 
    padding: 10px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.builder-word-card:hover {
 transform: scale(.97);
 box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.builder-word-card:active {
    transform: scale(.92);
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.2); */
} 

.builder-word-card img {
 border-radius: 5px 5px 0 0;
}

/* --Styling for Word Cards END*/


/* Add keyframes animation of skew on fun-span */
@keyframes skew-animation {
    0% {
        transform: skewX(5deg);
    }
    50% {
        transform: skewX(-5deg);  /* Skew to the left */
    }
    100% {
        transform: skewX(5deg);    /* Reset skew to normal */
    }
}

@keyframes tilt {
  0%   { transform: rotate(-5deg); }
  50% { transform: rotate(10deg); }
}

/* Styling for Words Details section */
.vb-section h2, .vb-section h3 {
    /* align to left */
    text-align: center;
    /* border: 1px solid var(--border-color); */
    border-radius: 8px;
    padding: 0.5% 2%;
    background-color: var(--secondary-color);
    color: white;
    letter-spacing: 1px;
}

.vb-section h3 {
    text-align: left;
    /* width: 20%; */
    padding: 0.5% 1.5%;
    background-color: var(--secondary-color);
    font-size: 1em;
    margin-bottom: 5px;
    /* text-wrap: nowrap; */
}

.vb-section h4 {
    text-align: left;
}

.vb-section p {
    letter-spacing: 0.6px;
    padding-bottom: 2%;
}

.vb-pronunciation-sect {
    gap: 3%;
    justify-content: left;
}

#vb-audio-btn {
    width: 9%;
    aspect-ratio: 1/1;
    /* background-image: url(/imgs/pronunciation-audio-icon.svg); */
    background-size: 55%;
    background-color: var(--secondary-color);
    border: none;
    cursor: pointer;
    border-radius: 15px;
}

#vb-audio-btn:hover {
    filter: brightness(1.2);
}

#vb-example-image {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/2;
    max-height: 35%;
    margin-top: 2%;
    /* margin: 0 auto; */
    transition: 0.3s;
    background-color: burlywood;
    overflow: hidden;
    border-radius: 8px;
}

 #vb-example-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* #word-screen-1 h3 {
    
    padding-right: 10%;
} */



/* Vocabulary Quize Section */
.vb-quiz-question.hidden {
  display: none;
}

.vb-quiz-question.active {
  display: block;
}

.vb-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.vb-options button {
    padding: 5px 8px;
    border: 1px solid var(--primary-color);
    background: rgb(239, 249, 255);
    border-radius: 20px;
    cursor: pointer;
    /* style the button */
    font-size: 1em;
    font-weight: 500;
    color: var(--black-font-color);
    transition: transform .2s, background-color .3s;
}

.vb-quiz-nav {
  display: flex;
  justify-content:  center;
  margin-top: 25px;
  gap: 5px;
}

.vb-quiz-nav button {
    width: 6px;
    aspect-ratio: 1/1;
    background-color: var(--highlight-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* grey color for disabled buttons */
.vb-quiz-nav button:disabled {
    background-color: rgb(197, 197, 197);
    pointer-events: none;
}

.vb-quiz-end-nav button{
    background-color: var(--border-color);
    color: white;
    height: 25px;
    aspect-ratio: 2/1;
    font-size: 1.1em;
    border: 2px solid black;
}

@keyframes vb-swipe-left {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-10%);
    opacity: 0;
  }
  100% {
    transform: translateX(10%);
    opacity: 1;
  }
}

.quiz-swipe-left {
  animation: vb-swipe-left 1.5s ease-in-out;
}


@keyframes vb-swipe-down {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}



.popup-bounce-effect {
  animation: popupGrowShrink 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes popupGrowShrink {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
  70% {
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}







/* Bottom panel */
.bottom-panel {
    visibility: hidden;
    width: 98%;
    height: 8%;
    max-height: 40px;
    background-color: transparent;
    bottom: 0;
    display: flex;
    flex-direction: row;
    /* gap: 1.2%; */
    justify-content: space-evenly;
    align-items: center;
    /* border:1px solid #3d3d3d; */
    border-radius: 50px;
    user-select: none;
    margin-bottom: 2%; 
    text-align: center;

}

.bp {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 95%;
    aspect-ratio: 1/1 !important;
    color: var(--black-font-color);
    border: 1px solid var(--border-color);
    /* border: none; */
    border-radius: 6px;
    font-size: 0.95em;
    letter-spacing: 1px;
    font-weight: bold;
    /* cursor: pointer; */
    transition: transform .2s, background-color .3s;
    background-size: 50%;
    /* overflow: hidden; */
    background-color: transparent;
}

.bp:hover {
    transform: scale(1.01);
    /* filter: brightness(1.3); */
}

#level-number {
    background-color: var(--asset-color);
    /* color: white; */
    font-size: 1em;
    /* border: 1px solid var(--border-color); */
}

#level-number:hover {
    transform: scale(1);
}

#close-bp {
    /* border-radius: 50px; */
    background-size: 40%;
    /* background-color: transparent; */
    /* border: 1px solid var(--border-color); */
}
/* #close-bp:hover {
    background-color: #e02e2b; 
} */
#close-bp.remove-hover:hover {
    background-color: transparent !important; 
}

#vocabulary-builder-toggle {
    color: var(--black-font-color);
    background-color: var(--secondary-color);
    /* border: 1px solid var(--border-color); */
    
}
#bonus-word-access {
    color: white;
    background-color: var(--border-color);
    /* border: 1px solid var(--border-color); */
    
}

#reveal-words {
 background-size: 80%;   
}

#keypad-theme-toggle {
    font-family: customFont_1;
    color: #0A4FA3;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    font-size: 1.05em;
    border: 1px solid var(--border-color);
}




/* Common Classes */
.hidden-display {
    display: none;
}

.loop-frames {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
     /* debug */
    background-color: transparent;
    background-size: contain;
    background-position: 0% 0%;
    background-repeat: no-repeat;
}
