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

html,
body {
  font-family: Arial, sans-serif;
  background-image: url("../patron.png");
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

body {
  background: none;
}

.logo-container {
  background: #000;
  border-radius: 50%;
  padding: 30px;
  max-width: 250px;
  width: 100%;
  height: auto;
  border: solid 10px #f9ba08;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  display: block;
}

.map-container {
  width: 100%;
  max-width: 600px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.info-direccion {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 20px;
  border-radius: 10px;
  text-align: center;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.info-direccion h2 {
  margin-bottom: 10px;
  color: #f9ba08;
}

.info-direccion p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.info-direccion a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
}

.info-direccion a:hover {
  text-decoration: underline;
}

button {
  background: #f9ba08;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
  margin-bottom: 30px;
  transition: all 0.2s;
}

button:hover {
  background: #e0a800;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #282c34;
  width: 90%;
  max-width: 600px;
  height: 80%;
  position: relative;
  border-radius: 10px;
  overflow: visible;
  padding: 10px;
}

#gameArea {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.logo {
  position: absolute;
  width: 80px;
  height: 80px;
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.3s ease-out;
}

.logo.captured {
  opacity: 0;
  transform: scale(2) rotate(360deg);
}

#bucket {
  position: absolute;
  bottom: 35px;
  width: 160px;
  height: 100px;
  background-image: url('../imagenes/canasta.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 6;
}

#score {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 24px;
  color: white;
}

#gameArea {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #222;
}


/* Botones móviles */
#mobile-controls {
  position: absolute;
  bottom: -20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
  z-index: 10;
}

.ctrl-btn {
  width: 30%;
  padding: 7px 0;
  font-size: 22px;
  background: #f9ba08;
  border: none;
  border-radius: 10px;
}

.logogame {
  width: 100px;
  height: 100px;
  left: 0;
  right: 0;
  position: absolute;
  z-index: 999;
  margin: 0 auto;
  top: -50px;
  background-color: #000;
  border-radius: 50%;
}

@media (max-width: 600px) {
  .modal-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  #bucket {
    bottom: 40px;
  }

  #gameArea {
    height: 100% !important;
  }

  /* Ajustar el logo superior */
  .logogame {
    top: 10px !important;
  }

  /* Botones móviles más accesibles */
  #mobile-controls {
    bottom: -20px !important;
    /* ya no queda fuera de pantalla */
  }

  .ctrl-btn {
    padding: 7px 0 !important;
    font-size: 26px !important;
  }

  .logo-container {
    width: 100px;
    height: 100px;
    border-width: 5px;
  }

  .logo-container img {
    width: 100px;
    height: 100px;
  }
}

#bucket.catching {
  animation: bucketCatch 0.25s ease-out;
}

@keyframes bucketCatch {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.6);
  }

  100% {
    transform: scale(1);
  }
}