@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
* {
  font-family: 'Poppins', sans-serif;
  z-index: 0;
}
html, body {
  width: 100%;
  height: auto;
}
body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  color: white;
  display: flex;
}
.sidebar {
  width: 60px;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(15px);
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  border-right: 4px solid;
  border-image-source: linear-gradient(270deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffb3, #0033ff, #7a00ff, #ff00f2);
  border-image-slice: 1;
  animation: borderAnimation 4s linear infinite;
  z-index: 999;
}
@keyframes borderAnimation {
  0% { border-image-source: linear-gradient(0deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffb3, #0033ff, #7a00ff, #ff00f2); }
  25% { border-image-source: linear-gradient(90deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffb3, #0033ff, #7a00ff, #ff00f2); }
  50% { border-image-source: linear-gradient(180deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffb3, #0033ff, #7a00ff, #ff00f2); }
  75% { border-image-source: linear-gradient(270deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffb3, #0033ff, #7a00ff, #ff00f2); }
  100% { border-image-source: linear-gradient(360deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffb3, #0033ff, #7a00ff, #ff00f2); }
}
.sidebar:hover {
  width: 200px;
}
.menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 40px;
  height: 50px;
  margin: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: width 0.3s ease, background 0.3s ease;
  color: white;
  text-decoration: none;
  font-size: 22px;
  position: relative;
  padding-left: 10px;
}
.menu-item i {
  font-size: 24px;
}
.menu-item span {
  position: absolute;
  left: 60px;
  white-space: nowrap;
  font-size: 18px;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.3s ease, opacity 0.3s ease;
}
.sidebar:hover .menu-item {
  width: 160px;
}
.sidebar:hover .menu-item span {
  width: 100%;
  opacity: 1;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.2);
}
.content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  text-shadow: 0px 0px 10px green;
  font-size: 2.5rem;
  flex-direction: column;
}
#element-h1 {
  color: white;
  text-align: center;
  text-shadow: 0px 0px 10px green;
  font-size: 2.5rem;
  user-select: none;
}
#element-h1, #element {
  text-align: center;
  text-shadow: 0px 0px 10px green;
  font-size: 2.5rem;
}
#element {
  color: green;
  text-align: center;
  text-shadow: 0px 0px 10px green;
  font-size: 5rem;
  user-select: none;
}
.typed-cursor {
  animation: blink 0.7s infinite;
  color: green;
  font-size: 5rem;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.games-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  width: 80%;
  justify-content: center; 
  z-index: -1;
}
.game-item {
  width: 220px;
  height: 220px;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 15px rgba(0, 255, 0, 0.6);
}
.game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(70%);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.game-item:hover img {
  filter: brightness(50%);
  transform: scale(1.05);
}
h3 {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2, 166, 70, 0.8);
  color: white;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 20px;
  border: 3px solid white;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.game-item:hover h3 {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}
.play-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: rgba(2, 166, 70, 0.9);
  color: white;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  cursor: pointer;
  text-decoration: none;
}
.game-item:hover .play-button {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}
.game-container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  padding: 20px;
}
