@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/lato-v24-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Lato';
  margin: 0;
}

header {
  width: 100%;
  display: flex;
  justify-content: center;
  box-shadow: -1px 5px 12px -6px rgba(0,0,0,0.31);
  padding-bottom: 0.5rem;
  padding-top: 1rem;
}

#nav-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nav-bar-logo {
  margin: auto;
}

.nav-bar-menu-and-lang-flags-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.nav-bar-menu > ul, .nav-bar-menu a {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 1rem;
  color: rgb(168, 29, 52);
  text-decoration: none;
}

.drop-down-menu-content {
  z-index: 2;
  display: none;
  background-color: white;
  padding: 1rem 1rem 1rem;
  width: 15rem;
}

.drop-down-menu-content a {
  color: black;
  font-size: 0.9rem;
}

.drop-down-menu {
  position: relative;
}

.drop-down-menu-content {
  position: absolute; /* without this the dropdown content will jump upwards when clicked upon */
}

.drop-down-menu:hover .drop-down-menu-content {
  display: block;
}


#sel-logo-nav-bar {
  height: 132px;
  width: 165px;
}

.lang-flag {
  width: 18px;
  height: 12px;
}

.nav-bar-menu li {
  list-style: none;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

#home-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 6rem;
}

#home-content-form-section {
  width: 50%;
}

#home-content-info-section {
  width: 50%;
  display: flex;
  justify-content: center;
}

form {
  margin-top: 2rem;
  border: 0.01rem solid black;
  padding: 1rem;
}

form #obligatory-notice {
  font-size: 0.9rem;
  background: linear-gradient(to right, rgb(75, 62, 207) 0%, rgb(75, 62, 207) 1%, rgb(246, 245, 253) 1%, rgb(246, 245, 253) 101%);
  padding: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

form label {
  margin: 0;
}


#number-of-passes-selection {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

#number-of-passes-selection button {
  background-color: rgb(193, 141, 13);
  color: white;
  border-color: transparent;
}

#number-of-passes-selection button, #number-of-passes-selection input {
  height: 2rem;
  width: 2rem;
  text-align: center;
}

.form-group:has(label[for=product]) {
  align-items: center;
}

label[for=product] {
  font-weight: bold;
}

input, select {
  padding-block: 0.4rem;
  border-width: 0.01rem;
  border-radius: 0.2rem;
  border-color: lightgrey;
}




.error {
  color: red;
  font-size: 0.8rem;
}

.invalid {
  border-color: red;
}

#no-script-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 6;
}

#no-script-overlay h1 {
  color: white;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}



/* CHECKOUT PAGE */

#hello-asso-notice {
  font-size: 1rem;
}

#home-content-info-section {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  border: 0.01rem solid black;
  padding: 1rem;
  height: 50%;
  width: 50%;
}

#checkout-basket-header, #checkout-total-description {
  border-bottom: 0.01rem solid black;
  padding-bottom: 1rem;
}

#checkout-basket-header {
  font-size: 1.5rem;
}

#hello-asso-notice-header {
  font-size: 1.2rem;
  font-weight: bold;
  align-self: center;
  display: flex;
  width: 100%;
  gap: 10px;
  justify-content: center;
}

#pass-purchase-form-header {
  align-self: center;
  display: flex;
  width: 100%;
  gap: 10px;
  justify-content: center;
}

#hello-asso-notice-header::before, #hello-asso-notice-header::after, #pass-purchase-form-header::before, #pass-purchase-form-header::after {
  content: "";
  flex: 1 1;
  border-bottom: rgb(168, 29, 52) solid 0.1rem;
  margin: auto;
}

#pass-purchase-form-sub-header {
  font-size: 1rem;
  text-align: center;
}


#checkout-total-description {
  font-size: 2rem;
  align-self: center;
}

.basket-items {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

#checkout-total-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#basket-items-number-of-passes, #basket-items-donation-amount {
  font-size: 1.5rem;
}

#checkout-total {
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.donation-surround-div {
  padding: 2rem;
  background: linear-gradient(to right, rgb(193, 141, 13) 0%, rgb(193, 141, 13) 1%, #f6f2f2 1%, #f6f2f2 101%);
}

.rgpd-text {
  margin-left: 5rem;
  margin-right: 5rem;
}

.rgpd-text > h1 {
  text-align: center;
}

#checkboxGDPR {
  display: flex;
  align-items: center;
  flex-direction: row;
}

#rgpd {
  align-self: flex-start;
}



/* PAYMENT BUTTON FOR FORM */


.HaPay {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
  }

  .HaPay * {
    font-family: "Open Sans", "Trebuchet MS", "Lucida Sans Unicode",
      "Lucida Grande", "Lucida Sans", Arial, sans-serif;
    transition: all 0.3s ease-out;
  }

  .HaPayButton {
    align-items: stretch;
    -webkit-box-pack: stretch;
    -ms-flex-pack: stretch;
    background: none;
    border: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0;
    border-radius: 8px;
  }

  .HaPayButton:hover {
    cursor: pointer;
  }

  .HaPayButton:not(:disabled):focus {
    box-shadow: 0 0 0 0.25rem rgba(73, 211, 138, 0.25);
    -webkit-box-shadow: 0 0 0 0.25rem rgba(73, 211, 138, 0.25);
  }

  .HaPayButton:not(:disabled):hover .HaPayButtonLabel,
  .HaPayButton:not(:disabled):focus .HaPayButtonLabel {
    background-color: #483dbe;
  }

  .HaPayButton:not(:disabled):hover .HaPayButtonLogo,
  .HaPayButton:not(:disabled):focus .HaPayButtonLogo,
  .HaPayButton:not(:disabled):hover .HaPayButtonLabel,
  .HaPayButton:not(:disabled):focus .HaPayButtonLabel {
    border: 1px solid #483dbe;
  }

  .HaPayButton:disabled {
    cursor: not-allowed;
  }

  .HaPayButton:disabled .HaPayButtonLogo,
  .HaPayButton:disabled .HaPayButtonLabel {
    border: 1px solid #d1d6de;
  }

  .HaPayButtonLogo {
    background-color: #ffffff;
    border: 1px solid #4c40cf;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: 10px 16px;
    width: 30px;
  }

  .HaPayButtonLabel {
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: space-between;
    column-gap: 5px;
    background-color: #4c40cf;
    border: 1px solid #4c40cf;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 0 16px;
  }

  .HaPayButton:disabled .HaPayButtonLabel {
    background-color: #d1d6de;
    color: #505870;
  }

  .HaPaySecured {
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: space-between;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    column-gap: 5px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #2e2f5e;
  }

  .HaPay svg {
    fill: currentColor;
  }


/* FREE PASS BUTTON */

#free-pass-button {
  background-color: #4c40cf;
  border: 1px solid #4c40cf;
  border-radius: 1rem;
  padding: 1rem;
  margin-top: 1rem;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

/* FREE PASS CHOOSE SITE */

.choose-site-header {
  font-size: 1.2rem;
}

/* POST CHECKOUT PAGE */

#checkout-result-message {
  width: 50%;
  text-align: center;
}

#checkout-result-message-fr {
  border-bottom: rgb(168, 29, 52) solid 0.1rem;
}

.checkout-result-message-header {
  font-weight: bold;
  font-size: 1.5rem;
}

/* DOWNLOAD PASS PAGE */

#downloadPassForm input[name="ID"] {
  display: none;
}

/* DOWNLOAD PASS ERROR PAGE */

#ticket-download-error-message-section {
  margin-top: 3rem;
  text-align: center;
}

/* VALIDATE PASS PAGE */

#return-to-scan-page-button, #download-pass-button, #verify-pass-button, #data-visualisation-section-button, #data-download-section-button, #login-button, #ajoutez-site-section-button, #readd-old-site-section-button, #delete-site-section-button, #close-results-page-to-scan-new-ticket, #make-partner-controller-section-button, #make-partner-not-controller-section-button {
  background-color: rgb(193, 141, 13);
  color: white;
  border: transparent;
  padding: 1rem;
  font-size: 1rem;
}

/* DASHBOARD STYLING */

#chart-title {
  font-size: 1rem;
  padding-bottom: 0;
  margin-bottom: 0;
}

#addSite, #readdOldSite, #deleteOldSite {
  width: 100%;
}

#readdOldSite {
  margin-top: 1rem;
}

#warning-add-site {
  color: red;
}

.add-old-site-instructions {
  font-style: italic;
}

#titleLabelOldMembersDropDown, #deleteSiteLabelTitle {
  font-weight: bold;
  font-size: 1.2rem;
}

#data-visualisation-select-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#country-selection-section, #period-selection-section, #year-selection-section {
  display: none;
}

#data-visualisation-section-button, #data-download-section-button, #ajoutez-site-section-button, #display-add-new-site-form, #readd-old-site-section-button, #delete-site-section-button, #make-partner-controller-section-button, #make-partner-not-controller-section-button {
  margin-top: 1rem;
}

#disconnect-link {
  margin-left: auto;
  margin-right: 5rem;
  margin-top: 1rem;

}

#disconnect-button, #display-add-new-site-form {
  background-color: rgb(168, 29, 52);
  color: white;
  border: transparent;
  padding: 1rem;
  font-size: 1rem;
}

#login-button {
  margin-left: 1rem;
}

#chart-container {
  margin-bottom: 10rem;
}

#readd-old-site-download-section {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 1rem;
}

.validation-code-results {
    border-bottom: rgb(168, 29, 52) solid 0.1rem;
}

.validation-code-instructions-next-steps {
  text-align: center;
}

#downloading-pass-notice {
  text-align: center;
}

.change-password-demand > h1, .change-password-demand > p {
  text-align: center;
}

.new-password-form input {
  margin-right: 1rem;
}

.forgot-password-text {
  font-size: 0.8rem;
}

.new-password-form {
  margin-top: 0;
}

#new-password-form-enter-email-form {
  width: 40%;
}

#new-password-form-change-password-form {
  width: 50%;
  margin-top: 2rem;
}

.new-password-form-enter-email-form-header {
  text-align: center;
}




@media only screen and (max-width: 1110px) {
  
  #home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .validation-code-results > h1, .change-password-demand > h1, .validation-code-instructions-next-steps > p, .change-password-demand > p {
    text-align: center;
  }




  #home-content-form-section, #home-content-info-section {
    width: 100%;
  }

  #pass-purchase-form-header::before, #pass-purchase-form-header::after {
    display: none;
  }

  #pass-purchase-form-header {
    text-align: center;
  }

  #login-form {
    display: flex;
    flex-direction: column;
    width: 50%;
  }

  #login-button {
    margin-top: 1rem;
    align-self: center;
  }

}