.games-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 999999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
}

.games-menu.show {
  opacity: 1;
  visibility: visible;
}

.games-menu-content {
  border-radius: 20px;
  padding: 25px 30px 25px 40px;
  background-color: #080808;
  border: 2px dashed #ffffff28;
  width: 450px;
  max-height: 80vh;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  transform: scale(0);
  opacity: 0;
  transition: all 0.15s ease;
}

.games-menu.show .games-menu-content { 
  transform: scale(1);
  opacity: 1;
}

.games-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: -12px;
  margin-top: -5px;
  margin-bottom: 10px;
}

.games-menu-header h2 {
  color: #e0e0e0;
  font-size: 30px;
  margin: 0;
  font-weight: bold;
}

.category-selector {
    position: relative;
    width: 100%;
    max-width: 160px;
}

.category-selected {
    background-color: #181818;
    border: 2px solid #ffffff00;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    transition: all 0.15s ease;
}

.category-selected:hover {
    background-color: #333;
}

.category-selected::after {
    content: "\f107";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.category-selected.category-arrow-active::after {
    transform: rotate(-180deg);
}

.category-options {
    position: absolute;
    top: 100%;
    margin-top: 5px;
    left: 0;
    right: 0;
    color: #9b9b9b;
    background-color: #181818;
    border: 2px solid #ffffff00;
    border-radius: 15px;
    max-height: 0;
    text-align: left;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    z-index: 10;
    padding: 2px 0;
    transition: all 0.15s ease;
}

.category-options::-webkit-scrollbar-track {
    background: #00000000;
}

.category-options.category-show {
    max-height: 150px;
    opacity: 1;
}

.category-options div {
    padding: 8px;
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    width: 87%;
    margin: 0 auto;
    transition: all 0.15s ease;
}

.category-options div:hover {
    background-color: #333;
    color: #d6d6d6;
}

.category-options div.selected-option {
    display: none;
}

.games-search-bar {
  margin-bottom: 20px;
  width: 100%;
  position: absolute;
  top: 50%;
  color: #ffffff;
  margin-left: -12px;
  font-size: 18px;
  margin-bottom: 10px;
  z-index: 1;
}

.games-search-bar input[type=text] {
  padding: 14px 14px 14px 47px;
  width: 400px;
  border: 2px solid #00000000;
  background-color: #131313;
  background-image: url('../images/icons/search.png');
  background-size: 35px 35px;
  background-position: 10px center;
  background-repeat: no-repeat;
  outline: none;
  border-radius: 20px;
  color: #b9b9b9;
  font-size: 15px;
  text-align: left;
  transition: all 0.15s ease;
}

.games-search-bar input[type=text]:focus,
.games-search-bar input[type=text]:hover {
    background-color: #1d1d1d;
}

.games-search-bar input[type=text]::placeholder {
  color: #ffffff69;
}

.games-grid-container {
  display: none;
  border-radius: 20px;
  border: 2px solid #00000000;
  margin-left: -12px;
  margin-bottom: 4px;
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px 0 0 0;
  width: 460px;
  transition: all 0.3s ease;
}

.games-grid-container::-webkit-scrollbar-track {
    background: #00000000;
}

.games-grid {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
  gap: 8px;
  list-style: none;
}

.games-grid p {
  display: none;
}

.game-card {
  background-color: #141414;
  border-radius: 15px;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 15px;
}

.game-card:hover {
  background-color: #242424;
  transform: none;
}

.game-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 0;
}

.game-image img {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  display: block;
}

.games-grid h2 {
  color: #e0e0e0;
  font-size: 16px;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.games-sentinel {
  height: 1px;
  margin-top: 15px;
}