@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@font-face { font-family: joystix; src: url('./assets/fonts/joystix.ttf'); }

:root {
  --title-font: "Poppins", sans-serif;
  --text-font: "Roboto", sans-serif;
  --accent-color: rgb(255, 157, 0);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--title-font);
  height: 100vh;
  width: 100%;
  background-image: url("./assets/AdobeStock_604104666.jpeg");
  background-size: cover;
  background-attachment: fixed;
  overflow: hidden;
}

/* Trava o scroll/bounce da página enquanto o jogo está ativo (necessário além
   do overflow:hidden porque no Safari/iOS o "rubber-band" ainda arrasta a
   página inteira em gestos de toque, mesmo com overflow:hidden) */
body.game-active {
  touch-action: none;
  overscroll-behavior: none;
  position: fixed;
  inset: 0;
  width: 100%;
}

body::before {
  content: "";
  position: absolute;
  background-image: url("./assets/AdobeStock_604104666.jpeg");
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: -1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  transition: 0.9s;
}

.container {
  position: relative;
  z-index: 1;
  color: white;
  height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar-top {
  height: 90px;
  display: flex;
  justify-content: center;
  background: black;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 5;
  align-items: center;
}

.navbar-top__list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 120px;
}

.hamburguer {
  display: none;
}

.navbar__link {
  font-family: var(--title-font);
  display: block;
  color: rgb(255, 255, 255, 1);
  text-align: center;
  text-decoration: none;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}

a.navbar__link.main_link {
  font-size: 32px;
}

.navbar-top__list {
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar-top__item {
  position: relative;
}

.navbar-top__main-item {
  font-size: 32px;
}

.navbar-top__item::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background-color: var(--accent-color);
  transform-origin: right;
  bottom: 0;
  transform: scaleX(0);
  transition: transform 0.2s ease-in-out;
}

.navbar__link:hover {
  color: rgb(255, 179, 0);
}

.navbar-top__item:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

.play_prompt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 25px;
}

.logo {
  width: 500px;
  height: auto;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 1));
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  overflow: auto;
  margin-top: 90px;
  width: 100vw;
  height: calc(100vh - 90px);
  z-index: 2;
}

.canvas-container {
  width: 100%;
  max-width: 1024px;
  display: flex;
  justify-content: center;
}

canvas {
  margin-top: 50px;
  display: none;
  width: 100%;
  max-width: 1024px;
  height: auto;
  touch-action: none;
}

/* CONTROLES DE TOQUE (mobile) */
.touch-controls {
  display: none;
  width: 100%;
  max-width: 1024px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  gap: 16px;
}

.touch-controls__group {
  display: flex;
  gap: 14px;
}

.touch-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.touch-btn:active {
  background: rgba(255, 157, 0, 0.6);
  border-color: var(--accent-color);
}

.touch-btn--jump {
  width: 76px;
  height: 76px;
  font-size: 28px;
}

/* Só exibe os controles de toque em dispositivos sem mouse/hover (mobile/tablet) */
@media (hover: none) and (pointer: coarse) {
  .touch-controls.visible {
    display: flex;
  }
}

.playBtn {
  background: rgb(215, 125, 0);
  border-radius: 999px;
  box-shadow: var(--accent-color) 0 5px 15px -10px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  font-family: Inter, Helvetica, "Apple Color Emoji", "Segoe UI Emoji",
    NotoColorEmoji, "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji",
    EmojiSymbols, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue",
    Noto Sans, sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0px 0 0 5px;
  padding: 8px 18px;
  width: 230px;
  height: 70px;
  border: 0;
  transition: 0.1s ease-in-out;
  position: relative;
  box-shadow: drop-shadow(0 8px 19px rgba(0, 0, 0, 1));
  padding-left: 30px;
}

.playBtn i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
}

.playBtn:hover {
  background: rgb(250, 146, 0);
  box-shadow: var(--accent-color) 1px 8px 30px -10px;
}

.endStats {
  /* display: flex; */
  display: none;
  flex-direction: column;
  font-size: 24px;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  width: 30%;
  margin: 0 auto; /* Centers the container on the page */
}

.endStats__title__container {
  display: flex;
  flex-direction: column;
  font-size: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.endStats i {
  font-size: 175px;
  margin-top: 150px;
}

.endStats___text__container {
  width: 100%;
}

.stats-title__item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%; /* Ensures the list item takes full width */
}

.stats-title__item .endStats__text {
  margin-right: auto; /* Aligns to the left */
}

.stats-title__item .endStats__result {
  margin-left: auto; /* Aligns to the right */
}



.about {
  margin: 250px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px 200px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  gap: 30px;
}

strong {
  color: var(--accent-color);
  font-weight: bolder;
}

.gallery_container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  gap: 50px;
  padding: 0 10%;
  margin-bottom: 100px;
}

.gallery__title {
  font-size: 46px;
}

.photo-gallery {
  display: flex;
  gap: 20px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.photo img {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

/* Media Queries */
@media (max-width: 1200px) {
  .navbar-top__list {
    gap: 60px;
  }

  .about {
    padding: 15px 100px;
    font-size: 20px;
  }

  .gallery__title {
    font-size: 36px;
  }

  .logo {
    width: 400px;
  }

  .playBtn {
    width: 200px;
    height: 60px;
    font-size: 20px;
  }
}

@media (max-width: 992px) {
  .navbar-top__list {
    gap: 40px;
  }

  .about {
    padding: 15px 50px;
    font-size: 18px;
  }

  .gallery__title {
    font-size: 32px;
  }

  .logo {
    width: 300px;
  }

  .playBtn {
    width: 180px;
    height: 50px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .navbar-top {
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
  }

  .hamburguer {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    cursor: pointer;
    z-index: 6;
  }

  .navbar-top__list {
    position: absolute;
    top: 70px;
    left: 0;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: black;
    transition: max-height 0.3s ease-in-out;
  }

  .navbar-top__list.active {
    max-height: 300px;
  }

  .navbar-top__item {
    width: 100%;
    padding: 18px 0;
    text-align: center;
  }

  main {
    margin-top: 70px;
  }

  .about {
    padding: 15px 20px;
    font-size: 16px;
  }

  .gallery__title {
    font-size: 28px;
  }

  .photo-gallery {
    flex-direction: column;
  }

  .logo {
    width: 250px;
  }

  .playBtn {
    width: 160px;
    height: 45px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .about {
    padding: 10px 15px;
    font-size: 14px;
  }

  .gallery__title {
    font-size: 24px;
  }

  .logo {
    width: 200px;
  }

  .playBtn {
    width: 140px;
    height: 40px;
    font-size: 14px;
  }
}
