/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Gilroy-Medium, sans-serif;
  font-size: 14px;
}

body,
html {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.mobile-only {
  display: none;
}

/* Display the mobile layout only on smaller screens */
@media (max-width: 768px) {
  .mobile-only {
    display: none;
  }

  .desktop-message {
    display: none;
  }

  header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 120px; /* Define header height */
    background-color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }

  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }

  .logo {
    height: 40px;
  }

  .avatar {
    height: 40px;
    border-radius: 50%;
  }

  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }

  .nav-bar ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: space-evenly;
  }

  .nav-item {
    font-size: 14px;
    font-weight: bold;
    color: #3d3b3b;
    position: relative;
  }

  .nav-item a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
  }

  .nav-item.active a {
    color: #1c599c;
    border-bottom: 3px solid #1c599c;
    width: auto;
    padding-bottom: 8px;
  }

  .nav-item.active {
    position: relative;
  }

  .nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 10%;
    width: 80%;
    height: 3px;
    padding: 5px;
  }

  /* Main Container */
  main {
    position: absolute;
    top: 120px;
    bottom: 60px;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
  }

  /* Banner Section */
  .banner {
    margin-bottom: 20px;
  }

  .banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner-image {
    width: 100%;
    border-radius: 8px;
  }

  .banner-text {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }

  /* Featured Game Section */
  .featured-game {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .featured-game-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  .game-minions h3 {
    margin: 0;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #3d3b3b;
  }

  .game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }

  .play-button {
    margin-left: auto; /* Push the button to the far right */
    background-color: #1c599c;
    color: white;
    padding: 5px 35px;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    font-weight: bold;
  }

  /* Suggested Section */
  .suggested {
    margin-bottom: 20px;
  }

  .header {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
  }

  .suggested-header {
    margin-left: 5px;
    font-size: 1.2em;
    white-space: nowrap;
    color: #1d1c1c;
    font-weight: 100;
  }

  .suggested-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .suggested-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
  }

  .suggested-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .details h3 {
    margin: 0;
    font-size: 1em;
    white-space: nowrap;
    color: #3d3b3b;
  }

  .details p {
    margin: 5px 0 0;
    color: #888;
  }

  /* Games Section */
  .games {
    margin-bottom: 20px;
  }

  .category-title {
    display: flex;
    justify-content: space-between;
  }

  .games h2 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #3d3b3b;
  }

  /* Grid layout for games */
  .games-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
  }

  .game-card {
    background-color: #fff;
    border-radius: 8px;
    width: calc(33.33% - 10px); /* Adjust width for 3 items per row */
    box-sizing: border-box;
    text-align: center;
  }

  .game-card img {
    width: 100%; /* Full width of the card */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Round the top corners */
    display: block; /* Ensure it behaves like a block-level element */
    overflow: hidden; /* Ensure the image respects the border-radius */
  }

  .game-card .game-details h3 {
    margin: 0;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #3d3b3b;
  }

  .game-card .game-details p {
    margin: 5px 0 0;
    color: #888;
    font-size: 0.9em;
    /* white-space: nowrap; */
  }

  .fullscreen-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .fullscreen-game iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  .exit-fullscreen {
    font-size: 24px;
    color: white;
    cursor: pointer;
    background-color: #1c599c;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 6px;
  }

  .no-scroll {
    overflow: hidden;
  }

  footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 70px;
    background-color: #fff;
    z-index: 1000;
  }

  .footer-item {
    text-align: center;
    flex: 1; /* Make items evenly spaced */
    cursor: pointer;
  }

  .footer-item img {
    height: 25px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
  }

  .footer-item.active img {
    transform: scale(1.2);
  }

  .footer-item p {
    font-size: 12px;
    color: #777;
    margin: 0;
    transition: color 0.3s ease;
  }

  .footer-item.active p {
    color: #000;
  }

  .footer-item:hover img {
    transform: scale(1.1);
  }

  .footer-item:hover {
    color: #333;
  }

  /* Desktop message styling */
  .desktop-message {
    display: none;
    text-align: center;
    font-size: 18px;
    color: #666;
    padding: 20px;
  }
}

/* Show the desktop message and hide mobile layout on larger screens */
@media (min-width: 769px) {
  .desktop-message {
    display: block;
    background-color: #416475;
    height: 100%;
  }
}

@import url("https://fonts.googleapis.com/css?family=Montserrat:400,600,700");
@import url("https://fonts.googleapis.com/css?family=Catamaran:400,800");
.error-container {
  text-align: center;
  font-size: 180px;
  font-family: "Catamaran", sans-serif;
  font-weight: 800;
}
.error-container > span {
  display: inline-block;
  line-height: 0.7;
  position: relative;
  color: #ffb485;
}
.error-container > span {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
.error-container > span:nth-of-type(1) {
  color: #d1f2a5;
  animation: colordancing 4s infinite;
}
.error-container > span:nth-of-type(3) {
  color: #f56991;
  animation: colordancing2 4s infinite;
}
.error-container > span:nth-of-type(2) {
  width: 120px;
  height: 120px;
  border-radius: 999px;
}
.error-container > span:nth-of-type(2):before,
.error-container > span:nth-of-type(2):after {
  border-radius: 0%;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: inherit;
  height: inherit;
  border-radius: 999px;
  box-shadow: inset 30px 0 0 rgba(209, 242, 165, 0.4),
    inset 0 30px 0 rgba(239, 250, 180, 0.4),
    inset -30px 0 0 rgba(255, 196, 140, 0.4),
    inset 0 -30px 0 rgba(245, 105, 145, 0.4);
  animation: shadowsdancing 4s infinite;
}
.error-container > span:nth-of-type(2):before {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}

.screen-reader-text {
  position: absolute;
  top: -9999em;
  left: -9999em;
}
@keyframes shadowsdancing {
  0% {
    box-shadow: inset 30px 0 0 rgba(209, 242, 165, 0.4),
      inset 0 30px 0 rgba(239, 250, 180, 0.4),
      inset -30px 0 0 rgba(255, 196, 140, 0.4),
      inset 0 -30px 0 rgba(245, 105, 145, 0.4);
  }
  25% {
    box-shadow: inset 30px 0 0 rgba(245, 105, 145, 0.4),
      inset 0 30px 0 rgba(209, 242, 165, 0.4),
      inset -30px 0 0 rgba(239, 250, 180, 0.4),
      inset 0 -30px 0 rgba(255, 196, 140, 0.4);
  }
  50% {
    box-shadow: inset 30px 0 0 rgba(255, 196, 140, 0.4),
      inset 0 30px 0 rgba(245, 105, 145, 0.4),
      inset -30px 0 0 rgba(209, 242, 165, 0.4),
      inset 0 -30px 0 rgba(239, 250, 180, 0.4);
  }
  75% {
    box-shadow: inset 30px 0 0 rgba(239, 250, 180, 0.4),
      inset 0 30px 0 rgba(255, 196, 140, 0.4),
      inset -30px 0 0 rgba(245, 105, 145, 0.4),
      inset 0 -30px 0 rgba(209, 242, 165, 0.4);
  }
  100% {
    box-shadow: inset 30px 0 0 rgba(209, 242, 165, 0.4),
      inset 0 30px 0 rgba(239, 250, 180, 0.4),
      inset -30px 0 0 rgba(255, 196, 140, 0.4),
      inset 0 -30px 0 rgba(245, 105, 145, 0.4);
  }
}
@keyframes colordancing {
  0% {
    color: #d1f2a5;
  }
  25% {
    color: #f56991;
  }
  50% {
    color: #ffc48c;
  }
  75% {
    color: #effab4;
  }
  100% {
    color: #d1f2a5;
  }
}
@keyframes colordancing2 {
  0% {
    color: #ffc48c;
  }
  25% {
    color: #effab4;
  }
  50% {
    color: #d1f2a5;
  }
  75% {
    color: #f56991;
  }
  100% {
    color: #ffc48c;
  }
}

/* demo stuff */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
/* body {
background-color: #416475;
margin-bottom: 50px;
} */
html,
button,
input,
select,
textarea {
  font-family: "Montserrat", Helvetica, sans-serif;
  color: #92a4ad;
}
h1 {
  text-align: center;
  margin: 30px 15px;
}
.zoom-area {
  max-width: 490px;
  margin: 30px auto 30px;
  font-size: 19px;
  text-align: center;
}
.link-container {
  text-align: center;
}
a.more-link {
  text-transform: uppercase;
  font-size: 13px;
  background-color: #92a4ad;
  padding: 10px 15px;
  border-radius: 0;
  color: #416475;
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
  line-height: 1.5;
  text-decoration: none;
  margin-top: 50px;
  letter-spacing: 1px;
}

/* 
Game skeleton */

/* Skeleton Loader Styles */
.skeleton-loader {
  background: #e0e0e0;
  border-radius: 8px;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-text {
  background: #e0e0e0;
  height: 20px;
  width: 80%;
  border-radius: 4px;
  margin: 10px 0;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-image {
  background: #e0e0e0;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-button {
  background: #e0e0e0;
  width: 80%;
  height: 30px;
  border-radius: 4px;
  animation: pulse 1.5s infinite ease-in-out;
  margin-top: 10px;
}

@keyframes pulse {
  0% {
    background-color: #e0e0e0;
  }
  50% {
    background-color: #c6c6c6;
  }
  100% {
    background-color: #e0e0e0;
  }
}

.skeleton-loader.banner-skeleton {
  width: 100%;
  height: 200px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.skeleton-loader.banner-skeleton-btn {
  width: 150px;
  height: 40px;
  background: #aaa;
  border-radius: 5px;
  margin: 10px auto;
}

/* Keyframes for the skeleton animation */
@keyframes skeleton {
  0% {
    background-color: #e0e0e0;
  }
  50% {
    background-color: #f0f0f0;
  }
  100% {
    background-color: #e0e0e0;
  }
}

.search-container {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.search-bar {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  width: 100%;
  flex-wrap: wrap;
}

.page-button {
  background-color: #333;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.page-button.active {
  background-color: #f90;
}

.page-button:hover {
  background-color: #555;
}
#loader {
  display: block;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: 1s linear infinite spin;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

.mobile-div {
  max-width: 768px;
  /* Typical mobile width */
  width: 100%;
  margin: 0 auto;
  header {
    position: relative;
    top: 0;
    width: 100%;
    height: 120px; /* Define header height */
    background-color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
  }

  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
  }

  .logo {
    height: 40px;
  }

  .avatar {
    height: 40px;
    border-radius: 50%;
  }

  .nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }

  .nav-bar ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: space-evenly;
  }

  .nav-item {
    font-size: 14px;
    font-weight: bold;
    color: #3d3b3b;
    position: relative;
  }

  .nav-item a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
  }

  .nav-item.active a {
    color: #1c599c;
    border-bottom: 3px solid #1c599c;
    width: auto;
    padding-bottom: 8px;
  }

  .nav-item.active {
    position: relative;
  }

  .nav-item.active::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 10%;
    width: 80%;
    height: 3px;
    padding: 5px;
  }

  /* Main Container */
  main {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    height: calc(
      100vh - 180px
    ); /* Adjust height based on header (120px) and footer (60px) */
  }

  /* Banner Section */
  .banner {
    margin-bottom: 20px;
  }

  .banner-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .banner-image {
    width: 100%;
    border-radius: 8px;
  }

  .banner-text {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }

  /* Featured Game Section */
  .featured-game {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .featured-game-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  .game-minions h3 {
    margin: 0;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #3d3b3b;
  }

  .game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }

  .play-button {
    margin-left: auto; /* Push the button to the far right */
    background-color: #1c599c;
    color: white;
    padding: 5px 35px;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    font-weight: bold;
  }

  /* Suggested Section */
  .suggested {
    margin-bottom: 20px;
  }

  .header {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
  }

  .suggested-header {
    margin-left: 5px;
    font-size: 1.2em;
    white-space: nowrap;
    color: #1d1c1c;
    font-weight: 100;
  }

  .suggested-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .suggested-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
  }

  .suggested-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
  }

  .details h3 {
    margin: 0;
    font-size: 1em;
    white-space: nowrap;
    color: #3d3b3b;
  }

  .details p {
    margin: 5px 0 0;
    color: #888;
  }

  /* Games Section */
  .games {
    margin-bottom: 20px;
  }

  .category-title {
    display: flex;
    justify-content: space-between;
  }

  .games h2 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #3d3b3b;
  }

  /* Grid layout for games */
  .games-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
  }

  .game-card {
    background-color: #fff;
    border-radius: 8px;
    width: calc(33.33% - 10px); /* Adjust width for 3 items per row */
    box-sizing: border-box;
    text-align: center;
  }

  .game-card img {
    width: 100%; /* Full width of the card */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Round the top corners */
    display: block; /* Ensure it behaves like a block-level element */
    overflow: hidden; /* Ensure the image respects the border-radius */
  }

  .game-card .game-details h3 {
    margin: 0;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #3d3b3b;
  }

  .game-card .game-details p {
    margin: 5px 0 0;
    color: #888;
    font-size: 0.9em;
    /* white-space: nowrap; */
  }

  .fullscreen-game {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  .fullscreen-game iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  .exit-fullscreen {
    font-size: 24px;
    color: white;
    cursor: pointer;
    background-color: #1c599c;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 6px;
  }

  .no-scroll {
    overflow: hidden;
  }

  footer {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: absolute; /* Keep it inside .main-container */
    bottom: 0;
    width: 100%;
    max-width: 768px; /* Ensure it doesn’t exceed .main-container */
    height: 70px;
    background-color: #fff;
    z-index: 1000;
  }

  .footer-item {
    text-align: center;
    flex: 1; /* Make items evenly spaced */
    cursor: pointer;
  }

  .footer-item img {
    height: 25px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
  }

  .footer-item.active img {
    transform: scale(1.2);
  }

  .footer-item p {
    font-size: 12px;
    color: #777;
    margin: 0;
    transition: color 0.3s ease;
  }

  .footer-item.active p {
    color: #000;
  }

  .footer-item:hover img {
    transform: scale(1.1);
  }

  .footer-item:hover {
    color: #333;
  }
}

@media (max-width: 768px) {
  /* Tablet and smaller */
  .mobile-div {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
}
