@import "styles-responsive.css";

@import "styles-mobile.css";

/**
* =====================================
* Global
* =====================================
**/

/*
Panels, containers...
*/
body {
  background-color: var(--color-second-light);
  margin: auto;
  font-family: var(--font-family-roboto)!important;
  font-weight: var(--font-weight-normal)!important;
}

.main-panel {
  background-color: var(--color-second-light);
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
}

.content {
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/*
SnackBar
*/

#snackbar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  z-index: 10000;
  max-width: 450px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  font-family: var(--font-family-roboto);
  animation: slide-in-up 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.snackbar-info {
  background-color: rgba(52, 152, 219, 0.8);
}

.snackbar-warning {
  background-color: rgba(241, 196, 15, 0.8);
}

.snackbar-danger {
  background-color: rgba(231, 76, 60, 0.8);
}

.snackbar-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.snackbar-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.snackbar-close:active {
  transform: scale(0.9);
}

@keyframes slide-in-up {
  from {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes slide-out-down {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  
  to {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
}

#snackbar.hide {
  animation: slide-out-down 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/*
Card style
*/
.card {
  background-color: var(--color-main);
  width: 100%;
  max-width: 750px;
  padding: 1.25rem;
  border-radius: 10px;
}

/*
Links
*/
a {
  text-decoration: none;
  color: var(--color-button-primary);
}

/**
* =====================================
* Header
* =====================================
**/

#header-logo {
  margin: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center 0;
  height: 200px;
}

.header-body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 65vw;
  min-width: 800px;
  margin: auto;
}

.header-body-element {
  margin: 10px;
}

.header-title {
  display: var(--card-image-title-header);
  width: 45vw;
  min-width: 600px;
  letter-spacing: var(--character-spacing-0);
  color: var(--color-main);
  text-align: left;
  opacity: 1;
  font-size: var(--font-size-45);
  font-family: var(--font-family-roboto-light);
  font-weight: var(--font-weight-light);
  line-height: var(--line-spacing-55);
  font-style: var(--font-style-normal);
  font-variant: normal;
}

.lang-card {
  display: flex;
  flex-direction: row;
}

.lang-card-element {
  width: 50%;
  min-width: 350px;
}

.menu-lang-button {
  width: 100px;
  height: 32px;
  background-color: white;
  border: 1px solid #dddddd;
  border-radius: 7px;
  text-align: center;
  font-size: 20px;
  font-family: var(--font-family-roboto-medium);
  font-weight: var(--font-weight-medium);
  position: relative;
  float: right;
}

.menu-lang-button:hover .menu-lang-content {
  display: block;
}

.menu-lang-content {
  width: 100%;
  display: none;
  position: absolute;
  border: 1px solid #dddddd;
  background-color: white;
  border-radius: 7px;
  text-align: center;
  z-index: 1;
  top: 30px;
  left: 0px;
}

.menu-lang-content a {
  display: block;
  font-size: var(--font-size-14);
  line-height: var(--line-spacing-20);
  font-family: var(--font-family-roboto-medium);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  display: block;
  color: var(--color-dark-grey);
  padding: 12px 16px;
  border-bottom: 1px solid #dddddd;
}

.menu-lang-content a:last-child {
  border-bottom: 0px;
}

.menu-lang-content a:hover {
  background-color: #f1f1f1;
  font-family: var(--font-family-roboto-medium);
  font-weight: var(--font-weight-medium);
}

/**
* =====================================
* Titles
* =====================================
**/

.title {
  color: var(--color-darker-grey);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

h1 {
  font-size: var(--text-6xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
}


/**
* =====================================
* Forms
* =====================================
**/

.form-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}


/* Fieldset */
.input-field {
  display: flex;
  flex-direction: column;
}

.input-field label {
  margin-left: 1em;
  font-size: var(--font-size-14);
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-normal);
  color: #8d8d8d;
}

.input-field label .label-style {
  background: #fff;
  padding: 0 5px;
  position: absolute;
}

.input-field input, .input-field select {
  height: 25px;
  margin-top: -10px;
  padding: 10px 20px;
  border-radius: 10px;
}

.input-supporting-text {
  margin-left: 0.5em;
  font-size: var(--font-size-14);
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-normal);
  color: #8d8d8d;
  margin-top: 0px;
  margin-bottom: 10px;
}


/**
* Input
**/
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select {
  box-sizing: content-box;
  margin-top: 10px;
  margin-bottom: 10px;
  height: 42px;
  border: 2px solid #dddddd!important;
  border-radius: 7px;
  padding: 1px 1rem;
  color: var(--color-dark-grey)!important;
  font-size: var(--font-size-16);
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-spacing-20);
  font-style: var(--font-style-normal);
  letter-spacing: var(--character-spacing-0);
}

select {
  padding-right: 24px;
  border-radius: 10px;
  margin-left: 14px;
}

/* Checkboxes */
input[type="checkbox"] {
  -moz-appearance: none;
  -webkit-appearance: none;
  -o-appearance: none;
  appearance: none;
  outline: none;
  content: none;
}

input[type="checkbox"]:before {
  font-family: "FontAwesome";
  content: "\2714";
  font-size: 15px;
  color: transparent !important;
  display: block;
  margin-right: 7px;
  border: 2px solid var(--color-second);
  border-radius: 3px;
  width: 20px;
  height: 20px;
}

input[type="checkbox"]:checked:before {
  color: var(--color-second) !important;
  text-align: center;
}

.unchecked-checkbox:before {
  border: 2px solid red !important;
}

/* ********** */

/* Failed input */

input.inputfailed,
select.inputfailed {
  color: var(--color-red) !important;
  border-color: var(--color-red) !important;
}

input.inputfailed:focus,
  select.inputfailed:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
}

.inputfailed::-webkit-input-placeholder {
  color: var(--color-red) !important;
  border-color: var(--color-red) !important;
}


/**
* Buttons
**/

button {
  border: 1px solid #dddddd;
  background: #ffffff 0% 0% no-repeat padding-box;
  border-radius: 7px;
  color: var(--color-dark-grey);
  font-size: 12px;
  font-family: var(--font-family-roboto-light);
  font-weight: var(--font-weight-light);
  line-height: 14px;
  font-style: var(--font-style-normal);
  letter-spacing: var(--character-spacing-0);
  text-align: left;
  cursor: pointer;
}

.action-button {
  background-color: white;
  border: 1px solid var(--color-button-primary);
  border-radius: 22px;
  color: var(--color-button-primary);
  font-family: var(--font-family-roboto-medium);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-20);
  line-height: var(--line-spacing-24);
  text-align: center;
  width: 100%;
  height: 45px;
}

.action-button:hover {
  background-color: #f6f6f6;
}

.disabled-action-button {
  background-color: var(--color-disable-button);
  border: 0px;
  border-radius: 22px;
  color: white;
  font-family: var(--font-family-roboto-medium);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-20);
  line-height: var(--line-spacing-24);
  text-align: center;
  width: 100%;
  height: 45px;
}

.enabled-action-button {
  background-color: var(--color-button-primary);
  border: 0px;
  border-radius: 22px;
  color: white;
  font-family: var(--font-family-roboto-medium);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-20);
  line-height: var(--line-spacing-24);
  text-align: center;
  width: 100%;
  height: 45px;
}

.enabled-action-button:hover {
  background-color: var(--color-button-hover) !important;
}

.disabled-action-button:hover {
  background-color: var(--color-disable-button) !important;
  cursor: default;
}

/**
* =====================================
* Reservation
* =====================================
* */

.reservation-element {
  margin: auto;
  width: 60vw;
  display: flex;
}

.reservation-item {
  display: flex;
  align-items: center;
  color: var(--color-dark-grey);
  font-family: var(--theme-font-family);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-20);
  line-height: var(--line-spacing-28);
  padding-top: 12.5px;
  padding-bottom: 12.5px;
}

.reservation-item p {
  margin-top: 0;
  margin-bottom: 0;
}

.reservation-item img {
  width: 30px;
  height: 30px;
  margin-right: 20px;
}

#reservationInfos {
  font-family: var(--theme-font-family);
  color: var(--color-red);
}

/* Loading animation */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background-color: var(--color-button-primary);
  border-radius: 50%;
  animation: bounce 1.5s infinite;
}


/**
* =====================================
* Footer
* =====================================
* */

#footer {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: black;
  font-family: var(--font-family-roboto);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-14);
  line-height: var(--line-spacing-20);
  padding-top: 30px;
  padding-bottom: 30px;
}

#footer .row {
  width: inherit;
}

#footer-note {
  font-weight: bold;
}

#footer img {
  margin-top: 30px;
  max-height: 45px;
}

#footer-links {
  display: var(--footer-links);
}
