.footer1 {
  position: fixed;
  top: 10px; /* Adjust as needed */
  left: 10px; /* Adjust as needed */
  background-color: #f0f0f000;
  padding: 10px;
  border: 3px transparent #ccc;
 border-top-right-radius: 20px;
 border-top-left-radius: 20px;
 border-bottom-right-radius: 20px;
 border-bottom-left-radius: 20px;
}
.footer {
  position: fixed;
  top: 10px; /* Adjust as needed */
  right: 10px; /* Adjust as needed */
  background-color: #f0f0f000;
  padding: 10px;
  border: 3px transparent #ccc;
  border-top-right-radius: 20px;
 border-top-left-radius: 20px;
 border-bottom-right-radius: 20px;
 border-bottom-left-radius: 20px;
}
body {
  font-family: 'Kanit', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 1px;
  color: #ffffff00;
  /* Set the GIF as the background */
  background-image: url('rain.gif');
  /* Ensure the background covers the entire viewport */
  background-size: cover;
  /* Optionally, you can specify how the background should repeat */
  background-repeat: repeat;
}


  .title {
      font-size: 4em;
      font-weight: bold;
      margin-bottom: 30px; 
      text-align: center;
      text-transform: uppercase;
      color: #ccc; /* Light gray title */
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); 
  }

  .description {
      max-width: 600px;
      margin-bottom: 40px; 
      text-align: center;
      line-height: 1.6;
      color: #999; /* Light gray text */
  }

  .button-container {
      display: flex;
      flex-wrap: wrap; 
      justify-content: center;
      margin-top: 20px; 
  }

  .button {
      background-color: transparent;
      border: 2px solid #ccc; /* Light gray border */
      color: #ccc;
      font-size: 1.2em; 
      font-weight: bold; 
      padding: 15px 30px; 
      margin: 10px;
      text-decoration: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease, opacity 0.3s ease;
      border-radius: 25px; /* Rounded button */
  }

  .button::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 300%;
      height: 300%;
      background-color: rgba(255, 255, 255, 0.1);
      transition: width 0.3s ease, height 0.3s ease;
      border-radius: 50%;
      z-index: 0;
      transform: translate(-50%, -50%);
  }

  .button:hover::before {
      width: 0;
      height: 0;
  }

  .button:hover {
      transform: scale(1.1); /* Increase button size on hover */
      opacity: 0.8; /* Reduce opacity on hover */
      color: #fff; /* Change text color on hover */
      border-color: #fff; /* Change border color on hover */
  }

  .button span {
      position: relative;
      z-index: 1;
  }
    .butt-container {
      display: flex;
      flex-wrap: wrap; 
      justify-content: center;
      margin-top: 20px; 
  }

  .butt {
      background-color: transparent;
      border: 2px solid #ccc; /* Light gray border */
      color: #ccc;
      font-size: 1.2em; 
      font-weight: bold; 
      padding: 15px 30px; 
      margin: 10px;
      text-decoration: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease, opacity 0.3s ease;
      border-radius: 25px; /* Rounded button */
      height: 23px;
      text-align: center;
      height: 60px;
  }

  .butt::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 300%;
      height: 200%;
      background-color: rgba(255, 255, 255, 0.1);
      transition: width 0.3s ease, height 0.3s ease;
      border-radius: 50%;
      z-index: 0;
      transform: translate(-50%, -50%);
  }

  .butt:hover::before {
      width: 0;
      height: 0;
  }

  .butt:hover {
      transform: scale(1.1); /* Increase button size on hover */
      opacity: 0.8; /* Reduce opacity on hover */
      color: #fff; /* Change text color on hover */
      border-color: #fff; /* Change border color on hover */
  }

  .butt span {
      position: relative;
      z-index: 1;
  }
/* Reset 
some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
body {
  font-family: "Arial", sans-serif;
  background: #f5f5f5;
  color: #000000;
  text-align: center;
  transition: background-color 0.5s, color 0.5s;
}

/* Dark Mode Styles */
body.dark-mode {
  background: #222;
  color: #fff;
}

/* Transitions */
body,
body.dark-mode {
  transition: background-color 0.5s, color 0.5s;
  transition-timing-function: ease-in-out;
}

/* Dark Mode Switch */
.dark-mode-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
  margin-right: 10px;
  font-size: 24px;
}

.dark-mode-switch input[type="checkbox"] {
  width: 0;
  height: 0;
  position: absolute;
  visibility: hidden;
}

.toggle-label {
  display: block;
  width: 45px;
  height: 20px;
  background: #ccc;
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.5s;
}

.toggle-label::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
}

input[type="checkbox"]:checked + .toggle-label {
  background-color: #666;
}

input[type="checkbox"]:checked + .toggle-label::before {
  transform: translateX(15px);
  background-color: #ff9900;
}

/* Header Styles */
header {
  background: linear-gradient(to bottom, #000000, #000000);
  color: #fff;
  text-align: center;
  padding: 16px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  position: relative;
}

header h1 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px #000;
}

/* Navigation Styles */
nav {
position:absolute;
width: 100%;
height: 30px;
top: 0;
background: #000000;
box-shadow: 0px 5px 10px rgb(0, 0, 0);
border-radius: 0 0 8px 8px;
z-index: 1;
}

nav ul {
list-style: none;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}

nav li {
margin-right: 10px;
margin-bottom: 10px;
}

nav a {
text-decoration: none;
color: #9000ff;
font-weight: 600;
transition: color 0.3s;
text-transform: uppercase;
font-size: 1.2rem;
position: relative;
letter-spacing: 1px;
text-shadow: 1px 1px 2px #000;
}

nav a::before {
content: "";
width: 100%;
height: 2px;
background: #aa00ff;
position: absolute;
bottom: -3px;
left: 0;
transform: scaleX(0);
transform-origin: right;
transition: transform 0.3s ease-in-out;
}

nav a:hover::before {
transform: scaleX(1);
transform-origin: left;
}
#ui{
font-size: smaller;
}

/* Main Content Styles */
main {
  max-width: 100%;
  margin: 16px auto;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

/* Game Card Styles */
.game-card {
  border: 1px solid #ddd;
  margin: 16px 0;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-8px);
}

.game-card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.game-card h3 {
  font-size: 1.4rem;
  margin-top: 12px;
  color: #333;
  font-weight: 700;
}

.game-card p {
  font-size: 1rem;
  color: #666;
  margin-top: 12px;
}

/* Modern Button Style */
.game-card a {
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(135deg, #000000, #511e66);
  color: #fff;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 20px;
  margin-top: 12px;
  transition: background 0.3s, transform 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.game-card a:hover {
  background: linear-gradient(135deg, #000000, #6d6d6d);
  transform: scale(1.05);
}

/* Footer Styles */
footer {
  background: black;
  color: #fff;
  text-align: center;
  padding: 12px 0;
  box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.2);
}

/* Additional Styles for Hover and Focus Effects */
a:hover,
a:focus {
  text-decoration: underline;
}

/* Stylish Hover Effect for Game Cards */
.game-card:hover img {
  transform: scale(1.05);
}

.game-card:hover h3 {
  color: #ffffff;
}

/* Navigation bar styles */
nav {
  display: flex;
  justify-content: space-between;
  background-color: #000000ce;
  color: white;
  padding: 1em;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

nav ul {
  display: flex;
  list-style-type: none;
  flex-wrap: wrap;
}

nav li {
  margin-right: 10px;
  margin-bottom: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Sort by name button styles */
.sort-button {
  background-color: #DDDDDD;
  border: none;
  border-radius: 4px;
  color: black;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
  margin: 1em;
  padding: 0.5em;
  transition: background-color 0.2s;
}

.sort-button:hover {
  background-color: #BBBBBB;
}

/* Game card styles */
.game-card {
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  margin: 10px; /* Adjusted margin */
  margin-top: 70px; /* Added top margin */
  margin-bottom: 70px; /* Added bottom margin */
  overflow: hidden;
  width: 350px;
}


.game-card h3 {
  background-color: #000000;
  color: rgb(235, 230, 230);
  font-family: sans-serif;
  font-size: 1.2rem;
  margin: 0;
  padding: 1em;
  text-align: center;
  text-transform: uppercase;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 2.0;
}

.game-card p {
  font-family: sans-serif;
  font-size: 1rem;
  margin: 1em;
}

.game-card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 8px solid #000000;
}

.game-card a {
  background-color: #000000;
  color: white;
  margin: 1em;
  padding: 0.5em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
}

.game-card a:hover {
  background-color: rgb(0, 0, 0);
}

/* A to Z Sorting */
@media (min-width: 768px) {
  #all-games {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .game-card {
    width: calc(25% - 32px);
  }

  .game-card:nth-child(even) {
    float: right;
    margin-right: 0;
    margin-left: 16px;
  }

  .game-card:nth-child(odd) {
    float: left;
    margin-right: 16px;
    margin-left: 0;
  }
}

/* Image rendering optimization */
img {
  image-rendering: optimizeQuality;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

/* Scroll, Redirect, and Proxy Buttons */
#scrollButton,
#redirectButton,
#proxy {
  position: fixed;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 999;
  padding: 10px 20px; /* Adjusted padding for a larger button */
  font-size: 10px; /* Adjusted font size for better visibility */
  border: 2px solid black;
  border-radius: 20px;
  cursor: pointer;
  height: 50px;
  width: 400px;
}

#scrollButton {
  left: 50%;
  background-color: rgb(54, 7, 64);
  color: #fff;
}



#redirectButton,
#proxy {
  display: none;
}

@media (min-width: 768px) {
  #redirectButton,
  #proxy {
    display: block;
  }
}


/* Search Container Styles */
.search-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 16px auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
  background-color: #333;
}

/* Search Input Styles */
#searchInput {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  border-radius: 50px;
  font-size: 14px;
  background-color: #555;
  color: #fff;
}

/* Search Button Styles */
.search-container button {
  padding: 12px 20px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s;
}

/* Button Hover Effect */
.search-container button:hover {
  background-color: #333;
}




/* Color Palette Styles */
#color-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.color-box {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin: 8px;
  cursor: pointer;
  border: 2px solid rgb(0, 0, 0);
}

.text {
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
}

#button-container {
  margin-top: 16px;
}

#saveColorBtn,
#removeColorBtn {
  padding: 8px 16px;
  margin: 8px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
}

#saveColorBtn {
  background-color: #4caf50;
  color: #fff;
}

#removeColorBtn {
  background-color: #ff0000;
  color: #fff;
}

#saveColorBtn:hover {
  background-color: #45a049;
}

#removeColorBtn:hover {
  background-color: #e60000;
}

/* styles-desktop.css */
@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }
}
/*slide mobile game cards */
    .game-container {
      width: 100%;
      overflow-x: scroll; /* Added scroll property */
      white-space: nowrap;
      border: 1px solid #ccc;
      display: flex; /* Added flex property for better alignment */
  }

  .retro-cards {
      display: flex;
      flex-direction: row;
  }

  .retro-card {
      background-color: rgb(255, 255, 255);
      border-radius: 20px;
      box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
      margin: 1em 0.5em;
      overflow: hidden;
      width: 250x;
  }

  .retro-card img {
      max-width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 5px;
      border: 10px solid #000000;
      transition: transform 0.3s ease;
  }

  .retro-card:hover img {
      transform: scale(1.05);
  }

  .retro-card h3 {
      background-color: #000000;
      color: rgb(235, 230, 230);
      font-family: sans-serif;
      font-size: 1.1em;
      margin: 0;
      padding: 1.5em;
      text-align: center;
      text-transform: uppercase;
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
      border-bottom-left-radius: 100px;
      border-bottom-right-radius: 100px;
      font-weight: bold;
      letter-spacing: 1px;
      line-height: 2.0;
      transition: color 0.3s;
  }

  .retro-card:hover h3 {
      color: #ffffff;
  }

  .retro-card p {
      font-family: sans-serif;
      font-size: 1em;
      margin: 1em;
  }

  .retro-card a {
      background-color: #000000;
      color: white;
      margin: 1em;
      padding: 0.5em;
      text-align: center;
      text-decoration: none;
      transition: background-color 0.2s;
  }

  .retro-card:hover {
      transform: translateY(-10px);
  }

  .retro-card a:hover {
      background-color: rgb(0, 0, 0);
  }


  #ret{
      font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
      font-style: bold;
  }
/* Add this to your existing CSS */

