* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}
body {
  margin: 0;
  padding: 3%;
  padding-top: 80px;
  background: #f2f2f2;
  color: #333;
  overflow-x: hidden;
}
.container {
  position: relative;
  max-width: 700px;
  margin: auto;
  margin-bottom: 20px;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.container-cartes {
  position: relative;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 20px;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
h1 {
  text-align: center;
  color: #2c3e50;
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
select,
input[type="text"],
.starter,
.next {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.starter {
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.starter:hover {
  background-color: #2980b9;
}
.next {
  display: none;
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.next:hover {
  background-color: #2980b9;
}
#quiz-section {
  display: none;
  margin-top: 2rem;
}
.word-display {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
  color: black;
}

.word-display-anim {
  animation: word-animation 1.5s ease-out 0s;
}

@keyframes word-animation {
  from {
    color: rgb(0, 76, 255);
  }
  to {
    color: black;
  }
}

.feedback {
  text-align: center;
  font-weight: bold;
  margin-top: 1rem;
}
.reverse {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 5%;
  right: 3%;
  height: 30px;
  width: 80px;
  border: none;
  background-color: transparent;
  transition: 0.2s ease-in;
}
.reverse:hover {
  border: none;
  background-color: rgba(128, 128, 128, 0.488);
  border-radius: 3px;
}
.reverse_nomove {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  width: 80px;
  border: 1px solid rgba(128, 128, 128, 0.488);
  border-radius: 3px;
  background-color: transparent;
  transition: 0.2s ease-in;
}
.reverse_nomove:hover {
  border: none;
  background-color: rgba(128, 128, 128, 0.488);
  border-radius: 3px;
}

a {
  text-decoration: none;
  color: #1f93e0;
}

.titre-carte,
.mot-carte {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
}

.titre-carte {
  font-size: medium;
}

.mini-carte {
  text-align: center;
  margin: 2px;
  flex: 1 1 120px; /* min 120px par bloc */
  word-break: break-word;
}
.div-choix {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.bouton-logic {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #3498db;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bouton-logic:hover {
  background-color: #1f93e0;
}
.div-change-page {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: 50%;
}

header {
  position: absolute;
  top: 0%;
  right: 0%;
  width: 100%;
  margin: 0%;
}
#titre_deux {
  width: fit-content;
}
.sous-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.info-mot-vocab {
  font-size: medium;
  font-style: italic;
}
.info-mot-vocab:hover {
  color: rgb(3, 40, 126);
}
em {
  font-style: normal;
  text-decoration: solid 1px black;
}

.progression-vocabulaire {
  display: none;
  flex-direction: row;
  position: relative;
  max-width: 700px;
  height: 60px;
  margin: auto;
  margin-bottom: 20px;
  background: #1f93e0;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
#progression-indication {
  position: absolute;
  top: 0%;
  left: 10px;
  color: #80ccff;
}
#div1-prog-voc {
  background-color: #1f93e0;
  width: 0px;
  height: 100%;
  border-radius: 10px;
  transition: all 0.2s ease-out;
}
#div2-prog-voc {
  background-color: #ffffff;
  flex-grow: 1;
  height: 100%;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  transition: all 0.2s ease-out;
}
