@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

body, html {
  overflow-x: hidden;
}

body {
  font-family: "Lexend", serif !important;
}

/* GENERAL STYLE */

.bg-blue {
  background-color: #5c6bc5;
}

.bg-red {
  background-color: #fa646f;
}

.bg-blue-10 {
  background-color: rgba(92, 108, 197, 0.1) !important;
}

.bg-blue-50 {
  background-color: rgba(92, 108, 197, 0.9) !important;
}

.bg-red-50 {
  background-color: rgba(250, 100, 110, 0.5) !important;
}

.text-blue {
  color: #5c6bc5;
}

.text-red {
  color: #fa646f;
}

a.nav-item-mobile:hover {
  color: #5c6bc5;
}

.demo-descr:hover {
  background-color: #fa646f;
  border: 1px solid #fa646f;
  color: #f9fafb;
  border-radius: 15px;
  transition: all 0.2s ease-in-out;
}

.demo-descr {
  background-color: transparent;
  color: #fa646f;
  border: 1px solid #fa646f;
  border-radius: 15px;
  transition: all 0.2s ease-in-out;
}

/* COMPONENTS */

.action-btn {
  border: 1px solid #5c6bc5;
  background-color: #5c6bc5;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.action-btn:hover {
  background-color: transparent;
  color: #5c6bc5;
  border: 1px solid #5c6bc5;
  transition: all 0.2s ease-in-out;
}

.btn-tutorial {
  border: 1px solid #fff;
  background-color: #fff;
  color: #5c6bc5;
  transition: all 0.2s ease-in-out;
}

.btn-tutorial:hover {
  border: 1px solid #fa646f;
  background-color: #fa646f;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.btn-subscribe {
  border: 1px solid #fff;
  background-color: #fff;
  color: #5c6bc5;
  transition: all 0.2s ease-in-out;
}

.btn-subscribe:hover {
  border: 1px solid #fa646f;
  background-color: #fa646f;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.btn-start {
  background-color: #fff;
  color: #5c6bc5;
  transition: all 0.2s ease-in-out;
}

.btn-start:hover {
  background-color: #fa646f;
  color: #fff;
  transition: all 0.2s ease-in-out;
}

#nav-toggle i {
  color: #fa646f;
  transition: all 0.2s ease-in-out;
}

#nav-toggle i:hover {
  color: #5c6bc5;
  transition: all 0.2s ease-in-out;
}

.add-doctor:hover {
  color: #fa646f;
  background-color: #fff;
}

.card {
  background-color: #fff;
  transition: all 0.2s ease-in-out;
  color: #111827;
}

.card:hover {
  background-color: #5c6bc5;
  transition: all 0.2s ease-in-out;
  color: #fff;
}

.card i {
  color: #5c6bc5;
}

.card:hover i {
  color: #fff;
  transition: all 0.2s ease-in-out;

}

/* ANIMATIONS AND TRANSITIONS */

/*.htmx-fade {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.htmx-fade.htmx-added {
  opacity: 0;
}*/

#mobile-menu.open {
  transition: all 0.2s ease-in-out;
  opacity: 1;
}

.loader {
  height: 20px;
  background: repeating-linear-gradient(-135deg, #fa646f 0 15px, #0000 0 20px) right top,
    repeating-linear-gradient(-45deg, #fa646f 0 15px, #0000 0 20px) right bottom;
  background-size: 300% 50%;
  background-repeat: no-repeat;
  animation: loader 5s infinite linear;
  border-radius: 5px;
}

@keyframes loader {
  100% {
    background-position: top left, bottom left
  }
}

.loader-pill {
  height: 80px;
  background: url('../img/pill1.svg') center;
  background-size: 300% 50%;
  background-repeat: no-repeat;
  animation: loaderpill 5s infinite linear;
}

@keyframes loaderpill {
  100% {
    background-position: top left, bottom left;
  }
}

/* MAIN NAVBAR */

.hamburgers {
  justify-content: center;
  align-items: center;
}

.hamburger {
  cursor: pointer;
  padding-bottom: 3px;
  position: relative;
}

.hamburger input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  opacity: 0;
  z-index: 2;
}

.bar {
  display: block;
  width: 30px;
  height: 3px;
  margin: 6px auto;
  border-radius: 40px;
  transition: all 0.3s cubic-bezier(0.37, -1.11, 0.79, 2.02);
  background-color: #fa646f;
}

.hamburger input:checked~.bar:nth-child(2) {
  transform: translateY(9.5px) rotate(45deg);
}

.hamburger input:checked~.bar:nth-child(3) {
  opacity: 0;
}

.hamburger input:checked~.bar:nth-child(4) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SFONDO PILLS */

#pills-bg {
  position: relative;
  width: 100vw;
  height: 100vh; /* Assicurati che abbia un'altezza definita */
  overflow: hidden; /* Nasconde qualsiasi cosa esca */
  clip-path: inset(0 10px 0 10px); /* Taglia 10px a sinistra e destra */
}

.pill {
  opacity: 0;
  width: 80px;
  height: auto;
  transition: opacity 0.3s;
  will-change: transform;
}

@media (max-width: 768px) {
  .pill {
    width: 50px;
    height: auto;
  }
}

.rocker {
  display: inline-block;
  position: relative;
  /*
  SIZE OF SWITCH
  ==============
  All sizes are in em - therefore
  changing the font-size here
  will change the size of the switch.
  See .rocker-small below as example.
  */
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  color: #888;
  width: 7em;
  height: 4em;
  overflow: hidden;
  border-bottom: 0.5em solid #eee;
}

.rocker-small {
  font-size: 2em;
 /* Sizes the switch */
  margin: 1em;
}

.rocker::before {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #999;
  border: 0.5em solid #eee;
  border-bottom: 0;
}

.rocker input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-left,
.switch-right {
  cursor: pointer;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5em;
  width: 3em;
  transition: 0.2s;
  user-select: none;
}

.switch-left {
  height: 2.4em;
  width: 2.75em;
  left: 0.85em;
  bottom: 0.4em;
  background-color: #ddd;
  transform: rotate(15deg) skewX(15deg);
}

.switch-right {
  right: 0.5em;
  bottom: 0;
  background-color: #5c6bc5;
  color: #fff;
}

.switch-left::before,
.switch-right::before {
  content: "";
  position: absolute;
  width: 0.4em;
  height: 2.45em;
  bottom: -0.45em;
  background-color: #ccc;
  transform: skewY(-65deg);
}

.switch-left::before {
  left: -0.4em;
}

.switch-right::before {
  right: -0.375em;
  background-color: transparent;
  transform: skewY(65deg);
}

input:checked + .switch-left {
  background-color: #fa646f;
  color: #fff;
  bottom: 0px;
  left: 0.5em;
  height: 2.5em;
  width: 3em;
  transform: rotate(0deg) skewX(0deg);
}

input:checked + .switch-left::before {
  background-color: transparent;
  width: 3.0833em;
}

input:checked + .switch-left + .switch-right {
  background-color: #ddd;
  color: #888;
  bottom: 0.4em;
  right: 0.8em;
  height: 2.4em;
  width: 2.75em;
  transform: rotate(-15deg) skewX(-15deg);
}

input:checked + .switch-left + .switch-right::before {
  background-color: #ccc;
}

/* Keyboard Users */
input:focus + .switch-left {
  color: #333;
}

input:checked:focus + .switch-left {
  color: #fff;
}

input:focus + .switch-left + .switch-right {
  color: #fff;
}

input:checked:focus + .switch-left + .switch-right {
  color: #333;
}

/* PRIVACY WIDGET */

/* From Uiverse.io by Praashoo7 */ 
.main-circle {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.up {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.down {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.card1 {
  width: 90px;
  height: 90px;
  outline: none;
  border: none;
  background: white;
  border-radius: 90px 5px 5px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
  color: #fa646f;

}

.instagram {
  margin-top: 10em;
  margin-left: 10em;
}

.card2 {
  width: 90px;
  height: 90px;
  outline: none;
  border: none;
  background: white;
  border-radius: 5px 90px 5px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
  color: #5c6bc5;
}

.twitter {
  margin-top: 1.5em;
  margin-left: -.9em;
}

.card3 {
  width: 90px;
  height: 90px;
  outline: none;
  border: none;
  background: white;
  border-radius: 5px 5px 5px 90px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
  color: #fa646f;
}

.github {
  margin-top: -.6em;
  margin-left: 1.2em;
}

.card4 {
  width: 90px;
  height: 90px;
  outline: none;
  border: none;
  background: white;
  border-radius: 5px 5px 90px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
  color: #5c6bc5;
}

.discord {
  margin-top: -.9em;
  margin-left: -1.2em;
}

.card1:hover {
  cursor: pointer;
  scale: 1.2;
  background-color: #fa646f;
  color: white;
}

.card2:hover {
  cursor: pointer;
  scale: 1.2;
  background-color: #5c6bc5;
  color: white;
}



.card3:hover {
  cursor: pointer;
  scale: 1.2;
  background-color: #fa646f;
  color: white;
}


.card4:hover {
  cursor: pointer;
  scale: 1.2;
  background-color: #5c6bc5;
  color: white;
}