/* ===== RESET / BASE ===== */
body {
  background: #111;
  color: #eee;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
}

/* ===== LOADING (Netflix style) ===== */
#loading {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loading .logo {
  font-size: 60px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.2; transform: scale(0.9); }
}

/* ===== PAGES SYSTEM ===== */
.page {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.page.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ===== HOME ===== */
.home-container {
  max-width: 600px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
}

.contador {
  margin: 40px 0 20px;
}

.contador .label {
  display: block;
  color: #aaa;
  font-size: 14px;
  letter-spacing: 2px;
}

#litros-restantes {
  font-size: 42px;
  font-weight: bold;
  color: #f5a623;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  width: 100%;
  height: 14px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f5a623, #ffcc70);
  transition: width 0.6s ease;
}

/* ===== HOME BUTTONS ===== */
.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.buttons button {
  padding: 15px 25px;
  font-size: 16px;
  background: #222;
  color: #fff;
}

.buttons button:hover {
  background: #333;
}

/* ===== CONTAINER PADRÃO ===== */
.container {
  max-width: 800px;
  margin: auto;
  padding: 30px 20px;
}

/* ===== FAQ ===== */
.subtitle {
  text-align: center;
  color: #aaa;
  margin-bottom: 30px;
}

.question {
  width: 100%;
  background: #222;
  color: #fff;
  padding: 15px;
  font-size: 16px;
  margin-top: 10px;
  border-radius: 5px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.question:hover {
  background: #333;
}

.answer {
  max-height: 0;
  overflow: hidden;
  background: #1a1a1a;
  padding: 0 15px;
  border-left: 3px solid #f5a623;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.answer p {
  margin: 15px 0;
}

.answer.open {
  max-height: 500px;
  padding: 15px;
}

.icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.question.active .icon {
  transform: rotate(180deg);
}

/* ===== RANKING ===== */
#ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#ranking-list li {
  padding: 12px;
  border-bottom: 1px solid #333;
  font-size: 16px;
}

#ranking-list li:first-child {
  color: gold;
  font-weight: bold;
}

#ranking-list li:nth-child(2) {
  color: silver;
}

#ranking-list li:nth-child(3) {
  color: #cd7f32;
}

/* ===== BOTÃO VOLTAR ===== */
.back {
  margin-top: 30px;
  padding: 12px 20px;
  background: #222;
  color: #fff;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.back:hover {
  background: #333;
}

/* ===== FOOTER (se usar depois) ===== */
footer {
  margin-top: 40px;
  text-align: center;
  color: #666;
  font-size: 14px;
}
