:root {
  --white-color: #fff;
  --blue-color: #eff2f6;
  --grey-color: #707070;
  --grey-color-light: #aaa;
  --blue-color-hover: #e3e6ed;
  --link-hover: #333;
  --text-color: #141824;
  --border: #cbd0dd;
  --border-hover: #333;
  --sidebar: #fff;
  --navbar: #fff;
  --navbar-blur: rgba(255, 255, 255, 0.5);
  --button: #f5f7fa;
  --button-hover: #cbd0dd;
  --scrollbar: #fff;
  --scrollbar-thumb: rgb(170, 175, 186);
  --scrollbar-thumb-hover: #d3d6de;
  --body: #f5f7fa;
  --toast: #777;
  --toast-color: #e3e6ed;
  --sidebar-blur: rgba(255, 255, 255, 0.5);
  --selection: #141824;
  --navbar-blur-2: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(203, 208, 221, 0.75));
}

body.dark {
  --white-color: #333;
  --blue-color: #31374a;
  --grey-color: #f2f2f2;
  --grey-color-light: #aaa;
  --blue-color-hover: rgb(65, 73, 99);
  --link-hover: white;
  --text-color: #e3e6ed;
  --border: #31374a;
  --border-hover: #777;
  --sidebar: #141824;
  --navbar: #141824;
  --navbar-blur: rgba(20, 24, 36, 0.5);
  --button: #0f111a;
  --button-hover: #141824;
  --scrollbar: #141824;
  --scrollbar-thumb: #31374a;
  --scrollbar-thumb-hover: rgb(65, 73, 99);
  --toast: #31374a;
  --toast-color: #e3e6ed;
  --sidebar-blur: rgba(20, 24, 36, 0.5);
  --selection: #141824;
  --navbar-blur-2: rgba(20, 24, 36, 0.75)
}


* {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}

header {
  margin-bottom: 55px;
}

body {
  background-color: var(--navbar-blur);
  background-size: cover;
  background-repeat: no-repeat;
  overflow-x: hidden;
}


.blur {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), var(--navbar-blur));
  backdrop-filter: blur(3px);
  user-select: none;
  border-bottom: 1px solid linear-gradient(to right, rgba(0, 0, 0, 0.9), var(--navbar-blur));
  box-shadow: 0px 0px 20px -20px;
  z-index: 9999999999999999;
}



header .blur {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
}

.textNav {
  font-family: 'Press Start 2P', cursive;
  font-size: 13px;
}

header .links a {
  display: block;
  color: var(--text-color);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  margin-right: 15px;
  margin-left: 15px;
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 100px;
  transition: all 0.25s cubic-bezier(0.215, 0.610, 0.355, 1) 0ms;
}

header .links a:active {
  transform: scale(0.95);
}

header .links a:hover:not(.active) {
  background-color: var(--navbar-blur);
  color: black;
}

.active {
  background: linear-gradient(to bottom, rgba(41, 126, 151, 0.5), rgba(0, 77, 107, 0.5));
  color: #e3e6ed !important;
  transition: all 0.3s ease-in-out;
}

.active:hover {
  background-color: rgba(41, 125, 151, 0.80);
}



#myProducts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  flex-direction: row;
}

.links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  width: 100%;
  margin-right: 10px;
}

.d {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}


.game {
  background-color: var(--button);
  border-radius: 15px;
  padding: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms;
  user-select: none;
  width: 250px;
  height: 200px;
  position: relative;
  overflow: hidden;
}

.game:active {
  transform: scale(0.95);
  /* border: 1px solid var(--border-hover); */
}

.game img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  object-fit: cover;
  transform: scale(1.1);
}

.game:hover img {
  filter: brightness(0.9);
}

h3 {
  /* white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden; */
  max-width: 230px;
  font-family: 'Press Start 2P', cursive;
  font-size: 16px !important;
  color: var(--white-color);
  text-align: center;
  font-weight: 400 !important;
}


.game-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white-color) !important;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  z-index: 10;
}

.game-stats {
  position: absolute;
  bottom: 10px;
  left: 50%;
  /* Center horizontally */
  transform: translateX(-50%);
  color: var(--white-color) !important;
  opacity: 1;
  z-index: 11 !important;

}

h3 {
  font-size: 16px;
  margin: 0;
}

.like-dislike-ratio {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #d3d6de;
}

.like-dislike-ratio p {
  display: flex;
  align-items: center;
}

.like-dislike-ratio i {
  margin-right: 5px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
  margin-left: 20px;
  margin-right: 20px;
}



#myFilter {
  font-size: 10px;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  padding: 10px 17px;
  border: none;
  border-radius: 15px;
  background-color: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), var(--navbar-blur));
  width: 350px;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
  border: 1px solid var(--text-color);
  outline: none;
  color: var(--text-color) !important;
}

#myFilter::placeholder {
  color: var(--text-color) !important;
}

/* Search menu items */

#searchRes>li {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 3px 4px;
  background-color: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), var(--navbar-blur));
  color: var(--text-color);
  word-wrap: break-word;
  width: 30vw;
  margin-top: 0px;
  border-bottom: 1px solid #31374a;
  user-select: none;
  cursor: pointer;
  mix-blend-mode: difference;
  color: var(--white-color) !important;
  text-shadow: 0px 0px 10px black;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
}

#searchRes>li>.game-title {
  font-size: 10px;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  user-select: none;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
}

#searchRes>li:hover {
  background-color: var(--navbar-blur);
  color: var(--white-color) !important;
}


#searchRes>li>img {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;

}

#searchRes>li>span {
  width: 80%;
}



.like-dislike-ratio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.results {
  position: fixed;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0px;
  top: 55px;
  right: 5px;
  width: 32vw;
  min-width: 320px;
  height: 50vh;
  overflow-y: scroll;
  border: 1px solid #31374a;
  border-radius: 12px;
  overflow-y: auto;
  background-color: linear-gradient(to bottom, rgba(128, 128, 128, 0.9), var(--navbar-blur));
  z-index: 999999;
  backdrop-filter: blur(20px);
}

.look {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background-color: var(--sidebar);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
}

.icon:hover {
  background-color: var(--button-hover);
}

select {
  font-size: 16px;
  padding: 10px;
  border: none;
  border-radius: 20px;
  background-color: var(--navbar);
  width: 150px;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
  border: 1px solid var(--border);
  outline: none;
  cursor: pointer;
  appearance: none;
  font-family: "Press Start 2P", cursive;
  font-size: 12px;

}

select:hover {
  background-color: var(--button);
}


select option {
  /* styles for the options */
  font-family: "Press Start 2P", cursive;
  font-size: 12px;
  padding: 10px;
  background-color: var(--button);
  color: var(--text-color);

}


.more {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.loadMore {
  width: fit-content;
  height: fit-content;
  padding: 10px;
  background-color: var(--button);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
  font-size: 14px;
}

.loadMore:hover {
  background-color: var(--button-hover);
}

.author {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px;
}

.author a {
  text-decoration: none;
  color: black;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.320, 1) 0ms;
}

.author a:hover {
  color: rgb(48, 121, 173);
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: var(--navbar-blur);
  z-index: 300000000;
  backdrop-filter: blur(7px);
}


.loading-spinner {
  border: 5px solid var(--border);
  border-top: 5px solid var(--button);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}


.categories {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.categories .item {
  width: 100px;
  height: 40px;
  background-color: var(--button);
  border: 1px solid var(--border);
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) 0ms;
}

.categories .item:hover {
  background-color: var(--button-hover);
  color: white;
  background-image: linear-gradient(to right, var(--text-color), #00000000);
  background-position: left;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  transition: background-position 0.3s ease-in-out;
  font-family: "Press Start 2P", cursive;
  font-size: 8px;
}

.categories .item:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--text-color);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.categories .item:hover::after {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: transparent;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.categories .item:hover::before,
.categories .item:hover::after {
  z-index: -1;
}

.activeCategory {
  background-color: var(--button-hover);
  color: white;
  background-image: linear-gradient(to right, var(--text-color), #00000000);
  background-position: left;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  transition: background-position 0.3s ease-in-out;
  font-family: "Press Start 2P", cursive;
  font-size: 8px;

}



@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 600px) {
  .list {
    display: none;
  }

  #myFilter,
  select {
    width: 90vw;
  }

  #myProducts {
    flex-direction: column-reverse;
  }
}

.search {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 7px;
}

#adButton {
  width: 35px;
  height: 35px;
  cursor: pointer;
  background-color: white;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border: 1px solid lightgrey;
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0ms;
}

#adButton:hover {
  background-color: rgba(205, 204, 204, 0.85);
  border: 1px solid rgb(145, 144, 144);
}

#adButton:active {
  transform: scale(0.95);
}

.show {
  background-color: rgba(205, 204, 204, 0.85) !important;
  border: 1px solid rgb(145, 144, 144) !important;
}

#recomendedGames {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

#recomendedGames .item {
  width: 225px;
  height: 130px;
  background-color: var(--button);
  border: 1px solid var(--border);
  padding: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) 0ms;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  user-select: none;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

#recomendedGames .item:hover {
  background-color: var(--button-hover);
}

#recomendedGames .item:active {
  outline: none;
  transform: scale(0.95);
}

#recomendedGames .item:hover img {
  /* filter: brightness(0.5); */
  user-select: none;
  pointer-events: none;
}

#recomendedGames .item .game-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white-color);
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  z-index: 100;
  font-family: 'Press Start 2P', cursive;
  text-align: center;
  font-size: 14px;
}

#recomendedGames .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
  transform: scale(1.1);
}

#recomendedGames .item:hover img {
  filter: brightness(0.9);
}

.hidden {
  display: none;
}

/* width */
::-webkit-scrollbar {
  width: 5px;
  border-radius: 2.5px;
  box-shadow: 0px 0px 20px -15px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 2.5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 2.5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border-radius: 2.55px;
}

.top {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 75px;
}

::selection {
  background-color: var(--selection);
  color: var(--white-color);
}