/* Import Tailwind CSS */
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --background: #202e51;
  --foreground: #ffffff;
  --primary-color: #e7216c;
  --secondary-color: #374363;
  /*hover: #4D5874
  hover primaire : #9B1D4F
  */
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #202e51;
    --foreground: #e7216c;
  }
}

body {
  color: var(--foreground) !important;
  background: var(--background) !important;
  font-family: "Open Sans", sans-serif !important;
}

.header {
  background: var(--secondary-color) !important;
  color: var(--foreground) !important;
}

@media screen and (max-width: 768px) {
  .header {
    height: 5rem;
    border: none;
  }

  .object-contain {
    height: 4rem;
  }

  .text-secondary {
    font-size: 1.1rem !important;
    text-align: center !important;
  }
}

.bg-primary {
  background-color: var(--background) !important;
  color: var(--primary-color);
  border: 0;
}

.btn {
}
.btn-primary {
  --bs-btn-color: var(--foreground);
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-color: var(--foreground);
  --bs-btn-hover-bg: var(--primary-color);
  --bs-btn-hover-border-color: #9b1d4f88;
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: var(--secondary-color);
  --bs-btn-active-bg: var(--secondary-color);
  --bs-btn-active-border-color: var(--primary-color);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--foreground);
  --bs-btn-disabled-bg: var(--secondary-color);
  --bs-btn-disabled-border-color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  font-size: 1.25rem;
  color: var(--secondary-color);
}

.btn-secondary {
  --bs-btn-color: var(--foreground);
  --bs-btn-hover-bg: color-mix(in srgb, var(--primary-color) 80%, white);
  --bs-btn-border-color: rgba(0, 0, 0, 0.3);
  --bs-btn-hover-color: var(--foreground);
  --bs-btn-hover-bg: color-mix(in srgb, var(--primary-color) 80%, white);
  --bs-btn-hover-border-color: color-mix(
    in srgb,
    var(--primary-color) 80%,
    white
  );
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: var(--secondary-color);
  --bs-btn-active-bg: color-mix(in srgb, var(--primary-color) 80%, white);
  --bs-btn-active-border-color: var(--primary-color);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--foreground);
  --bs-btn-disabled-bg: #808080;
  --bs-btn-disabled-border-color: var(--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3rem;
  color: var(--secondary-color);
  font-size: 1.25rem;
  border-radius: 6px;
  border: none;
  padding: 0 2rem;
  width: 48%;
}

.btn-primary:disabled {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: color-mix(
    in srgb,
    var(--primary-color) 80%,
    white
  ) !important;
  border-color: var(--primary-color) !important;
  color: var(--secondary-color);
}

.btn-secondary:active {
  background-color: color-mix(
    in srgb,
    var(--primary-color) 80%,
    white
  ) !important;
  border-color: var(--primary-color) !important;
  color: var(--secondary-color);
}

.main-form {
  @apply w-2/3 flex flex-col p-8 rounded-lg mx-auto;
  background: #1c2846;

  .form-title-text {
    @apply text-6xl text-center mb-12;
  }

  .field-group {
    @apply flex flex-col my-4 mb-12;

    .field-label {
      @apply text-gray-400 mb-2 font-bold;
    }

    .form-input {
      @apply w-full border-2
      rounded-md p-4
      text-gray-400
      outline-none
      transition-colors;

      border-color: var(--foreground);
      background-color: var(--background);

      &:focus {
        @apply border-gray-400;
      }
    }

    .field-checkgroup {
      @apply flex flex-row flex-wrap gap-2 mx-auto;
    }

    .form-input[type="checkbox"] {
      @apply w-5 h-5 ml-3 text-gray-600;
    }
  }

  .form-submit {
    @apply mt-8
    flex
    justify-center
    px-12
    py-4
    rounded-md
    text-white
    font-bold
    focus:outline-none
    transition-colors
    border border-transparent
    mx-auto;

    background-color: var(--primary-color);

    &:hover {
      background-color: transparent;
      border-color: var(--primary-color);
    }
  }

  .form-error {
    @apply text-sm mt-2;
    color: var(--foreground);
  }

  .form-error-big {
    @apply text-lg block p-4 text-white text-center mb-4 rounded;
    background: var(--foreground);
  }

  .form-success-big {
    @apply text-lg block p-4 text-white text-center mb-4 rounded bg-green-600;
  }

  .subform-group {
    @apply px-12;
  }
}

.loading-screen {
  @apply w-2/3 flex flex-col px-8 py-12 rounded-lg m-auto;
  background: #1c2846;
}

.loading-screen-login {
  .progress-text {
    display: none;
  }

  .loading-title {
    @apply text-center text-gray-400 mt-2;
  }
}

.description {
  width: 1/3;
}

.btn-custom:hover {
  background-color: #4d5874 !important;
  border-color: var(--primary-color) !important;
}

.btn-pressed {
  background-color: #4d5874 !important;
  border-color: var(--primary-color) !important;
}

.check-inline-custom {
  margin-right: 0;
}

.box {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  /* 
  color: var(--foreground); */

  font-size: 0.7rem;
  line-height: 1.2rem;
}

.box-secondary {
  background-color: var(--secondary-color);
  color: var(--background);

  /* border-color: #0000004d; */
  border-width: var(--bs-border-width);

  border-radius: 0.5rem;
}

.box-primary {
  background-color: var(--primary-color);
  border: none;
  border-width: var(--bs-border-width);
  color: var(--background);
}

.text-primary-color {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
  font-size: 1.25rem;
}

.box-white {
  background-color: var(--secondary-color);
  color: var(--foreground);
  font-size: 1em;
  font-weight: bold;
  text-align: center;
}

input.box-white {
  border: 1px solid var(--foreground) !important;
  border-radius: 0.4rem;
  font-style: normal;
}

.navbar {
  background-color: transparent;
}

body {
  overflow-y: scroll;
  overflow-x: hidden;
}

.btn:disabled {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--foreground) !important;
  cursor: not-allowed !important;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.progress-zone {
  @apply flex flex-col items-center justify-center;

  .progress-bar {
    @apply border rounded-full w-7 h-7 text-center;
    animation: spin 1s linear infinite;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3490dc;
  }

  .progress-text {
    @apply text-sm font-medium text-gray-400 mt-2;
  }

  &.is-inline {
    @apply flex-row !important;

    .progress-text {
      @apply ml-4;
    }
  }
}

.form-btn-rounded {
  border-radius: 0.75rem;
}

.form-select-primary {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
}

.box-donation {
  font-size: 1.25rem;
  font-weight: bold;
}

.separation-line {
  @apply w-2/3 h-[1px] bg-gray-300 my-4 text-center mx-auto;
  background-color: var(--secondary-color) !important;
  color: var(--secondary-color);
}

.event-name {
  @apply font-bold text-center;
  color: var(--foreground) !important;
  font-size: 1.5rem !important;
  font-family: "Open Sans", Arial, sans-serif;
}

@media screen and (min-width: 768px) {
  .event-name {
    font-size: 2.25rem !important;
    
  }

  .header-logo {
    width: 100px;
    max-width: none;
  }

  .header-logo-container {
    padding: 4px !important;
  }
}

