:root {
  --dark-text: #030327;
  --light-body: #f3f8fe;
  --light-main: #fdfdfd;
  --light-second: #c3c2c8;
  --light-hover: #f0f0f0;
  --light-text: #151426;
  --light-btn: #9796f0;
  --blue: #0000ff;
  --white: #fff;
  --shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  --font-family: "Inter", sans-serif !important;
}
.contianer * {
  user-select: none;
}
.contianer {
  height: max-content;
  position: relative;
  display: flex;
  padding: 2% 0px 0px 0px;
  justify-content: center;
  top: 30px;
  right: 0%;
  width: 100%;
  transition: height 1s ease-in-out;
}

.contianer.chico {
  height: 150px;
  transition: height 1s ease-in-out, scale 1s ease-in-out;
  transform: scale(1.2);
}
/* .contianer.agrandar {
    animation: agrandar 1s forwards;
  }
  .contianer.achicar {
    animation: achicar 1s forwards;
  } */
/* .calendar {
  height: 580px;
  width: 90%;
  background: var(--white);
  border-radius: 25px;
  backdrop-filter: blur(3px);
  overflow: hidden;
  padding: 30px 50px 0px 50px;
  transition: height 1s ease-in-out;
}*/
.calendar {
  box-shadow: var(--shadow);
}
.theme-dark .calendar {
  box-shadow: var(--white);
} 
.calendar-header {
  background: rgba(#9796f0, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--white);
  padding: 10px;
  border-radius: 0.5rem;
  backdrop-filter: blur(3px);
}
.calendar-body {
  pad: 10px;
}
.calendar-week-days {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(7, 1fr);
  font-size: 1rem;
  gap:5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--white);
}
.cal-days{
  position: relative;
  z-index: 2;
}
.calendar-week-days div {
  display:flex;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  color: var(--dark-text);
  width: 40px;
  height: 40px;
}
@media (max-width: 420px) {
  .calendar-week-days div {
    width: 70%;
    margin: 3px auto;
    height: 34px;
  }
     
}
.theme-dark .calendar-week-days div,
.theme-dark .calendar-days-container,
.theme-dark .calendar
{
  user-select: none;
  color:white;
  background-color: #1b1d21;
}
pre {
  margin-bottom: 0;
}
.calendar-days {
  margin-top: -3rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  color: var(--white);
}
.calendar-days div {
  margin: 0 auto;
  width: 37px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: var(--dark-text);
  position: relative;
  cursor: pointer;
  animation: to-top 1s forwards;
}

.calendar.collapseDiv .calendar-days div {
  margin: 0 auto;
}
.month-picker {
  background-color: #4a89dc;
  backdrop-filter: blur(3px);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.year-picker {
  display: flex;
  align-items: center;
  color: var(--dark-text);
}
.year-change {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0px 10px;
  cursor: pointer;
}
.year-change:hover {
  background-color: var(--light-btn);
  transition: all 0.2s ease-in-out;
  transform: scale(1.12);
}
.year-change:hover pre {
  color: var(--bg-body);
}
.calendar-footer {
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
/* .calendar-days div span {
  position: absolute;
} */
.calendar-days div:hover {
  transition: width 0.2s ease-in-out, height 0.2s ease-in-out;
  background-color: #4a89dc;
  border-radius: 20%;
  color: var(--dark-text);
}
.calendar-days-container{
  overflow: hidden;
  padding: 5px;
  margin: 0;
  border:0;
}
.calendar-week-days div.eventDay {
  color: var(--dark-text);
  background-color: rgba(74,137,220,0.3);
  border-radius: 20%;
}

.theme-dark .calendar-week-days div.eventDay{
  background-color: rgba(145, 182, 231, 0.9);
  color:white;
}
  .theme-dark .calendar-week-days div.eventDay.selected-day{
    background-color: rgba(145, 182, 231, 0.9);
    color:red;
}
.calendar-week-days div.current-date {
  color: var(--white);
  background-color: #4a89dc;
  border-radius: 20%;
}

.calendar-week-days :not(.current-date)div.eventDay {
  color: var(--white);
}
.month-list {
  position: relative;
  /* left: 8%;
    right: 8%;
    top: 330px; */
  background: #679ce0;
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 5px;
}
.month-list > div {
  display: grid;
  place-content: center;
  margin: 5px 5px;
  transition: all 0.2s ease-in-out;
}
.month-list > div > div {
  border-radius: 15px;
  padding: 8px;
  font-size: 1rem;
  cursor: pointer;
}
.month-list.show,
.contraer.show,
.modal-events.show {
  visibility: visible;
  pointer-events: visible;
  transition: 0.6s ease-in-out;
  animation: to-left 0.71s forwards;
}
.month-list.hideonce,
.contraer.hideonce,
.modal-events.hideonce {
  visibility: hidden;
}
.month-list.hide,
.contraer.hide,
.modal-events.hide {
  animation: to-right 1s forwards;
  visibility: hidden;
  pointer-events: none;
}
.date-time-formate {
  margin-top: 3rem;
  width: 100%;
  height: max-content;
  font-family: var(--font-family);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
}
.day-text-formate {
  font-family: var(--font-family);
  font-size: 1.4rem;
  padding-right: 5%;
  border-right: 3px solid #9796f0;
  left: -1rem;
  color: var(--light-text);
}
.date-time-value {
  height: max-content;
  width: max-content;
  position: relative;
  width: 12rem;
  padding-left: 10%;
  top: 3rem;
  text-align: center;
}
.time-formate {
  font-size: 1.5rem;
  color: var(--light-text);
}
.time-formate.hideTime {
  animation: hidetime 1.5s forwards;
}
.day-text-formate.hideTime {
  animation: hidetime 1.5s forwards;
}
.date-formate {
  text-transform: capitalize;
}
.date-formate.hideTime {
  animation: hidetime 1.5s forwards;
}
.day-text-formate.showtime {
  animation: showtime 1s forwards;
}
.time-formate.showtime {
  animation: showtime 1s forwards;
}
.date-formate.showtime {
  animation: showtime 1s forwards;
}
.back {
  cursor: pointer;
}

.modal-events {
  position: absolute;
  max-width: 500px;
  min-width: 200px;
  top: 1rem;
  left: 8%;
  right: 8%;
  padding: 20px;
  border-radius: 1rem;
  color: var(--white);
  background-color: #6fa5de;
}
.modal-events.showtime {
  animation: showtime 1s forwards;
}
.modal-events.hideTime {
  animation: hidetime 1.5s forwards;
}
.all-content.showtime {
  animation: showtime 1s forwards;
}
.all-content.hideTime {
  animation: hidetime 1.5s forwards;
}
.contraer.showtime {
  animation: showtime 1s forwards;
}
.contraer.hideTime {
  animation: hidetime 1.5s forwards;
}
.back {
  display: flex;
  align-items: center;
  top: 0.5rem;
  right: 0.5rem;
  justify-content: center;
  position: absolute;
  background: rgb(247, 246, 248);
  width: 30px;
  border-radius: 15px;
  height: 30px;
}
.calendar-week-days div.selected-day {
  color: red;
  font-weight: 900;
}
.theme-dark .calendar-week-days div.selected-day {
  color: rgba(221, 135, 143, 0.8);
  font-weight: 900;
}
.event {
  position: relative;
}
.event-end,
.event-start {
  font-weight: 700;
  margin-top: 0.3rem;
  padding-left: 0.5rem;
}
.event-end span,
.event-start span {
  font-weight: 400;
}
.event-title {
  padding-top: 0.5rem;
  border-top: 1px solid;
}

.book {
  position: absolute;
  bottom: -5px;
  right: 0;
  background-color: green;
  width: 30px;
  height: 30px;
}

@keyframes to-top {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateY(100%);
    opacity: 1;
  }
}

/* @keyframes agrandar {
    0% {
      transform: scaleY(0.1);
      opacity: 1;
    }
    100% {
      transform: scaleY(1);
      opacity: 1;
    }
  }
  
  @keyframes achicar {
    0% {
      transform: scaleY(10);
      opacity: 1;
    }
    100% {
      transform: scaleY(1);
      opacity: 1;
    }
  } */

.day-events {
  max-height: 400px;
  overflow-y: auto;
}


.calendar.collapseDiv {
  position: relative;
  top: 1rem;
  height: 62px;
  width: 280px;
  scale: 130%;
  border-radius: 0.5rem;
  overflow: hidden;
}
.all-content {
  position: relative;
  left: 0px;
  animation: bajar 1s forwards;
}
.all-content.short {
  position: absolute;
  scale: 0.9;
  left: -10px;
  animation: subir 1s forwards;
}

.contraer {
  margin-top: 2rem;
  color: var(--white);
  background-color: rgba(102, 38, 185, 0.8);
  padding: 0.5rem;
  cursor: pointer;
  text-align: center;
  left: 30%;
  right: 30%;
  font-size: 1rem;
  border-radius: 0.5rem;
  animation: fade-out 500ms forwards;
  z-index: 300;
}
.contraer.show {
  opacity: 1;
}

@keyframes subir {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-160px);
  }
}
@keyframes bajar {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(10px);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes to-left {
  0% {
    transform: translatex(230%);
    opacity: 1;
  }
  100% {
    transform: translatex(0);
    opacity: 1;
  }
}
@keyframes to-right {
  10% {
    transform: translatex(0);
    opacity: 1;
  }
  100% {
    transform: translatex(-150%);
    opacity: 1;
  }
}
@keyframes showtime {
  0% {
    transform: translatex(250%);
    opacity: 1;
  }
  100% {
    transform: translatex(0%);
    opacity: 1;
  }
}
@keyframes hidetime {
  0% {
    transform: translatex(0%);
    opacity: 1;
  }
  100% {
    transform: translatex(-370%);
    opacity: 1;
  }
}
@media (max-width: 380px) {
  .month-list > div {
    margin: 5px 0px;
  }
  .calendar {
    padding: 0;
    border-radius: 1rem;
  }
  .calendar-days {
    margin-top: -1rem;
  }
  /* .calendar-days div {
    width: 22px;
    height: 25px;
    padding: 0px;
    font-size: 0.8rem;
  } */

  .month-list > div > div {
    font-size: 0.7rem;
  }

  .month-picker {
    font-size: 1rem;
  }

  .date-time-value {
    width: 7rem;
  }
  .date-time-formate {
    left: 1rem;
  }
  .day-text-formate {
    font-size: 1rem;
  }
  .date-formate.showtime {
    width: 8rem;
  }
  .year-picker {
    font-size: 1rem;
  }
  .year-change {
    width: 15px;
    height: 15px;
    margin: 0;
  }
}

/* Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: #6c33cf #dfe9eb;
}

/* Chrome, Edge and Safari */
*::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
*::-webkit-scrollbar-track {
  border-radius: 5px;
  background-color: #dfe9eb;
}

*::-webkit-scrollbar-track:hover {
  background-color: #b8c0c2;
}

*::-webkit-scrollbar-track:active {
  background-color: #b8c0c2;
}

*::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background-color: #6c33cf;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: #5149c3;
}

*::-webkit-scrollbar-thumb:active {
  background-color: #5e59a3;
}

.theme-dark .current-select {
  background: #3434349d !important;
  border-radius: 20%;
}
.theme-light .current-select {
  background: #cecece9d !important;
  border-radius: 20%;
}