html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial;
  background: whitesmoke;
}

html,
body {
  font-size: 1.1rem;
  color: var(--dark);
  font-family: "Raleway", sans-serif;
}

#progress {
  margin: auto;
  width: 80%;
  background-color: var(--white);
  position: sticky;
  top: 10px;
  box-shadow: rgb(0 0 0 / 30%) 0px 3px 5px;
  border-radius: 10px;
  overflow: hidden;
}

#bar {
  width: 0.5%;
  height: 30px;
  background-color: var(--blue-3);
  transition: 0.25s;
}

#percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

p {
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  text-align: center;
}

h2 {
  font-size: 1.2rem;
  margin: 0 0 8% 0;
}

.top {
  width: 90%;
  margin: 0 auto;
}

.top img {
  max-width: 50%;
  margin: 0 25%;
}

.top a {
  display: block;
  width: 100%;
  text-align: center;
  transform: translateY(-300%);
  font-size: 0.6rem;
}

@media screen and (max-width: 800px) {
  .top a {
    transform: translateY(-100%);
  }
}

@media screen and (max-width: 1200px) {
  .top {
    margin-top: 4rem;
  }
  .top img {
    max-width: 70%;
    margin: 0 15%;
  }
}

@media screen and (max-width: 700px) {
  .top img {
    max-width: 100%;
    margin: 0;
  }
}

div#content {
    margin-bottom: 4rem;
}

form {
  width: 90%;
  margin: 1rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;

  align-items: center;
  justify-content: center;
}

@media screen and (max-width: 1200px) {
  form {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 700px) {
  form {
    grid-template-columns: 1fr;
  }
}

form section {
  height: 215px;

  padding: 14px 24px;
  margin: 12px 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.1),
    0 5px 5px -5px rgba(0, 0, 0, 0.1);
  background: var(--white);
  border-radius: 8px;
  border: .5px solid #e1e1e1;
}

.reponse {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

@media screen and (max-width: 700px) {
  .reponse {
    justify-content: space-between;
  }
}

.reponse label {
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.reponse label:first-of-type {
  flex-direction: row-reverse;
}

input {
  appearance: none;

  width: 30px;
  height: 30px;

  border: 4px solid var(--blue-3);
  border-radius: 3px;
  transition: 0.25s all linear;
  margin: 0 5px 0 0;
}

.reponse label:first-of-type input {
  margin: 0 0 0 5px;
}

input:checked {
  border: 15px solid var(--blue-2);
  background: var(--blue-2);
}

#send {
  width: auto;
  height: auto;
  margin: 10% 0;
  padding: 3% 5%;
  font-size: 1.5rem;
  background: var(--white);
  border: none;
  box-shadow: rgb(0 0 0 / 30%) 0px 3px 5px;
  transition: 0.25s;
  grid-column: 2;
}
@media screen and (max-width: 700px) {
  #send {
    grid-column: 1;
  }
}

#send:hover {
  transform: scale(1.02);
  box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 10px;
  cursor: pointer;
}

#retry {
  display: none;

  position: fixed;
  bottom: 20px;
  right: 20px;

  width: auto;
  height: auto;
  padding: 10px 23px;
  font-size: 1.5rem;
  background: white;
  border: none;
  box-shadow: rgb(0 0 0 / 30%) 0px 3px 5px;
  transition: 0.25s;
}

#retry:hover {
  transform: scale(1.02);
  box-shadow: rgba(0, 0, 0, 0.3) 0px 8px 10px;
  cursor: pointer;
}

button:hover {
  color: var(--dark);
}

#box-result {
  width: 100%;

  display: flex;
  justify-content: center;
}

#txt_result {
  width: 80%;

  font-size: 1.4rem;
  font-weight: bold;

  margin: 2% auto;

  display: none;
}

@media screen and (min-width: 570px) {
  #txt_result {
    width: 50%;
  }
}

#result {
  width: 50%;
  padding: 0;
  margin: 10% auto;

  list-style: none;

  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  box-shadow: rgb(0 0 0 / 3%) 2px 5px 8px;
}

@media screen and (min-width: 570px) {
  #result {
    width: 30%;

    margin: 0 auto;
  }
}

#result li {
  display: grid;
  grid-template-columns: 80% 20%;
}

@media screen and (min-width: 920px) {
  #result li {
    grid-template-columns: 1fr 1fr;
  }
}

#explications {
  margin: 2% 5%;
  text-align: justify;
  display: none;
}

#explications b {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.sources p {
  font-size: 0.8rem;
}

.sources p b {
  text-decoration: none !important;
}

.tradMenu {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.dropdown-container {
  width: fit-content;
  border-radius: 0 0 10px 10px;
  background-color: var(--blue-4);
  box-shadow: rgb(0 0 0 / 20%) 0px 3px 5px;
  overflow: hidden;
}

.dropdown-btn {
  background: none;
  color: var(--white);
  padding: 16px;
  font-size: 16px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: 0.25s;
}

.dropdown-content {
  display: none;
  position: relative;
  min-width: 160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  padding: 0.2rem 0.8rem;
  color: var(--white);
  font-size: 14px;
  text-decoration: none;
  transition: 0.25s;
}

.langSwContainer{
  text-align: center;
  background-color: var(--white);
  position: sticky;
  top: 10px;
  box-shadow: rgb(0 0 0 / 15%) 0px 3px 5px;
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem auto;
  width: fit-content;
  padding: .4rem 1rem;
  font-size: .8rem;
}

select#languageSwitcher {
  border: none;
  background: var(--background);
  font-size: .8rem; 
}

.legal-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.35rem;
  border: 1px solid #0077b6;
  border-radius: 50%;
  background: #ffffff;
  color: #0077b6;
  font-weight: 700;
  cursor: pointer;
}

.legal-help-link {
  position: absolute;
  top: 0;
  right: 14px;
  display: flex;
  align-items: center;
  margin-top: 0.75rem;
  text-align: center;
}

.legal-modal {
  max-width: 680px;
  width: calc(100% - 2rem);
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@media screen and (max-width: 700px) {
  .legal-modal {
      height: 100vh;
      width: 100vw;
      padding: 5vw 1.5rem;
      box-sizing: border-box;
      font-size: 1rem;
  }
}

.legal-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.legal-modal h2 {
  margin-top: 0;
}

.legal-modal a {
  text-decoration: underline;
}

.legal-modal-close {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 6px;
  background: #0077b6;
  color: #ffffff;
  cursor: pointer;
}

.sources {
    display: flex;
    margin: auto;
    flex-direction: column;
    align-items: center;
    padding: 0 8px;
}

.disclaimer {
  padding: 8px 16px;
  background: var(--blue-1);
  border-radius: 8px;
  border: solid 1px hsl(190deg 39.62% 80.77%);
}