/* ============================================================
   style.css — tema do Quiz da Farra
   Baseado no style.css do site: mesma paleta (preto #010101,
   azul #2424ff, amarelo #dbdb92, vermelho #b62424), fonte
   Courier, sombras "box-shadow deslocado" e animação de shake
   no hover.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre&display=swap');

/* mesma animação de "tremida" usada nos links do site */
@keyframes an_shake {
	0% { transform: translate(1px, 1px) rotate(0deg); }
	10% { transform: translate(-1px, -2px) rotate(-1deg); }
	20% { transform: translate(-3px, 0px) rotate(1deg); }
	30% { transform: translate(3px, 2px) rotate(0deg); }
	40% { transform: translate(1px, -1px) rotate(1deg); }
	50% { transform: translate(-1px, 2px) rotate(-1deg); }
	60% { transform: translate(-3px, 1px) rotate(0deg); }
	70% { transform: translate(3px, 1px) rotate(-1deg); }
	80% { transform: translate(-1px, -1px) rotate(1deg); }
	90% { transform: translate(1px, 2px) rotate(0deg); }
	100% { transform: translate(1px, -2px) rotate(-1deg); }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background-color: #010101;
  color: white;
  font-family: 'Courier', sans-serif;
  font-size: 24px;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.footer {
  font-size: 16px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: right;
  padding: 10px;
}

/* ---- container principal (equivalente ao #container do site) ---- */
#app {
  width: 100%;
  max-width: 560px;
}

#header {
  text-align: center;
  margin-bottom: 20px;
}
#header h1 {
  margin: 0 0 6px;
  font-size: 1.6em;
  font-weight: normal;
  letter-spacing: 0.02em;
}
#header p {
  margin: 0;
  font-size: 1em;
  color: #dbdb92;
  text-align: center;
}
#header .accent {
  color: #dbdb92;
}

/* ---- barra de placar ---- */
#scorebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #010101;
  outline: 1px solid #2424ff;
  box-shadow: 6px 6px #2424ff;
  border-radius: 0;
  padding: 10px 16px;
  margin-bottom: 22px;
  font-size: 1em;
}
#scorebar .item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#scorebar .item span { font-size: 0.7em; color: #dbdb92; text-transform: uppercase; letter-spacing: .06em; }
#scorebar .item b { font-size: 1.3em; color: white; font-weight: normal; }
#scorebar .item b.accent { color: #dbdb92; }

/* ---- card principal (mesmo tratamento do #container: outline azul + sombra deslocada) ---- */
#card {
  background-color: #010101;
  outline-color: #2424ff;
  outline-style: solid;
  outline-width: 1px;
  outline-offset: 0;
  box-shadow: 10px 10px #2424ff;
  padding: 26px;
}

#loading, #load-error {
  text-align: center;
  color: #dbdb92;
  font-size: 0.75em;
  padding: 40px 20px;
}
#load-error {
  text-align: left;
  outline: 1px solid #b62424;
  box-shadow: 6px 6px #b62424;
}
#load-error h3 { margin: 0 0 10px; color: #b62424; font-size: 1.1em; font-weight: normal; }
#load-error p { margin: 0 0 8px; font-size: 0.85em; color: #dbdb92; line-height: 1.6em; }
#load-error code {
  background-color: #010101;
  outline: 1px dashed #dbdb92;
  padding: 1px 5px;
  color: #dbdb92;
}
#load-error .detail { font-size: 0.75em; color: #b62424; word-break: break-all; }

/* ---- layout: uma coluna no mobile, duas caixas lado a lado no desktop ---- */
#game-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
#info-box, #question-box {
  flex: 1;
}
@media only screen and (min-width: 700px) {
  #app { max-width: 760px; }
  #game-layout {
    flex-direction: row;
    align-items: stretch;
  }
  #question-box {
    order: 2;
    flex: 1.2;
    padding-left: 20px;
    border-left: 1px dashed #2424ff;
  }
  #info-box {
    order: 1;
    flex: 0.8;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

#ratio-line {
  margin-top: 14px;
  text-align: center;
  font-size: 1em;
  color: #dbdb92;
  padding-top: 10px;
  border-top: 1px dashed #2424ff;
}
#ratio-line b { color: white; }

/* ---- artista ---- */
#artist-row {
  display: flex;
  align-items: left;
  justify-content: left;
  gap: 14px;
  margin-bottom: 6px;
}
#artist-photo {
  width: 256px;
  height: 256px;
  object-fit: cover;
  flex: none;
  background-color: #010101;
  outline: 1px solid #2424ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dbdb92;
}
#artist {
  font-size: 1.3em;
  text-align: left;
  margin-bottom: 6px;
  color: white;
}

#meta {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 6px;
  color: #dbdb92;
  font-size: 0.7em;
  margin-bottom: 8px;
}
#meta span b { color: white; font-weight: normal; }

#cultura-line {
  text-align: left;
  font-size: 0.65em;
  color: #dbdb92;
  margin-bottom: 18px;
}
#cultura-line b { color: white; }

#question {
  text-align: center;
  font-size: 0.8em;
  color: #dbdb92;
  margin-bottom: 16px;
}
#question b { color: white; }

/* ---- opções de resposta (mesmo tratamento de input/button do site) ---- */
#options {
  display:list-item;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;

}
.opt {
  background-color: #010101;
  outline-color: #b62424;
  outline-style: solid;
  outline-width: 1px;
  box-shadow: 5px 5px #b62424;
  padding: 16px 10px;
  font-size: 0.9em;
  color: #dbdb92;
  cursor: pointer;
  text-align: center;
  font-weight: normal;
  transition: transform .1s;
}
.opt:hover:not(.disabled) {
  color: white;
  scale:1.2;
  font-weight: bold;
  outline-color: #dbdb92;
  outline-style: dashed;
}
.opt.correct {
  color: white;
  background-color: #2424ff;
  outline-color: white;
  box-shadow: 5px 5px white;
  font-weight: bold;
}
.opt.wrong {
  background-color: #b62424;
  color: black;
  outline-color:white;
  outline-style: dashed;
  box-shadow: none;
  font-weight: bold;
}
.opt.disabled { cursor: default; }
.opt.dim { opacity: .35; }

#feedback {
  margin-top: 18px;
  text-align: center;
  font-size: 1.3em;
  min-height: 20px;
  color: #dbdb92;
  font-style: bold;
}
#feedback.good { color: #2424ff; }
#feedback.bad { color: #b62424; }

/* ---- botões (mesmo padrão de .dropbtn / button do site) ---- */
#actions {
  display: flex;
  justify-content: right;
  gap: 10px;
  margin-top: 18px;
}
button.btn {
  font-family: 'Courier';
  background-color: #010101;
  color: white;
  border: 0;
  outline-color: #2424ff;
  outline-style: solid;
  outline-width: 1px;
  box-shadow: 5px 5px #2424ff;
  padding: 10px 22px;
  font-size: 0.8em;
  cursor: pointer;
}
button.btn:hover {
  color: #dbdb92;
}
button.btn.secondary {
  color: #dbdb92;
  outline-color: #dbdb92;
  box-shadow: 5px 5px #010101;
}

#streak-note {
  text-align: center;
  font-size: 0.6em;
  color: #dbdb92;
  margin-top: 10px;
}
