@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap");
@keyframes rgb-flicker {
  0% {
    color: #ff0000;
  }
  33% {
    color: #ffff00;
  }
  66% {
    color: #00ff00;
  }
  100% {
    color: #00ffff;
  }
}
@keyframes spin {
  form {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
html {
  height: 100%;
  width: 100%;
}
body {
  height: 100%;
  width: 100%;
  background-image: url(img/wp8012726-colorful-city-hd-wallpapers.jpg);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 50, 0.4);
  z-index: -1;
}
.background-container {
  height: 100%;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}
.content-container {
  position: relative;
  z-index: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.main-title {
  font-family: "pixelify sans", sans-serif;
  font-size: 7em;
  font-weight: 900;
  color: #fff000;
  margin-bottom: 10px;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000,
    -2px 2px 0 #000;
  animation-name: rgb-flicker;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  text-align: center;
}
.subtitle {
  font-family: "pixelify sans", sans-serif;
  font-size: 1.7em;
  color: #ddd;
  letter-spacing: 4px;
  text-align: center;
}
.navbar {
  position: fixed;
  top: 0;
  right: 20px;
  width: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.nav-icons-container {
  display: flex;
  flex-direction: column;
  background-color: rgb(37, 37, 37);
  border-radius: 50px;
  padding: 15px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-icon {
  display: block;
  color: #ffffff;
  font-size: 20px;
  margin: 10px 0;
  padding: 5px;
  text-decoration: none;
  text-align: center;
  transition: color 0.3s;
}

.nav-icon:hover {
  animation-name: rgb-flicker;
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.card-gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}
.game-card {
  width: 200px;
  min-height: 350px;
  background-color: #202020;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}
.game-card::after,
.game-card::before {
  --angle: 0deg;
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  border-radius: 20px;
  background-image: conic-gradient(
    from var(--angle),
    #ff0000,
    #ff7f00,
    #ffff00,
    #00ff00,
    #0000ff,
    #4b0082,
    #9400d3,
    #ff0000
  );
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  animation: 3s spin linear infinite;
}
.game-card::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}
.card-image-placeholder {
  width: 100%;
  height: 250px;
  background-color: #90ee90;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}
.card-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.card-title {
  color: white;
  font-size: 1.2em;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.card-description {
  color: #dddddd;
  font-size: 0.9em;
  margin: 0;
}
.card-button {
  transform: translate(-50%, 125%);
  width: 60%;
  border-radius: 1rem;
  background-color: #202020;
  color: #fff;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  position: absolute;
  left: 50%;
  bottom: 0;
  opacity: 0;
  transition: 0.3s ease-out;
}
.game-card:hover .card-button {
  transform: translate(-70% 70%);
  opacity: 100;
}
.none {
  height: 50px;
}
a:link,
a:visited {
  color: white;
  text-decoration: none;
}

@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 10px;
    right: 50%;
    transform: translateX(50%);
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: center;
  }

  .nav-icons-container {
    flex-direction: row;
    padding: 10px 15px;
  }
  .nav-icon {
    margin: 0 8px;
    font-size: 18px;
  }
  .main-title {
    font-size: 4em;
    letter-spacing: 2px;
    margin-top: 100px;
  }
  .subtitle {
    font-size: 1.2em;
    letter-spacing: 2px;
  }
  .card-gallery-container {
    padding: 15px;
    gap: 15px;
  }
  .game-card {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
    min-height: auto;
  }
  .card-image-placeholder {
    height: 180px;
  }
  .card-button {
    opacity: 1;
    transform: translate(-50%, 20%);
    bottom: 15px;
    position: relative;
    margin-top: 20px;
    left: 135px;
  }
}
