body, html {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #191919;
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

a {
    text-decoration: none; /* Removes underline */
    color: inherit; /* Inherits text color from parent */
}

.container {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%; /* Use full height of the viewport */
  position: relative;
}

.app-header {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
/*  background-color: #444;*/
  flex: 0 0 auto; /* Fixed height */
}

.game-categories {
  flex: 0 0 auto; /* Fixed height */
  padding: 10px;
  display: inline-block;
  text-align: center;
  justify-content: center;
  margin-bottom: 0px;
  /*background-color: #444;*/ 
  /*box-shadow: 0px 10px 15px rgba(255, 255, 255, 0.3);*/ /* Add shadow */
  border-bottom: 2px solid rgb(207, 207, 207);
  border-bottom-right-radius: 40%;
  border-bottom-left-radius: 40%;
  max-width: 500px;
  margin: 0 auto;
}

.category-btn {
  background-color: #1B1B1B;
  margin: 3px;
  white-space: nowrap;
  color: #fff;
  border: 1.5px solid #ccc;
  padding: 7px;
  display: inline-block;
  text-align: center; /* Center text */
  font-size: 16px; /* Ensure text size doesn’t scale excessively */
  border-radius: 3vw;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight */

}
.category-btn:hover{
  background-color: #2c2c2c;
}
.category-btn.active {
  background-color: #2c2c2c; /* Example: Gold background */
}

.featured-games {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 0 auto;
}

.game-card {
  background-color: #0D0D0D;
  padding: 10px;
  border-radius: 10px;
  text-align: center;
  max-width: 200px;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight */

}
.game-card:hover{
  background-color: #1d1d1d;
}

.game-icon {
/*  background-color: #AFAFAF;*/
  font-size: 32px;
  margin-bottom: 10px;
}

.game-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.game-details {
  font-size: 14px;
  color: #aaa;
}

.game-times {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}
.game-played-btn {
  width: 30px;
  height: 30px;
  position:absolute;
  border-radius: 15%;
  align-items: center; 
  justify-content: center; 
  display: flex; 
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight */
}
.game-favorite-btn {
  width: 30px;
  height: 30px;
  border-radius: 15%;
  position: absolute; 
  top: 10px; 
  right: 10px; 
  margin: 0;
  align-items: center; 
  justify-content: center; 
  display: flex; 
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight */
}

#scrollTopButton{
  width: 5vh;
  height: 5vh;
  /*background: radial-gradient(#b3b3b3, #a0a0a0);*/
  background-color: #1B1B1B;
  border: 1px solid white;
  position: fixed;
  border-radius: 25vh;
  top: 92%;
  left: 85%;
  z-index: 5;
  font-weight: bolder;
  font-size: 3vh;
  cursor: pointer;
  display:none;
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight */
}

.info-btn{
  width: 5vh;
  height: 5vh;
  /*background: radial-gradient(#b3b3b3, #a0a0a0);*/
  background-color: #1B1B1B;
  position:absolute;
  top: 1%;
  left: 88%;
  border-radius: 25vh;
  z-index: 5;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent; /* Removes tap highlight */

}
.info-btn:hover{
  transform: scale(1.1);

}

.open-game{
  height: 100%;
}

.game-info{
  height: 88%;
}

/* Default scrollbar styles (similar to Chrome's dark mode) */
body::-webkit-scrollbar {
  width: 12px; /* Adjust width as needed */
}

body::-webkit-scrollbar-track {
  background: #121212; /* Dark background for track */
}

body::-webkit-scrollbar-thumb {
  background-color: #505050; /* Darker thumb color */
  border-radius: 6px; /* Rounded scrollbar thumb */
  border: 3px solid #121212; /* Border to match the track */
}

body::-webkit-scrollbar-thumb:hover {
  background-color: #707070; /* Lighter color on hover */
}

.games-num{
  margin: 0;
  padding: 0;
  margin-top: 5px;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #1B1B1B;
  margin: 10vh auto; /* 15% from the top and centered */
  padding: 0px 12px;
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
  color: white;
  border: 2px solid;
  border-radius: 2vh;
  z-index: 5;
  text-align: center;
  overflow: hidden;

}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 48px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.donation-btn{
  margin-top: 10px;
  width: 100px;
  height: 50px;
  border-radius: 2vh;
  background-color: rgb(61, 61, 241);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.donation-btn:hover{
  background-color: rgb(97, 97, 240);
}