/* onde-orixa.css */

* {
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: #f0f8ff;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 30px 20px;
}

header {
  text-align: center;
  margin-bottom: 25px;
  user-select: none;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 8px;
  color: #2a5d84;
  text-shadow: 1px 1px 2px #a0c4ff;
}

#axéHeader {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0b3d91;
  margin-bottom: 30px;
}

#gameSection {
  background: #fff;
  border-radius: 16px;
  padding: 25px 30px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  text-align: center;
  width: 100%;
  max-width: 700px;
  user-select: none;
}

.missao {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0b3d91;
}

#gameCanvas {
  display: block;
  margin: 0 auto 25px auto;
  background: #d9e9ff;
  border-radius: 12px;
  box-shadow: inset 0 0 15px #a0c4ff;
  cursor: pointer;
  /* Vamos usar width 100% para responsividade */
  width: 100%;
  height: auto;
  max-height: 450px;
  touch-action: manipulation; /* melhora toque no mobile */
}

#timer {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0b3d91;
  margin-bottom: 30px;
}

.btn-tutorial,
.btn-voltar-menu {
  cursor: pointer;
  background: #0b3d91;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 30px;
  font-size: 1.2rem;
  margin: 8px;
  box-shadow: 0 4px 8px rgba(11, 61, 145, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent; /* Remove highlight no mobile */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.btn-tutorial:hover,
.btn-voltar-menu:hover {
  background: #06457a;
  box-shadow: 0 6px 14px rgba(6, 69, 122, 0.8);
}

.btn-voltar-menu {
  background: #f57c00;
  box-shadow: 0 4px 8px rgba(245, 124, 0, 0.6);
}

.btn-voltar-menu:hover {
  background: #bb5b00;
}

/* Modal Tutorial */

.modal-tutorial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  -webkit-overflow-scrolling: touch; /* suaviza scroll no modal */
}

.modal-content {
  background: white;
  padding: 30px 35px;
  border-radius: 16px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  position: relative;
  user-select: text;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  user-select: none;
  transition: color 0.25s ease;
}

.close-btn:hover {
  color: #0b3d91;
}

.modal-content h2 {
  margin-bottom: 18px;
  color: #0b3d91;
  font-size: 2rem;
}

.modal-content p,
.modal-content ul {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.5;
}

.modal-content ul {
  list-style: disc inside;
  margin-top: 12px;
}

.modal-content ul li {
  margin-bottom: 10px;
}

/* Ajustes para mobile - garante clique e visual */

@media (max-width: 480px) {
  body {
    padding: 15px 10px;
  }

  header h1 {
    font-size: 2rem;
  }

  #axéHeader {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  #gameSection {
    padding: 20px 20px 30px 20px;
    max-width: 100%;
  }

  #gameCanvas {
    max-height: none;
    height: 320px;
    width: 100% !important;
    touch-action: manipulation;
  }

  .btn-tutorial,
  .btn-voltar-menu {
    padding: 16px 25px;
    font-size: 1.1rem;
    margin: 10px 5px;
    width: 100%;
    max-width: 320px;
  }

  .modal-content {
    padding: 25px 20px;
    font-size: 1rem;
    max-width: 95%;
  }
}
canvas {
  touch-action: none; /* impede zoom ou scroll por toque */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: block;
  margin: 0 auto;
  background-color: #fff;
  border: 2px solid #000;
}
#gameCanvas {
  width: 100%;
  max-height: 400px;
  touch-action: manipulation;
}