
:root {
  --color-1: #0a192f;
  --color-2: #8b5cf6;
  --color-3: #0a192f;
  --color-4: #a78bfa;
}

#search-bar {
  background-color: #34A65F;
  border: 2px;
  border-style: solid;
  text-decoration-color: aqua;
}
.game-card {
  background-color: #0a192f;
  border-radius: 10px;
  display: inline-block;
  margin: 1em;
  overflow: hidden;
  width: 200px;
}

.game-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
}



body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0a192f;
  color: #e2e8f0;
  margin: 0;
  padding: 2em;
  /* background-image: url(tim_cheese.png);
  background-size: 100% 100%;
  background-attachment: fixed; */
  
  background: linear-gradient(45deg, var(--color-1) 0%, var(--color-1) 25%, var(--color-2) 25%, var(--color-2) 50%, var(--color-3) 50%, var(--color-3) 75%, var(--color-4) 75%, var(--color-4) 100%);
  background-size: 200% 200%;
  background-attachment: fixed; 
  animation: gradient-animation 30s ease infinite; 
}

a {
  color: #a78bfa;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

h1 {
  color: #8b5cf6;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.9);
}

hr {
  border: 1px solid #8b5cf6;
}

p {
  margin: 0.5em 0;
}

strong {
  color: #8b5cf6;
}

span {
  color: #a0aec0;
}


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

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

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


#search-bar {
  background-color: #34A65F;
  border: 2px;
  border-style: solid;
  text-decoration-color: aqua;
}
.game-card {
  background-color: #00bf63;
  border-radius: 10px;
  display: inline-block;
  margin: 1em;
  overflow: hidden;
  width: 200px;
}

.game-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    
    background: linear-gradient(135deg, #1e3c72, #2a5298, #b515ff, #2575fc);
    background-size: 400% 400%; 
    animation: gradientShift 15s ease infinite;
}

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


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #e2e8f0;
  margin: 0;
  padding: 2em;
  background-size: 150% 150%;
  background-attachment: fixed;
  animation: gradient-animation 15s ease infinite;
}

a {
  color: #fff700;

}

h1 {
  color: #34A65F;
}

hr {
  border: 1px solid #34A65F;
}

p {
  margin: 0.5em 0;
}

strong {
  color: #34A65F;
}

span {
  color: #a0aec0;
}


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

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

  100% {
    background-position: 0% 50%;
  }
}
.game-title {
  color: #fff700 !important;
  font-size: 1.2em;
  font-weight: bold;
  margin: 0.5em;
  text-align: center;
}
.backbutton {
  color: #FFFF00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  text-decoration: none;
  position:sticky; 
  top: 0;
}
body {
    font-family: 'Press Start 2P', cursive;
    background-color: #222;
    color: #fff;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to right, #14a307, #14a307);
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    text-decoration: none;
    position: sticky;
    top: 0;
    z-index: 1;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

main {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card {
    background-color: #af00e4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin: 15px;
    width: 120%;
    max-width: 600px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #ffff00;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
    border-color: #08eb00;
}

.category-card img {
    width: 100%;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 200px;
    object-fit: cover;
}

.category-card h2 {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #fff;
}

.popup {
    display: none;
    position: fixed;
    background-color: #73079e;
    padding: 20px;
    top: 10%;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    z-index: 2;
    width: 90%;
    max-width: 500px;
    height: 76%;
    overflow-y: auto;
    border: 2px solid #2ad309;
}

.popup h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
}

.popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.popup ul li {
    margin: 10px 0;
    font-size: 0.9rem;
}

.popup ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popup ul li a:hover {
    color: #ffdb58;
}

.popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.popup .close-button:hover {
    opacity: 1;
}

#search-bar {
    position: absolute;
    left: 2.5%;
    width: 90%;
    top: 17.5%;
    max-width: 300px;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 2px solid #555;
    background-color: #444;
    color: #eee;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Press Start 2P', cursive;
}

#search-bar:focus {
    border-color: #ffdb58;
    box-shadow: 0 0 5px rgba(255, 219, 88, 0.5);
}

@media (max-width: 600px) {
    header h1 {
      font-size: 1.2rem;
    }

    .category-card h2 {
      font-size: 1rem;
    }

    .popup ul li {
      font-size: 0.8rem;
    }
}

@keyframes scale-in-left {
    0% {
      transform: scale(0);
      transform-origin: 0 50%;
      left: 50%;
      opacity: 1;
    }

    100% {
      transform: scale(1);
      transform-origin: 0 50%;
      left: 58.5%;
      top: 13%;
      opacity: 1;
    }

}

@keyframes step-aside {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-350px);
      opacity: 0.5;

    }
}

@keyframes back-in-place {
    0% {
      transform: translateX(-350px);
      opacity: 0.5;
    }

    100% {
      transform: translateX(0);
      opacity: 1;
    }
}


.scale-in-left {
    animation: scale-in-left 0.75s cubic-bezier(0.445, 0.050, 0.550, 0.950) forwards;
}

#categories {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.back-in-place {
    animation: back-in-place 1.5s cubic-bezier(0.190, 1.000, 0.220, 1.000) forwards;
}

.step-aside {
    animation: step-aside 1.5s cubic-bezier(0.190, 1.000, 0.220, 1.000) forwards;
}

.clicktohide {
    z-index: 3;
    position: absolute;
    height: fit-content;
    width: 100%;
    top: 0;
    left: 0;
} 