/* //fichier style.css créé le 27/10/2025  */

:root {
  --text: #69140e;
  --background: #97db4f;
  --button: bisque;
  --border: #495159;
  --selected: #ffba49;
  --selected-wrong: #c1ae9f;
  --wrong: #c3423f;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --space1: 0.5rem;
  --space2: 1rem;
  --space3: 1.5rem;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 80%;
}

body {
  font-family: var(--font);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url(background.png);
  /* background: linear-gradient(
    9deg,
    rgba(255, 186, 73, 1) 28%,
    rgba(151, 219, 79, 1) 72%
  ); */
}

main {
  display: flex;
  flex-direction: column;
  background-color: rgb(211, 211, 211, 0.3);
  font-size: large;
  align-items: center;
  margin-left: var(--space2);
  margin-right: var(--space2);
}

* {
  color: var(--text);
}

#question-text {
  margin-left: 1rem;
  margin-right: 1rem;
}

#begin {
  margin: 15rem;
  margin-top: 0;
  font-size: xx-large;
}

#text-accueil {
  padding-left: 2rem;
  padding-right: 2rem;
}

#next {
  padding: 1rem;
  font-size: x-large;
}

#accueil {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  font-size: 1.5rem;
}

footer {
  position: absolute;
  bottom: 0;
}

label {
  width: 20rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.response {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  align-items: center;
  padding: var(--space3);
  gap: var(--space3);
}

#controls-hud {
  display: flex;
  justify-content: space-around;
  flex-direction: row;
  margin-bottom: var(--space3);
  width: 80%;
}

section {
  display: flex;
  justify-content: center;
  width: 100%;
}
.progression {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-items: center;
}

input {
  display: none;
}

label {
  padding: var(--space1);
  border: 2px solid var(--border);
  background-color: var(--button);
  border-radius: var(--space1);
}

#quiz-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-top: 3rem;
}

#begin #rejouer {
  margin: 15rem;
  font-size: xx-large;
}

#next {
  padding: 1rem;
  font-size: large;
  width: 130%;
}

#hud {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 60%;
}

#timer {
  font-weight: bold;
}

.clignote {
  animation: clignoter 0.8s infinite;
}

@keyframes clignoter {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-down {
  animation: fadeDown 1.1s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.hidden {
  display: none;
  height: 2rem;
}

button {
  background-color: var(--button);
  font-size: 16px;
  border-radius: 8px;
  padding: var(--space1);
}

button:focus {
  box-shadow: 2px 2px 5px rgba(0, 162, 255, 0.705);
  background-color: lightblue;
}

#clue {
  margin-top: var(--space3);
  font-size: var(--space3);
  padding-left: 3rem;
  padding-right: 3rem;
}

#right,
#wrong {
  margin-top: var(--space3);
  animation: pop 0.5s ease;
}

.test {
  background-color: #84ff00;
}

.selected {
  background-color: var(--selected);
  box-shadow: 2px 2px #84ff00;
}

.selected-wrong {
  background-color: var(--selected-wrong);
  box-shadow: 2px 2px #ff0000;
}

@media (max-width: 768px) {
  body {
    height: 80vh;
  }
  main {
    font-size: medium;
  }
  .response {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  #quiz-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 0;
  }

  #controls-hud {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #clue {
    margin-top: 0;
    padding: 1rem;
    font-size: 1rem;
  }

  #question-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .response {
    gap: 0.2rem;
  }

  h1 {
    margin: 1rem;
  }

  #next {
    padding: 0.3rem;
  }

  label {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.3rem;
  }

  footer {
    display: none;
    position: fixed;
    bottom: 0;
  }

  #accueil {
    padding: 1rem;
  }
}
