@import "tailwindcss";
@import "./node_modules/preline/variants.css";

@media (min-width: 320px) {
  .custom-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 751px) {
  .custom-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

* {
  user-select: none;
}

html {
  --MainColor: #ec5e3a;
  --MainColorhover: #c74e30;
}

img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

input,
select,
textarea {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border: 1px solid rgb(230 230 230) !important;
  background-color: #fff;
  outline: none !important;
  margin: 6px !important;
  width: -webkit-fill-available !important;
  padding-left: 0.6rem !important;
  padding-right: 0.6rem !important;
  padding-bottom: 0.5rem !important;
  padding-top: 0.5rem !important;
  font-size: 0.875rem !important;
  height: 40px !important;
}

input:focus,
select:focus,
textArea:focus {
  border: 1px solid rgba(230, 230, 230, 0) !important;
  box-shadow: 0 0 0 2px var(--MainColor) !important;
}

.bydate {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  cursor: pointer;
  border: 1px solid rgb(230 230 230);
  border-radius: 999px;
  margin-bottom: 6px;
  margin-top: 6px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}

.bydate:hover {
  scale: 1.1;
}

.bydate.active {
  background-color: var(--MainColor);
  border: 1px solid var(--MainColor);
  color: white;
}

#button-container {
  overflow: auto;
  max-width: 100%;
  display: flex;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px;
  gap: 5px;
  padding-top: 12px;
}

.date-button {
  border-width: 1px;
  border-style: solid;
  border-color: var(--MainColor);
  padding: 5px 10px;
  background-color: var(--MainColor);
  color: #fff;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  flex: 1;
  font-size: min(3vw, 11px);
}

.date-button.active {
  background-color: rgb(255, 255, 255);
  color: var(--MainColor);
  border-color: var(--MainColor);
  border-width: 1px;
  border-style: solid;
}

.bouton-add {
  position: fixed;
  bottom: 25px;
  z-index: 9999;
  width: -webkit-fill-available;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-left: 6px;
  padding-right: 6px;
}

.submitDataButton {
  backdrop-filter: blur(4px);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.1);
  color: var(--MainColor);
  width: 100%;
  max-width: 150px;
  height: 37px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  gap: 5px;
}

.sub-message {
  position: fixed;
  z-index: 99999;
  top: -100px;
  text-align: center;
  transition: top 0.5s;
  font-size: 14px;
  width: -webkit-fill-available;
  pointer-events: none;
}

.sub-message.show {
  top: 60px;
}

@media (min-width: 565px) {
  .sub-message.show {
    top: 12px;
  }
}

.message {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  background: #00000000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  color: black;
  border-radius: 10px;
  height: 39px;
  width: fit-content;
  margin: auto;
  padding-left: 10px;
  padding-right: 10px;
}

.popup-annonce {
  position: fixed;
  z-index: 99;
  max-width: 600px;
  background-color: white;
  top: 20vh;
  margin: 10px;
  border-radius: 10px;
}

.background-popup-annonce {
  display: flex;
  background-color: #a8a8a863;
  position: fixed;
  z-index: 99;
  width: 100%;
  top: 0;
  height: 100%;
  justify-content: center;
}

@media (prefers-color-scheme: dark) {
  html,
  #container,
  #container-details {
    background-color: #171717;
  }

  input,
  select,
  textarea {
    border: 1px solid rgb(64, 64, 64) !important;
  }

  .bydate {
    border: 1px solid rgb(64, 64, 64);
    color: white;
  }

  .bydate.active {
    background-color: var(--MainColor);
    color: white;
  }

  .date-button.active {
    background-color: #171717;
  }

  .submitDataButton {
    background: #ffffff12;
  }

  .card,
  .profile-button,
  .apple-setting-button {
    background-color: #f1f1f10a !important;
    border-color: #f1f1f10a !important;
  }

  .profile-button,
  .apple-setting-button {
    color: white !important;
  }

  .result {
    color: white;
  }
}
