* {
  font-family: Arial, Helvetica, sans-serif;
  color: white;
}

body {
  margin: 0;
  padding: 0;
  /* background-color: #1A1A1A; */
  background-color: #0e0e0e;
  padding-bottom: 50px;
}

#btnTopo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: none;
  border-radius: 5px;
  background-color: transparent;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 1000;
  opacity: 0; /* começa invisível */
  pointer-events: none; /* não clicável quando invisível */
  transition: opacity 0.3s ease-in-out; /* transição suave */
}

/* Classe para mostrar o botão */
#btnTopo.show {
  opacity: 1;
  pointer-events: auto; /* clicável */
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#header {
  width: 100%;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: start;
}

#duvida {
  margin-left: auto;
  margin-right: 15px;
  background-color: #008746;
  padding: 10px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  gap: 10px;
  text-decoration: none;
}

#duvida i {
  font-size: 1.6rem;
}

#header img {
  margin-top: 12px;
  margin-left: 12px;
  width: 160px;
}

#header h1 {
  font-size: 1.7rem;
  text-align: center;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* gap: 25px; */
}

#pesquisa {
  width: 95%;
  height: 40px;
  border: 3px solid #ccc;
  color: black;
  border-top-left-radius: 10px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 0;
  font-size: large;
  padding-left: 12px;
}

nav {
  width: 95%;
  /* background-color: red; */
  display: flex;
  align-items: center;
  justify-content: end;
  margin: 25px;
  /* margin-right: 200px; */
}

#filtros {
  display: flex;
  flex: 1;
}

nav select {
  background-color: transparent;
  border: none;
  height: 40px;
  text-align: right;
  max-width: 120px;
  /* padding-right: 20px; */
  cursor: pointer;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  -webkit-appearance: none; /* Safari/Chrome */
  -moz-appearance: none; /* Firefox */
  appearance: none; /* padrão */
  padding: 8px 40px 8px 8px; /* espaço para a seta personalizada */
  background: url('data:image/svg+xml;utf8,<svg fill="white" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
    no-repeat right 15px center;
  background-color: #008746;
  background-size: 16px;
  /* padding: 20px 0px; */
}

select option {
  background-color: #212121;
  border: none;
}

#catalogo {
  /* padding: 25px; */
  width: 100%;
  display: flex;
  box-sizing: border-box;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0px 8px;
  gap: 20px;
}

.jogo {
  flex: 1 1 230px;
  max-width: 230px;
  /* height: 350px;
  max-height: 350px; */
  border-radius: 6px;
  text-align: left;
  display: flex;
  flex-direction: column;
  /* background-color: #123a8c; */
  background-color: #212121;
  /* background-color: #1c1c1c; */
  color: white;
  transition: ease-out 0.5s;
  overflow: hidden;
}

.jogo:hover {
  box-shadow: 0px 4px 4px #00ff88;
}

.jogo .capa {
  width: 100%;
  /* height: 200px; */
  object-fit: cover;
}

.jogo .plataforma {
  width: 100%;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plataforma img {
  width: 60px;
  margin: 5px;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0px 6px;
}

.content h3 {
  font-size: 1.05rem;
  margin-top: 14px;
  margin-bottom: 14px;
}

.precos {
  display: flex;
  justify-content: space-between;
  /* gap: 25px; */
  /* margin-top: 10px; */
  margin-bottom: 10px;
  /* background-color: red; */
}

.tipo span {
  font-size: 0.9rem;
  color: #ccc;
}

.tipo p {
  font-size: 1.1rem;
  font-weight: bold;
  color: #00ff88;
  margin: 2px 0 0;
}

#xone {
  background-color: #008746;
}

#xone img {
  width: 145px;
  margin: 5px;
}

#xseries {
  background-color: #008746;
}

#xseries img {
  width: 95px;
  margin: 5px;
}

#ps4 {
  background-color: #00439c;
}

#ps4 img {
  width: 85px;
  margin: 5px;
}

#ps5 {
  background-color: #fff;
}

#ps5 img {
  width: 85px;
  margin: 5px;
}

#switch {
  background-color: red;
}

#switch img {
  width: 70px;
}

#switch2 {
  background-color: red;
}

#switch2 img {
  width: 115px;
}

.plataforma-xbox {
  background-color: #008746; /* verde */
} 
.plataforma-ps {
  background-color: #00439c; /* azul */
}
.plataforma-switch {
  background-color: #e60012; /* vermelho */
} 
.plataforma-default {
  color: black;
  background: url('data:image/svg+xml;utf8,<svg fill="black" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
  no-repeat right 15px center;
  background-color: #f6f6f6;
}

@media (max-width: 768px) {
  #header {
    gap: 10px;
    align-items: center;
    justify-content: space-evenly;
    font-size: 0.55rem;
  }

  #header img {
    width: 105px;
  }

  #header h1 {
    font-size: 1.2rem;
    text-align: center;
  }

  #duvida {
    font-size: 0.8rem;
  }

  #duvida i {
    font-size: 1rem;
  }

  /* Centralizar navbar */
  nav {
    /* flex-direction: column; */
    justify-content: left;
    margin: 15px 0;
  }

  nav select {
    max-width: 130px;
    text-align: center;
    font-size: 1rem;
  }

  /* Ajustar o campo de pesquisa */
  #pesquisa {
    width: 95%;
    font-size: 1rem;
  }

  /* Tornar os cards maiores no celular */
  #catalogo {
    justify-content: center;
    gap: 10px;
  }

  .jogo {
    flex: 1 1 100%;
    max-width: 48%;
    height: auto;
  }

  .content h3 {
    font-size: 0.9rem;
  }

  .content p {
    font-size: 1rem;
  }
}
