@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;700&display=swap");

body {
  font-family: "Ubuntu", sans-serif;
  text-align: center;
  background-color: #000;
  color: #fff;
  margin: 0;
  padding: 0;
}

.container {
  padding: 20px;
}

.game-link {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.game-link:hover {
  outline: 2px solid white;
}

.game-links {
  margin-top: 20px;
  max-height: 30vh;
  overflow-y: auto;
  overflow-x: hidden;
}

#searchG {
  margin-top: 20px;
  width: 50%;
  padding: 10px;
  border-radius: 20px;
}

#topbar {
  width: 100vw;
  background-color: #333;
  padding: 10px;
}

.topbar-link {
  display: inline-block;
  margin: 0 10px;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.topbar-link:hover {
  outline: 2px solid white;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.popupBox {
  background: white;
  border-radius: 8px;
  padding: 20px;
  max-width: 400px;
  width: 90%;
  /* Ensures responsiveness */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  /* Ensure positioning doesn't interfere */
  color: black;
}

.mouseMenu {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px;
  border-radius: 5px;
  border: white 1px solid;
  font-size: 14px;
  pointer-events: none;
}

.rainbow-text {
  background-image: repeating-linear-gradient(45deg, violet, indigo, blue, green, yellow, orange, red, violet, indigo, blue);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 7.5s linear infinite;
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}