@font-face { font-family: "Balclown"; src: url("fonts/Balclown alternate2.ttf") format("truetype"); }
@font-face{
    font-family: "Andes Rounded W01 Black";
    src: url("fonts/82a2832bc3b3dcb58998c4548b3850fb.eot");
    src: url("fonts/82a2832bc3b3dcb58998c4548b3850fb.eot?#iefix")format("embedded-opentype"),
        url("fonts/82a2832bc3b3dcb58998c4548b3850fb.woff")format("woff"),
        url("fonts/82a2832bc3b3dcb58998c4548b3850fb.woff2")format("woff2"),
        url("fonts/82a2832bc3b3dcb58998c4548b3850fb.ttf")format("truetype"),
        url("fonts/82a2832bc3b3dcb58998c4548b3850fb.svg#Andes Rounded W01 Black")format("svg");
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}
body {
    margin: 0;
    background-color: black;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

canvas {
    display: block;
}

html, body {
	overflow: hidden;
	margin: 0;
	width: 100%;
	height: 100%;
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: center;    /* Centraliza verticalmente */
}

#loading-screen {
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* background-color: #000000; */
	opacity: 1;
 	transition: 1s opacity;
}

#loading-screen.fade-out {
    opacity: 0;
}
#loader {
    display: block;
    position: relative;
    left: 50%;
    top: calc(50% + 85px);
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #dd8b47;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #c51e3b;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}
#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #246481;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}
@-webkit-keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spin {
    0%   {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#logo {
    position: absolute;
    z-index: 1;
    max-height: 40vh;
    top: 5vh; /* Changed from 10vh to 5vh */
    left: 50%;
    -webkit-transform: translate(-50%, 0); /* Para navegadores WebKit */
    transform-origin: center;
    transform: translate(-50%, 0);
    transition: max-height 0.5s;
}

.increased-height {
    max-height: 44vh !important;
}

/* New pulsating animation for the logo */
@keyframes pulsate {
    0% { transform: translate(-50%, 0) scale(1); }
    50% { transform: translate(-50%, 0) scale(1.05); }
    100% { transform: translate(-50%, 0) scale(1); }
}

.pulsate {
    animation: pulsate 2s ease-in-out infinite;
}

/* Remove the slow-swing animation */

#bottom-hud {
    position: absolute;
    z-index: 1;
    bottom: calc(env(safe-area-inset-bottom) + 25px);
    width: calc(90vw - 125px);
    opacity: 0;
    left: 50%;
    transform: translate(-50%, 0);
    background: #fff0c2;
    font-family: 'Andes Rounded W01 Black', sans-serif;
    color: whitesmoke;
    text-align: center;
    display: flex;
    align-items: stretch;
    box-sizing: content-box;
    border: 50px solid red;
    border-image-source: url(ui/hud-border.png);
    border-image-slice: 50;
    border-image-outset: 0.5;
    border-image-repeat: round;
    flex-direction: column;
    
    max-width: 375px;
    pointer-events: none;
}

.upwards-fadein {
    animation: upwardsFadeIn 2s forwards;
    pointer-events: all !important;
}

@keyframes upwardsFadeIn {
    0% { 
        opacity: 0;
        transform: translate(-50%, 1rem);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.fadeInWithScale {
    animation: fadeInWithScale 0.3s forwards;
}

.fadeOutWithScale {
    animation: fadeOutWithScale 0.3s forwards;
}

@keyframes fadeOutWithScale {
    0% {
        opacity: 1;
    }
    100% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}


@keyframes fadeInWithScale {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        opacity: 1;
    }
}


body > canvas {
    filter: brightness(0.65) blur(4px);
    position: absolute;
    top: 0;
}

.brightenUp {
    animation: brightenUp 0.3s forwards;
}

@keyframes brightenUp {
    0% {
        filter: brightness(0.65) blur(4px);
    }
    100% {
        filter: brightness(1) blur(0);
    }
}

#play-button {
    position: relative;
    z-index: 1;
    font-family: 'Andes Rounded W01 Black', sans-serif;
    max-height: 30vh;
    max-width: 70vw;
    top: 23%;
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
}

@media screen and (min-height: 720px)  {
    #play-button {
        font-size: 19px;
    }
}
@media screen and (max-height: 720px)  {

    .slide-wrapper {
        font-size: 16px !important;
    }
}

@media screen and (max-height: 620px)  {

    .slide-wrapper {
        font-size: 14px !important;
    }
/* 
    .increased-height {
        /* max-height: 28vh !important; 
    } */
}

.img-button {
    background: none;
    border: none;
    padding: 0;
    color: white;
    font-family: "Grover";
    font-size: 1.2rem;
}

#play-button:disabled {
    filter: saturate(0);
}

.img-button > img {
    width: 100%;
}

#play-button > img {
    max-height: 86px;
    aspect-ratio: 367 / 215 !important;
    width: auto;
}

#play-button:not(:disabled):hover {
    filter: brightness(1.1);
}

#play-button:not(:disabled):active {
    filter: brightness(0.9);
}

.swing {
	transform-origin: top center;
	animation: swing 4s ease;
}

.slow-swing {
	transform-origin: top center;
	animation: slow-swing 2s linear infinite;
}
@keyframes swing {
	10% { transform: translate(-50%, -1rem) rotate(15deg); }	
	20% { transform: translate(-50%, 0) rotate(-10deg); }
	30% { transform: translate(-50%, 0) rotate(5deg); }	
	40% { transform: translate(-50%, 0) rotate(-5deg); }
    60% { transform: translate(-50%, 0) rotate(2.5deg); }	
	80% { transform: translate(-50%, 0) rotate(-2.5deg); }	
	100% { transform: translate(-50%, 0) rotate(1deg); }
}

@keyframes slow-swing {
    0% { transform: translate(-50%, 0) rotate(1deg); }	
	50% { transform: translate(-50%, 0) rotate(-1deg); }
	100% { transform: translate(-50%, 0) rotate(1deg); }	
}

#progress-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 10px;
    width: calc(100% + 60px);
    margin-left: -30px;
}

#amount-paid {
    margin-bottom: -23px;
    transform: translateY(-30px);
    margin-left: -45px;
    margin-right: -17px;
    font-size: 21px;
}

#amount-until-next-prize {
    font-size: 1rem;
    line-height: 1.5rem;
    text-align: center;
    overflow-y: scroll;
    text-shadow: 0 0 0.1rem black;
    padding: 16px 8px;
    margin-bottom: -46px;
    margin-left: -45px;
    margin-right: -18px;
    overflow: hidden;
}

.highlight {
    color: gold;
    display: inline-block;
}

.progress, .current {
    padding: 0;
    margin: 0;
    height: 20px;
}

:root {
    --backColor: #921a36;
    --darkBackColor: #720e26;
    --foreColor: gold;
    --darkForeColor: goldenrod;
}

.progress {
    overflow: hidden;
    border-radius: 15px;
    display: flex;
    align-items: center;

    border: 1px solid white;
    /* outline: 1px solid rgba(0, 0, 0, 0.5); */
    width: 100%;
	background: repeating-linear-gradient(
		-45deg,
		var(--backColor),
		var(--backColor) 25%,
		var(--darkBackColor) 25%,
		var(--darkBackColor) 50%,
		var(--backColor) 50%
	) center center local;

	background-size: 30px 30px;
    margin-top: -10px;
}

.current {
    background: repeating-linear-gradient(
        -45deg,
        var(--foreColor),
        var(--foreColor) 25%,
        var(--darkForeColor) 25%,
        var(--darkForeColor) 50%,
        var(--foreColor) 50%
    ) top left fixed;
    outline: 1px solid white;
    background-size: 30px 30px;
}

#popup-container {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    place-content: center;
    background-color: rgba(0,0,0,0.8);
}

#popup-bg-img {
    position: relative;
    width: 100vmin;
    height: 100vmin;
    display: grid;
    place-content: center;
    background-image: url(./ui/popup.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    animation: floating 2s infinite alternate ease-in-out;
}

@keyframes floating {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(0, 0.5rem);
    }
}

#popup-container span {
    font-family: 'Andes Rounded W01 Black', cursive;
    color: whitesmoke;
    font-size: 8vmin;
    text-align: center;
    display: grid;
    place-content: center;
    transform: translateY(-31%);
}

@keyframes show {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.show {
    animation: show 0.3s forwards;
}


@keyframes hide {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.hide {
    animation: hide 0.3s forwards;
}

/* Should be added when the popup is hidden */
.hidden {
    display: none !important;
}

#popup-close-button {
    position: absolute;
    cursor: pointer;
    top: 3vmin;
    right: 7vmin;
    width: 13vmin;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

#popup-close-button:hover {
    filter: brightness(1.1);
}

#popup-close-button:active {
    filter: brightness(0.9);
}

#drawing_canvas {
    position: absolute;
    /* width: 100vw; */
    /* height: 100vh; */
    /* top: 50%;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-75%); */
    pointer-events: none;
}

img {
    pointer-events: none;
    user-select: none;
}

.outlined {
color: white;
text-shadow:
    -0.5px -0.5px 0 #000,
    0   -0.5px 0 #000,
    0.5px -0.5px 0 #000,
    0.5px  0   0 #000,
    0.5px  0.5px 0 #000,
    0    0.5px 0 #000,
    -0.5px  0.5px 0 #000,
    -0.5px  0   0 #000;
}

.outlined-red {
    color: #fef0c3;
    text-shadow:0px -1px 0 #951e39, 1px -1px 0 #951e39, 1px 0 0 #951e39, 1px 1px 0 #951e39, 0 1px 0 #951e39, -1px 1px 0 #951e39, -1px 0 0 #951e39, 2px 2px 0 #951e39, 3px 3px 0 #951e39, 1px 3px 0 #951e39, 0px 0px 0 #951e39;
  }

@media screen and (max-height: 600px) {
    #bottom-hud {
        border-width: 30px;
        border-image-width: 15px;
        width: calc(90vw - 82px);
        
    }

    #amount-paid, #amount-until-next-prize {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 400px) and (max-height: 650px) {
    #amount-until-next-prize {
        line-height: 1.2rem;
    }

    #amount-paid {
        font-size: 12px;
    }
}

@media screen and (max-width: 350px) {
    #amount-until-next-prize {
        font-size: 12px;
        line-height: 1.2rem;
    }
    
    #amount-paid {
        font-size: 12px;
    }
}


@media screen and (max-height: 650px) and (min-width: 600px) and (orientation: landscape) {
    #bottom-hud {
        width: calc(18vw) !important;
        left: calc(env(safe-area-inset-left) + 19vw);
        bottom: 25vh;
        border-width: 42px;
        border-image-width: 30px;
    }
    
    #amount-paid, #amount-until-next-prize {
        padding-left: 0;
        padding-right: 0;
    }
}

.drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 80%;
    background-color: #FBEFD8;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: bottom 0.3s ease-out;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Andes Rounded W01 Black', sans-serif;
    display: flex;
    flex-direction: column;
}

.drawer.open {
    bottom: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px;
    background-color: #004366;
    color: #FBEFD8;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    cursor: pointer;
}

.drawer-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.close-drawer {
    background: none;
    border: none;
    color: #FBEFD8;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-drawer:hover {
    transform: scale(1.1);
}

.drawer-tabs {
    display: flex;
    justify-content: space-around;
    background-color: #004366;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tab-button {
    background: none;
    border: none;
    color: #FBEFD8;
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.tab-button.active {
    background-color: #B52040;
    color: #FBEFD8;
}

.drawer-content {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.tab-content-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    width: 200%; /* Accommodate two tabs */
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tab-content {
    flex: 0 0 50%; /* Each tab takes half of the wrapper width */
    width: 50%;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.tab-content.active {
    display: block;
}

.lucky-numbers-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.lucky-numbers-list li {
    background-color: #FFFFFF;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    color: #004366;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    position: relative;
    padding-right: 70px; /* Increase space for the copy button */
}

.lucky-numbers-list li:hover {
    transform: translateY(-2px);
}

.lucky-numbers-list li::before {
    content: attr(data-index);
    background-color: #B52040;
    color: #FBEFD8;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
    flex-shrink: 0;
}

.lucky-number {
    font-weight: bold;
    font-size: 22px;
    color: #004366;
    letter-spacing: 1px;
}

#lucky-numbers-button {
    background-color: #004366;
    color: #FBEFD8;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 40px;
    margin-bottom: -20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#lucky-numbers-button:hover {
    background-color: #003355;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Add a scrollbar styling for webkit browsers */
.drawer-content::-webkit-scrollbar {
    width: 8px;
}

.drawer-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.drawer-content::-webkit-scrollbar-thumb {
    background: #B52040;
    border-radius: 4px;
}

.drawer-content::-webkit-scrollbar-thumb:hover {
    background: #931A37;
}

/* Add styles for the copy button */
.copy-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #004366;
    color: #FBEFD8;
    border: none;
    border-radius: 5px;
    padding: 0 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 40px; /* Same height as the index container */
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button:hover {
    background-color: #003355;
}

.copy-button:active {
    background-color: #002344;
}

/* Style for copied feedback */
.copied {
    background-color: #28a745;
}

/* Add these styles at the end of your existing CSS */

@keyframes confetti-fall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(200px) rotate(720deg);
    opacity: 0;
  }
}

.confetti {
  position: absolute;
  z-index: 1000;
  font-size: 20px;
  pointer-events: none;
  animation: confetti-fall 2s ease-out forwards;
}

/* Update these styles for the search bar */
.search-bar {
    background-color: #ffffff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

#lucky-number-search {
    width: calc(100% - 60px); /* Make space for both buttons */
    padding: 10px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    color: #333;
    background-color: transparent;
    font-family: 'Andes Rounded W01 Black', sans-serif;
}

#lucky-number-search::placeholder {
    color: #777;
}

#lucky-number-search:focus {
    outline: none;
    box-shadow: 0 0 0 2px #555; /* Dark gray border when focused */
}

.search-button, .clear-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: #555;
}

.search-button:hover, .clear-button:hover {
    transform: scale(1.1);
}

.clear-button {
    display: none; /* Initially hidden */
    font-weight: bold;
    font-size: 14px;
}

/* Add styles for the search animation */
@keyframes search-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.search-animation {
    animation: search-bounce 0.5s ease;
}

/* Add these styles for the overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.drawer-overlay.open {
    display: block;
}

/* Update the drawer z-index to be above the overlay */
.drawer {
    /* ... existing styles ... */
    z-index: 1000;
}

/* Make the drawer header clickable */
.drawer-header {
    cursor: pointer;
}

/* Add styles for webkit browsers */
.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #B52040;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #931A37;
}

.lucky-numbers-list li:last-child {
    margin-bottom: 20px; /* Add some bottom margin to the last item */
}

/* Adjust scrollbar styles for webkit browsers */
.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #B52040;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: #931A37;
}

/* Add styles for non-webkit browsers */
.tab-content {
    scrollbar-width: thin;
    scrollbar-color: #B52040 #f1f1f1;
}

.skip-tutorial-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  background-color: #d21445;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Andes Rounded W01 Black', sans-serif;
  font-size: 14px;
  z-index: 1003;
  display: none;
}

.skip-tutorial-button:hover {
  background-color: #e62555;
}

.show-tutorial-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 90px;
    height: 40px; /* Changed from 90px to 40px */
    background-color: #d21445;
    color: white;
    border: none;
    border-radius: 5px; /* Changed from 50% to 5px */
    cursor: pointer;
    font-family: sans-serif;
    font-size: 12px; /* Changed from 14px to 12px */
    font-weight: bold;
    line-height: 1.2;
    z-index: 1003;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Reduced shadow */
    transition: all 0.3s ease;
    display: none;
}

.show-tutorial-button .button-content {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.show-tutorial-button .emoji {
    font-size: 18px; /* Changed from 24px to 18px */
    margin-right: 5px; /* Added margin-right instead of margin-bottom */
}

.show-tutorial-button .text {
    text-align: center;
}

.show-tutorial-button:hover {
    background-color: #e62555;
    transform: scale(1.05); /* Removed rotation */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.show-tutorial-button:hover .button-content {
    transform: scale(1.05);
}

.show-tutorial-button:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.show-tutorial-button {
    animation: pulse 2s infinite;
}

.show-tutorial-button:hover {
    animation: none;
}

#bottom-hud {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#balance-button, #lucky-numbers-button {
    flex: 1;
    margin: 5px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004366;
    color: #FBEFD8;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#balance-button:hover, #lucky-numbers-button:hover {
    background-color: #003355;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1004;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #FBEFD8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    color: #004366;
    margin-bottom: 15px;
}

.modal-content p {
    color: #333;
    margin-bottom: 20px;
}

#close-balance-modal {
    background-color: #004366;
    color: #FBEFD8;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#close-balance-modal:hover {
    background-color: #003355;
}

/* Add these styles and modify existing ones */

#bottom-buttons-container {
    display: flex;
    justify-content: space-between;
    margin-top: -15px;
    margin-bottom: -35px;
    margin-left: -30px;
}

#balance-button, #lucky-numbers-button {
    flex: 0 0 calc(50% - 5px); /* 5px for gap between buttons */
    margin: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #004366;
    color: #FBEFD8;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#balance-button:hover, #lucky-numbers-button:hover {
    background-color: #003355;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.button-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

/* You may need to adjust these styles to ensure proper layout */
#bottom-hud {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#amount-until-next-prize {
    margin-bottom: 10px;
}

/* Ensure the modal has appropriate styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1004;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #FBEFD8;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-content h2 {
    color: #004366;
    margin-bottom: 15px;
}

.modal-content p {
    color: #fff;
    margin-bottom: 20px;
}

#close-balance-modal {
    background-color: #004366;
    color: #FBEFD8;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#close-balance-modal:hover {
    background-color: #003355;
}

/* Add this to your existing CSS */
#balance-value.loading {
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Update existing modal styles and add new ones */
.modal {
    display: none;
    position: fixed;
    z-index: 1004;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    font-family: 'Andes Rounded W01 Black', sans-serif;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: #004366;
    color: #FBEFD8;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.modal-icon {
    height: 80px;
    width: auto;
    margin-right: 15px;
}

.modal-content h2 {
    color: #FBEFD8;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    margin: 0;
}

.balance-container {
    background-color: #003355;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.balance-container p {
    margin: 0;
    font-size: 16px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    margin-top: 10px;
}

#close-balance-modal {
    background-color: #B52040;
    color: #FBEFD8;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

#close-balance-modal:hover {
    background-color: #931A37;
    transform: translateY(-2px);
}

#close-balance-modal:active {
    transform: translateY(0);
}

/* Update the loading animation */
#balance-value.loading {
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Add a fade-in animation for the modal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}