/* --- BASE --- */
body,
html {
  margin: 0;
  padding: 0;
  background-color: #08134b;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  transition: 0.3s ease;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- (HEADER) --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
header img {
  max-width: 120px;
}
header nav {
  display: flex;
  gap: 15px;
}
header nav a {
  font-size: 14px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid transparent;
}
header nav a:first-child {
  background-color: #07134c;
  color: #ffffff;
}
header nav a:first-child:hover {
  background-color: #fcfcfc;
  color: #000000;
}
header nav a:last-child {
  background-color: #2ddac7;
  color: #000000;
}
header nav a:last-child:hover {
  background-color: #ffffff;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
  }
  header nav {
    width: 100%;
    gap: 10px;
  }
  header nav a {
    flex: 1;
  }
}

/* --- (MAIN) --- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}
main section {
  margin-bottom: 40px;
}
main h1,
main h2 {
  color: #ffffff;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
main h1 {
  font-size: 2em;
}
main h2 {
  font-size: 1.5em;
}
main p {
  margin-top: 0;
  margin-bottom: 1em;
}
main section a {
  color: #d8a02f;
}
main section a:hover {
  text-decoration: underline;
}
main ul {
  margin: 1em 0;
  padding-left: 20px;
}
main li {
  margin-bottom: 8px;
}

/* --- TABLES --- */
main table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid #ffffff;
}
main th,
main td {
  border: 1px solid #ffffff;
  padding: 10px;
  text-align: left;
}
main th {
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: bold;
}

/* --- GAMES --- */
main aside {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
main aside figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}
/* wrapper */
main aside figure img {
  width: 100%;
  aspect-ratio: 7/8;
  object-fit: cover;
  transition:
    transform 0.4s ease,
    filter 0.3s ease;
  filter: brightness(0.9);
}
main aside figure a {
  display: block;
  background-color: #2fd8ca;
  color: #000000;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  z-index: 2;
}

/* hover */
main aside figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
main aside figure:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}
main aside figure:hover a {
  background-color: #ffffff;
}

/* --- (FOOTER) --- */
footer {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
footer nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
footer nav img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
footer > img {
  width: 80px;
  margin: 0 auto 20px;
}
footer p {
  font-size: 14px;
  opacity: 0.8;
  margin: 0;
}

/* --- BUTTON UP --- */
button#up-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #2ddac7;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.3s;
  z-index: 100;
  padding: 12px;
}
button#up-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
button#up-btn:hover {
  transform: translateY(-5px);
}
button#up-btn svg path {
  fill: #000000;
}
