/* @import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap');

* {
  font-family: 'Rubik', sans-serif;
} */

/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

/* General Page Setup */
body {
  height: 100vh;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  background-color: #ffecf1;
  /* overflow: hidden; */
  -ms-overflow-style: none; /* IE and Edge */
  -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

/* Hide scrollbar for all elements */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for WebKit (Chrome, Safari, Opera) */
*::-webkit-scrollbar {
  display: none;
}

/* Ensure body takes full height and allows scrolling */
body {
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  overflow: auto;
}

/* Style for the connection status bar */
#connection-status {
  padding-left: 30px;
  padding-right: 30px;
  width: 100%;
  height: 20px; /* Small height */
  text-align: center;
  line-height: 20px; /* Vertically center text */
  color: white;
  font-weight: bold;
}

#connection-status.centered {
  display: flex;
  justify-content: space-between;
  width: 100%; /* Ensures full width */
}
/* Style for the connection status bar */
#connection-status2 {
  width: 95%;
  height: 20px; /* Small height */
  text-align: center;
  line-height: 20px; /* Vertically center text */
  color: white;
  font-weight: bold;
  margin: 0 auto; /* Horizontally center */
}


/* Style for each connection state */
.connected {
  background-color: #4CAF50;
}

.disconnected {
  background-color: #F44336;
}

.connecting {
  background-color: orange;
}

/* from here onwards is about the fisrt screen*/
/* Card Selection - Your exact layout with visual upgrades */
.card-selection {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  padding: 10px;
}

/* Info Row - Your layout with matching header style */
.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  height: auto;
}

.info-cell {
  width: 23%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #4fb4f8, #1e90ff);
  color: white;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-size: 14px;
}

.info-cell strong {
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Selection Grid - Your layout with cell styling from inspiration */
.selection-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin-top: 5px;
}

.selection-cell, 
.selection-cell-user-selected, 
.selection-cell-other-selected {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.selection-cell {
  background-color: white;
  border: 1px solid #e0e0e0;
}

.selection-cell-user-selected {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  border: none;
}

.selection-cell-other-selected {
  background: linear-gradient(135deg, #F44336, #C62828);
  color: white;
  border: none;
}

/* Selected Card Grid - Your layout with visual upgrade */
.selected-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin: 10px auto 0;
  max-width: 300px;
}

.selected-card-grid-cell {
  height: 17px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
  font-size: 12px;
}

/* Footer - Your exact layout with button styling from inspiration */
.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 10px;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px; /* Reduced from 8px */
  padding: 4px 5px; /* Reduced vertical padding */
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 14px; /* Slightly smaller font */
  font-weight: bold;
  width: 120px; /* Same width */
  height: 45px; /* Fixed height for consistency */
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  box-sizing: border-box; /* Ensures padding is included in height */
}

.refresh-button {
  background: linear-gradient(to right, #4fb4f8, #1e90ff);
}

.start-game-button {
  background: linear-gradient(to right, #ff9a44, #ff6b6b);
}

.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Back Button - Your position with inspired styling */
.back-btn {
  background: linear-gradient(to right, #ff9a44, #ff6b6b);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(255,107,107,0.3);
  transition: all 0.2s ease;
}

.back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255,107,107,0.4);
}

/* Selected Number - Your layout with visual pop */
.selected-card-number {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #4CAF50, #2E7D32);
  color: white;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 50%;
  box-shadow: 0 8px 15px rgba(76,175,80,0.4);
  margin: 10px auto;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Animation from inspiration */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
/* from here onwards is about the playing screen*/
/* Game Play Screen Styling */
.game-play {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Game Play Info Row */
.game-play-info {
  height: 6%;
  background-color: #ffecf1; /* Light Blue */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-top: 1px;
  margin-bottom: 1px;
}

/* Game Play Info Cell */
.game-play-info-cell {
  width: 15%; /* Adjusted to fit 6 cells in the row */
  height: 40px;
  background-color: #4fb4f8;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  border-radius: 4px; /* Slight rounding for better aesthetics */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Style for the title text inside each game-play-info-cell (span elements) */
.info-title {
  font-size: 10px;
  font-weight: bold;
  display: block;
  text-align: center; /* Centers the text horizontally */
}

.game-play-info-cell div {
  font-size: 0.9em;
  margin-top: 5px;
}

/* Game Content Row */
.game-content {
  background-color: #ffecf1; /* Light Blue */
  display: flex;
  height: 66%; /* Adjusted height as per your previous requirement */
}

/* Left Column (40%) */
.game-content-left {
  width: 40%;
  padding: 10px;
  overflow: visible;
  clip-path: inset(0px 0px -10px 0px); /* Extends visibility */
}

/* BINGO Header (1x5 Grid) */
.bingo-header {
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 0px;
  max-height: 7%;
  padding-left: 3px;
  padding-right: 3px;
  background-color: rgb(254, 254, 233);
  border-radius: 5px 5px 0 0;
}

.bingo-cell {
  width: 18%;
  height: 22px;
  display: flex;
  justify-content: center; /* Horizontally center the content */
  align-items: center; /* Vertically center the content */
  text-align: center;
  color: white; /* Text color */
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
}

/* 15x5 Grid */
.number-grid {
  height: 60vh;
  padding: 5px;
  padding-top: 5px;
  background-color: rgb(254, 254, 233);
  display: grid;
  border-radius: 0 0 5px 5px;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  grid-template-rows: repeat(15, 1fr); /* 15 rows */
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: visible;
}

.number-grid-cell {
  display: flex; /* Enables Flexbox */
  justify-content: center; /* Horizontally center the text */
  align-items: center; /* Vertically center the text */
  text-align: center;
  height: 3vh;
  background-color: #bebdbd;
  /* border: 1px solid #ddd; */
  font-size: 11px;
  font-weight: 300;
  color: white; /* White text */
  border-radius: 3px;
  margin-bottom: 7px; /* Space between cells in a column */
}

.number-grid-cell-marked {
  background-color: rgba(239, 79, 4, 0.7);
}

/* Flashing and resizing effect for cells */
.number-grid-cell-flashing {
  background-color: green;
  animation: flashAndResize 3s ease-in-out;
}

@keyframes flashAndResize {
  0% {
    transform: scale(1);
    background-color: green;
  }
  50% {
    transform: scale(1.5);
    background-color: green;
  }
  100% {
    transform: scale(1);
    background-color: green;
  }
}

/* Jumping animation */
@keyframes jump {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.05); /* Small lift & slight size increase */
  }
}

/* Flashing animation (if needed) */
@keyframes flash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Right Column (60%) */
.game-content-right {
  width: 60%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Countdown Section (10%) */
.countdown {
  height: 12%;
  background-color: lightyellow;
  padding: 10px;
  display: flex;
  justify-content: space-between; /* Keeps content spaced out (if needed) */
  align-items: center; /* Vertically centers the content */
  text-align: center;
  border-radius: 15px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.countdown-value {
  font-size: 30px;
  color: #333;
}

/* Current Call Section (15%) */
.current-call {
  color: white;
  height: 11%;
  padding: 10px;
  font-weight: bold;
  display: flex;
  /* Use flexbox to align items */
  justify-content: space-between;
  /* Space items on opposite ends */
  align-items: center;
  /* Center vertically */
  background-color: mediumseagreen;
  /* Glassy effect */
  border-radius: 20px;
  /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  /* Shadow for depth */
}

/* Styling for circle number (current call number) */
.circle-number {
  background-color: orange;
  color: white;
  font-size: 24px;
  font-weight: bold;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: -10%;
  left: 15%;
  margin: 0 auto;
  padding-right: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);

  /* Add jumping animation */
  animation: jump 1s infinite ease-in-out !important;
}

/* Jumping animation */
@keyframes jump {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Recent Calls Section (10%) */
.recent-calls {
  height: 10%;
  background-color: lightcoral;
  padding: 10px;
  display: flex;
  /* Use flexbox for the layout */
  justify-content: space-between;
  /* Space out the cells evenly */
  align-items: center;
  /* Center the cells vertically */
  border-radius: 10px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.recent-call-cell {
  background-color: rgba(255, 255, 255, 0.7);
  /* Slightly transparent white */
  color: white;
  /* Text color */
  border-radius: 50%;
  font-size: 12px;
  /* Adjusted font size for the call numbers */
  font-weight: bold;
  /* Bold text */
  width: 40px;
  /* Adjusted cell width */
  height: 40px;
  /* Adjusted cell height */
  display: flex;
  /* Flexbox for centering text */
  align-items: center;
  /* Center vertically */
  justify-content: center;
  /* Center horizontally */
  box-shadow: 3px 2px 5px rgba(0, 0, 0, 0.2);
  /* Shadow for depth */
  margin: 0 5px;
  /* Add margin to create spacing between cells */
}

/* Game Card Section (65%) */
.game-card {
  height: 62%; /* Adjust based on overall container */
  background-color: rgb(195, 196, 197);
  padding: 8px;
  padding-bottom: 2px;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column; /* Stack header, grid, and footer */
}

/* Game Card Header */
.game-card-header {
  height: 15%; /* Ensures the header takes exactly 15% */
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px; /* Slightly smaller gap for balance */
}

.game-card-header .bingo-cell {
  width: 17.5%;
  height: 100%; /* Fill the header's height */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-size: 1em;
  font-weight: bold;
  box-shadow: 3px 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

/* Game Card 5x5 Grid */
.game-card-grid {
  height: 78%; /* Ensures the grid takes 75% */
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns */
  grid-template-rows: repeat(5, 1fr); /* 5 rows */
  gap: 5px;
}

.game-card-cell {
  display: flex; /* Use flexbox to enable centering */
  justify-content: center; /* Horizontally center the text */
  align-items: center; /* Vertically center the text */
  text-align: center; /* Ensure the text is centered horizontally */
  height: 100%; /* Fill grid cell height */
  background-color: #f0f0f0;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Lighter shadow for smooth transition */
}

.game-card-cell.marked {
  background-color: green; /* Marked color */
  color: white; /* White text on marked cells */
}

/* Footer */
.game-card-footer {
  height: auto;
  padding: 2px 0;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin-top: 0px;
  margin-bottom: 2px;
  /* background: linear-gradient(45deg, #474848, #b5aeb7); */
  color: black; /* White text for contrast */
  border-radius: 0 0 8px 8px; /* Rounded bottom corners */
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
}


/* Bingo Button Section */
.bingo-button-section {
  margin-top: 0px;
  height: 10%;
  background-color: #ffecf1; /* Light Blue */
  display: flex; /* Use flexbox to enable centering */
  justify-content: center; /* Horizontally center the text */
  align-items: center;
}

.bingo-button {
  background-color: orange;
  /* Button color */
  color: white;
  /* Text color */
  font-size: 1.5em;
  /* Adjust font size for emphasis */
  font-weight: bold;
  border: none;
  /* Remove default border */
  border-radius: 50px;
  /* Rounded corners */
  padding: 15px 30px;
  /* Padding for size */
  cursor: pointer;
  /* Pointer cursor on hover */
  width: 80%;
  /* Occupy most of the row */
  height: 60%;
  /* Adjust height to fit row */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* Shadow for depth */
  margin: auto;
  /* Center the button */
  display: flex;
  /* Center text horizontally and vertically */
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  /* Smooth transform for hover */
}

/* Footer Section */
.game-play-footer {
  height: 6%;
  background-color: #ffecf1; /* Light Pink */
  display: flex; /* Use flexbox to enable centering */
  justify-content: start; /* Horizontally center the text */
  align-items: center;
}

.game-play-refresh-button {
  flex: 1;
  /* Each button takes equal space */
  font-size: 1.2em;
  /* Slightly larger font */
  font-weight: bold;
  color: white;
  /* White text */
  border: none;
  /* Remove default border */
  border-radius: 50px;
  /* Rounded corners */
  padding: 10px 20px;
  /* Padding for size */
  cursor: pointer;
  margin: 0 10px;
  /* Space between buttons */
  height: 90%;
  /* Adjust height to fit row */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* Shadow for depth */
  transition: transform 0.2s ease;
  /* Smooth transform on hover */
  background-color: #3498db;
}

.game-play-leave-button {
  flex: 1;
  /* Each button takes equal space */
  font-size: 1.2em;
  /* Slightly larger font */
  font-weight: bold;
  color: white;
  /* White text */
  border: none;
  /* Remove default border */
  border-radius: 50px;
  /* Rounded corners */
  padding: 10px 20px;
  /* Padding for size */
  cursor: pointer;
  margin: 0 10px;
  /* Space between buttons */
  height: 90%;
  /* Adjust height to fit row */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  /* Shadow for depth */
  transition: transform 0.2s ease;
  /* Smooth transform on hover */
  background-color: #e74c3c;
}

/* from here onwards is about the modals screen*/
/* Modal Styling */
.modal {
  position: fixed;
  top: 10%; /* Starts below the top 10% */
  left: 0;
  width: 100%;
  height: 90%; /* Covers the lower 90% of the screen */
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.modal-content {
  margin-top: 30%; /* open a small transparent area */
  width: 100%;
  height: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

/* Card View Header */
.modal-header {
  background: linear-gradient(to right, yellow, orange, red);
  padding: 10px 15px 2px;
  text-align: center;
  color: white;
  border-radius: 10px 10px 0 0;
}

/* Play Again Button */
.play-again-btn {
  background: orange;
  color: white;
  border: none;
  width: 90%;
  height: 8%;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 18px;
  margin: 10px;
  cursor: pointer;
  /* Adjusted margin to keep it closer */
  transition: background-color 0.3s;
}
/* "X" Symbol styling */
.game-play-big-x {
  font-size: 20rem; /* Adjust size as needed */
  font-weight: bold;
  color: red; /* Make the "X" red for visibility */
  margin: 10px 0; /* Space above and below the "X" */
  line-height: 1; /* Ensures no extra space around the "X" */
}

.game-over-big-bingo {
  font-size: 36px;
  margin: 0;
}

.winner-name {
  background-color: darkgreen !important;
  color: white !important;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
}


.game-over-small-text {
  font-size: 18px;
  margin: 0;
}

/* Win and Bonus Win Text Styling */
.game-over-win-bonus-text {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-over-win-text {
  color: green;
  margin-right: 10px; /* Space between the texts */
  text-transform: uppercase;
  display: inline-block;
}

.game-over-bonus-win-text {
  color: #fff;
  background-color: gold;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  box-shadow: 0 0 10px gold, 0 0 15px gold;
}

/* Play Again Button */
.play-again-btn {
  background: orange;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  font-size: 18px;
  margin-top: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal h2 {
  margin-bottom: 10px;
  font-size: 1.5em;
}

.modal p {
  margin-bottom: 20px;
}

.close-button {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #64b5f6; /* Light blue */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Show Modal Class */
.show-modal {
  display: flex; /* Display modal with flex layout */
}

.game-over-mid-container {
  margin-left: 25px;
  margin-right: 25px;
  background-color: rgb(195, 196, 197);
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  box-shadow: 3px 2px 5px rgba(0, 0, 0, 0.2);
}

.game-over-bingo-header {
  margin-top: 10px;
  display: flex; /* Set to flex to align items in a row */
  justify-content: space-between; /* Distribute cells evenly across the row */
  width: 100%;
  padding-top: 10px;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 10px;
}

/* BINGO header cell styling */
.game-over-bingo-header-cell {
  gap: 5px;
  width: 15%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  margin: 2px;
  font-size: 1.2em;
  box-shadow: 3px 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

/* Unique colors for each letter */
.game-over-bingo-header-cell.B {
  background-color: orange;
}
.game-over-bingo-header-cell.I {
  background-color: lightgreen;
}
.game-over-bingo-header-cell.N {
  background-color: lightblue;
}
.game-over-bingo-header-cell.G {
  background-color: red;
}
.game-over-bingo-header-cell.O {
  background-color: purple;
}

/* Grid Container */
.game-over-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  row-gap: 5px;
  padding-bottom: 10px;
  padding-left: 15px;
  padding-right: 15px;
  text-align: center;
  font-weight: bold;
}

/* Grid Cell Styles */
.game-over-grid-cell {
  display: flex;
  justify-content: center; /* Horizontally centers the content */
  align-items: center; /* Vertically centers the content */
  text-align: center; /* Ensures text is centered within the cell */
  height: 45px; /* Adjust height as needed */
  background-color: #f0f0f0; /* Example background color */
  border-radius: 5px; /* Optional styling */
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Lighter shadow for smooth transition */
}

.game-over-marked-grid-cell {
  display: flex;
  justify-content: center; /* Horizontally centers the content */
  align-items: center; /* Vertically centers the content */
  text-align: center; /* Ensures text is centered within the cell */
  height: 45px; /* Adjust height as needed */
  background-color: rgb(128, 106, 106); /* Example background color */
  color: white;
  border-radius: 5px; /* Optional styling */
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Lighter shadow for smooth transition */
}

.game-over-marked-and-called-grid-cell {
  background: green;
  display: flex;
  justify-content: center; /* Horizontally centers the content */
  align-items: center; /* Vertically centers the content */
  text-align: center; /* Ensures text is centered within the cell */
  height: 45px; /* Adjust height as needed */
  color: white;
  border-radius: 5px; /* Optional styling */
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Lighter shadow for smooth transition */
}

.game-over-marked-and-called-grid-cell-last-cell {
  background: rgb(56, 231, 8);
  display: flex;
  justify-content: center; /* Horizontally centers the content */
  align-items: center; /* Vertically centers the content */
  text-align: center; /* Ensures text is centered within the cell */
  height: 45px; /* Adjust height as needed */
  color: black;
  border-radius: 5px; /* Optional styling */
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Lighter shadow for smooth transition */
}

.game-over-modal-footer-card-number {
  margin-top: 5px;
  background-color: #4caf50; /* Green color */
  color: white; /* White text color */
  padding: 10px 20px; /* Padding for space around the text */
  font-size: 1em; /* Adjust font size as needed */
  font-weight: bold; /* Bold text */
  text-align: center; /* Center the text */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  display: inline-block; /* Makes the element fit its content */
}

/* Toast styling */
.toast {
  visibility: hidden;
  width: 90%;
  max-width: 350px;
  background: rgba(250, 18, 18, 0.7); /* Dark glassy background */
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  padding: 14px 18px;
  position: fixed;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  z-index: 9999;
  opacity: 0;
  backdrop-filter: blur(10px); /* Glass effect */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease-in-out;
}

/* Show toast animation */
.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-10px); /* Slight lift effect */
}

/* splash screen */

.splash {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999999; /* Ensure it stays on top */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #ffecf1;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08); /* Reduced glow */
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.splash-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transform: translateY(-70px); /* Moves everything up */
}

.splash-title {
  font-size: 3rem;
  font-weight: bold;
  color: #4b0082;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px #1e90ff; /* Reduced outer glow */
}

.splash-bingo-ball {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 10%, #1e90ff 80%);
  /* Simulated 3D shading */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4rem;
  font-weight: bold;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Soft shadow for depth */
  position: relative;
  perspective: 500px; /* Adds depth */
  animation: splash-3D-move 2s infinite ease-in-out;
}

/* Highlight (Reflection) */
.splash-bingo-ball::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 25%;
  width: 25px;
  height: 25px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0.9;
  filter: blur(5px);
}

/* 3D Movement Animation */
@keyframes splash-3D-move {
  0%,
  100% {
    transform: rotateX(5deg) rotateY(5deg) translateY(0);
  }
  50% {
    transform: rotateX(-5deg) rotateY(-5deg) translateY(-20px);
  }
}

.splash-progress-container {
  width: 100%;
  position: absolute;
  bottom: 80px; /* Move it up slightly */
  padding: 10px;
  background-color: transparent;
  z-index: 2;
}

.splash-text {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  color: #4b0082;
  text-shadow: 0 0 5px #1e90ff; /* Reduced glow */
}

.splash-copyright {
  position: absolute;
  bottom: 20px; /* Move it up slightly */
  font-size: 0.9rem;
  color: #4b0082;
  text-shadow: 0 0 5px #1e90ff; /* Reduced glow */
}

