
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #f0f0f0;
  padding: 10px;
  line-height: 1.6;
  font-size: 16px;
}

/* Top bar */
.top-bar {
  display: flex;
  align-items: center;
  background: #00A9A4;
  border-bottom: 2px solid #00a3a4;
  padding: 10px 12px;
  height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 8px #00a3a4;
}

.top-bar img {
  height: 48px;
}

.separator {
  width: 2px;
  height: 50px;
  background: #fff;
  margin: 0 12px;
}

.top-text {
  color: #fff;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.right-logo {
  margin-left: auto;
}

.right-logo img {
  height: 30px;
}

/* Container */
.container {
  max-width: 540px;
  margin: 80px auto 0;
  text-align: center;
  padding: 0 10px;
}

/* Botões */
button {
  background: linear-gradient(45deg, #ff0040, #ff9900);
  border: none;
  padding: 14px 26px;
  margin-top: 20px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 0 12px #ff0040;
}

button:hover {
  background: linear-gradient(45deg, #cc0033, #e68a00);
  transform: scale(1.07);
  box-shadow: 0 0 16px #ff0040cc;
}

/* Inputs */
input, select {
  padding: 14px;
  margin: 12px 0;
  width: 100%;
  border-radius: 10px;
  border: 2px solid #00A9A4;
  background-color: #fff;
  color: #00A9A4; /* Cor do texto */
  font-size: 16px;
  text-align: center;
  box-shadow: 0 0 20px #00A9A4;
}

/* Card 3D e Resultado */
.card-3d,
#result-screen.card-3d {
  background: #BAE3E3;
  padding: 35px 24px;
  border-radius: 18px;
  box-shadow: 0 0 20px #00A9A4;
  transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  margin: auto;
  border: 2px solid #00A9A4;
}

.card-3d:hover {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  box-shadow: 0 0 25px #a7f1ea;
}

.quiz-box {
  background: #BAE3E3;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px #a7f1ea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #00A9A4; 
}

.quiz-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px #00A9A4;
}

.option {
  background: #00A9A4;
  color: #fff;
  padding: 16px;
  margin: 12px 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.option:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px #00A9A4;
}

.option.correta {
  background-color: #00cc66;
  color: #fff;
  box-shadow: 0 0 20px #00cc66aa;
  transform: scale(1.02);
}

.option.errada {
  background-color: #d81a0d;
  color: #fff;
  box-shadow: 0 0 20px rgba(216, 26, 13, 0.5);
  transform: scale(1.02);
}

/* Progresso */
.progress-bar {
  width: 100%;
  margin-top: 20px;
  align-self: flex-start;
}

.progress-fill {
  height: 26px;
  width: 0%;
  background: linear-gradient(90deg, #ff0040, #ffa200);
  transition: width 0.5s ease-in-out;
  text-align: center;
  color: #fff;
  line-height: 26px;
  font-weight: bold;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(255, 0, 64, 0.4);
  animation: pulseBar 2s infinite ease-in-out;
}

.final-image {
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  animation: fadeSlide 1.2s ease-out;
  transform: scale(1);
}

/* pop-up das msg fake */
.popup-message {
  background: #222;
  color: #00a3a4;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: 0 0 12px #00a3a4;
  animation: fadeInOut 5s ease-in-out;
}

footer {
  margin-top: 40px;
  padding: 20px 10px;
  text-align: center;
  color: #888;
  font-size: 14px;
}

footer a {
  text-decoration: none;
  color: #ffcc00;
}

footer a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
  visibility: hidden;
  opacity: 0;
}

.pulsante {
  animation: pulse 1.8s infinite;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}
#exit-warning {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(20px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(20px); }
}

@keyframes fadeSlide {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  60% { opacity: 1; transform: translateY(-5px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 15px 10px rgba(255, 0, 64, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 64, 0); }
}