body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: 
    linear-gradient(rgba(45, 68, 201, 0.4), rgba(45, 68, 201, 0.4)),
    url('/src/img/wallpaper.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #222;
}

#introScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url('/src/img/wallpaper_int.jpg') no-repeat center center fixed;
  background-color: #ece5e5;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#introScreen img {
  max-width: 80%;
  max-height: 80%;
  animation: fadein 2s ease-in-out;
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  text-align: center;
  margin: 100px auto;
  border: 2px solid rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}

.popup input {
  padding: 10px;
  margin-bottom: 15px;
  width: 90%;
  border-radius: 10px;
  border: 1px solid #bbb;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}

#nextBtn {
  padding: 10px 20px;
  border: none;
  background-color: #2d44c9;
  color: rgb(241, 238, 238);
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

#nextBtn:hover {
  background-color: #2032a0;
}

.game-container {
  max-width: 650px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  border: 2px solid rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.personagem-info p {
  margin: 8px 0;
  font-weight: bold;
}

.fase h2 {
  margin-top: 20px;
  color: #2d44c9;
}

.escolhas button,
#nextBtn {
  margin: 10px 5px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
  background-color: #2d44c9;
  color: white;
  transition: background 0.3s;
}

button:hover {
  background-color: #2032a0;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: cair 4s linear infinite;
}

@keyframes cair {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.resultado {
  margin-top: 15px;
  font-weight: bold;
  color: #444;
}

#iconeEscolhido {
  position: fixed;
  top: 10px;
  left: 10px;
  width: 100px;
  height: 100px;
  z-index: 1000;
  border-radius: 50%;
  border: 3px solid #2d44c9;
}

#seletorIcones {
  display: none;
  position: fixed;
  top: 60px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 10px;
  z-index: 1001;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

#seletorIcones img {
  width: 30px;
  height: 30px;
  margin: 5px;
  cursor: pointer;
  border-radius: 50%;
  border: 3px solid #2d44c9;
  transition: transform 0.2s;
}

#seletorIcones img:hover {
  transform: scale(1.2);
}

#mensagemSelecao {
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
  color: #2d44c9;
  font-weight: bold;
}

#mensagemFinal {
  font-size: 36px;
  font-weight: bold;
  color: #2d44c9;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1003;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  width: 80%;
}

#naoEfetivado {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: #2d44c9;
  padding: 20px;
  border-radius: 10px;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  z-index: 1002;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#naoEfetivado p {
  margin: 0;
  padding: 10px;
  font-size: 18px;
}

#naoEfetivado button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #2d44c9;
  color: rgb(46, 28, 28);
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#naoEfetivado button:hover {
  background-color: #1e3170;
}

/* Responsividade para as telas de diferentes tamanhos*/
@media (max-width: 768px) {
  .game-container {
    padding: 20px;
    margin: 10px;
    max-width: 100%;
  }

  #iconeEscolhido {
    width: 80px;
    height: 80px;
  }

  #seletorIcones {
    top: 80px;
  }

  #seletorIcones img {
    width: 50px;
    height: 50px;
  }

  #mensagemFinal {
    font-size: 28px;
    width: 90%;
  }

  #naoEfetivado {
    font-size: 20px;
    padding: 15px;
  }

  .popup {
    width: 80%;
    padding: 15px;
  }

  #nextBtn {
    font-size: 14px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .game-container {
    padding: 15px;
    margin: 5px;
  }

  #iconeEscolhido {
    width: 60px;
    height: 60px;
  }

  #seletorIcones img {
    width: 40px;
    height: 40px;
  }

  #mensagemFinal {
    font-size: 22px;
    width: 95%;
  }

  #naoEfetivado {
    font-size: 18px;
    padding: 10px;
  }

  .popup {
    width: 90%;
    padding: 10px;
  }

  #nextBtn {
    font-size: 12px;
    padding: 6px 12px;
  }
}
