:root {
  --primary-clr: #b38add;
}

#parent_events .parent {
  border-radius: 20px;
  background: var(--white, #fff);
  box-shadow: 0px 0px 50px 0px rgba(144, 144, 144, 0.2);
  padding: 40px 20px;
  padding-bottom: 20px;
  padding-top: 32px;
  position: relative;
}

.calendar_month {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  color: #878895;
  border-radius: 5px;
  background-color: #fff;
}

/* set after behind the main element */
.calendar_month .month_month {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  /* direction: ltr !important; */
}
.date_month{
  /* padding-right: 20px; */

}
.calendar_month .month_month .prev_month,
.calendar_month .month_month .next_month {
  cursor: pointer;
}

.calendar_month .month_month .prev_month:hover,
.calendar_month .month_month .next_month:hover {
  color: var(--primary-clr);
}

.calendar_month .weekdays_month {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 0 20px; */
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  padding-bottom: 20px;
  padding-top: 50px;
}

.weekdays_month div {
  width: 13%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #717579;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.calendar_month .days_month {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  gap: 4px;
}
.date_month {
  color: #006c9d;
  
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.date_month span {
  padding-left: 18px;
}
.calendar_month .days_month .day {
  width: calc(14.28% - 4px);
  /* width: 159px; */
  height: 80px;
  border-radius: 5px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #717579;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  position: relative;
}
.calendar_month .days_month .day svg {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
}
.calendar_month .days_month .day.event_active {
  background: #006c9d;
  color: #fff;
}
.calendar_month .days_month .day.annual_conference {
  background: #25a6c2;
  color: #fff;
}
.calendar_month .days_month .day.event_active svg {
  display: block;
}
.calendar_month .days_month .day.annual_conference svg {
  display: block;
}

/* .calendar_month .days_month .day:nth-child(7n + 1) {
    border-left: 2px solid #f5f5f5;
}

.calendar_month .days_month .day:nth-child(7n) {
    border-right: 2px solid #f5f5f5;
}

.calendar_month .days_month .day:nth-child(-n + 7) {
    border-top: 2px solid #f5f5f5;
} */
/* 
.calendar_month .days_month .day:nth-child(n + 29) {
    border-bottom: 2px solid #f5f5f5;
} */

.calendar_month .days_month .day:not(.prev_month-date, .next_month-date):hover {
  /* color: #fff; */
  /* background-color: #808080; */
}
.prev-date{
  color: #92928f;

}
.calendar_month .days_month .prev-date,
.calendar_month .days_month .prev_month-date,
.calendar_month .days_month .next_month-date {
  color: #808080;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.calendar_month .days_month .today {
  font-size: 2rem;
}

.calendar_month .days_month .event {
  position: relative;
}

.calendar_month .days_month .event::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 75%;
  height: 6px;
  border-radius: 30px;
  transform: translateX(-50%);
  background-color: var(--primary-clr);
}

.calendar_month .days_month .day:hover.event::after {
  background-color: #fff;
}

.calendar_month .days_month .active.event::after {
  background-color: #fff;
  bottom: 20%;
}

.calendar_month .days_month .active.event {
  padding-bottom: 10px;
}

.calendar_month .goto-today {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 20px;
  margin-bottom: 20px;
  color: var(--primary-clr);
}

.calendar_month .goto-today .goto {
  display: flex;
  align-items: center;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--primary-clr);
}

.calendar_month .goto-today .goto input {
  width: 100%;
  height: 30px;
  outline: none;
  border: none;
  border-radius: 5px;
  padding: 0 20px;
  color: var(--primary-clr);
  border-radius: 5px;
}

.calendar_month .goto-today button {
  padding: 5px 10px;
  border: 1px solid var(--primary-clr);
  border-radius: 5px;
  background-color: transparent;
  cursor: pointer;
  color: var(--primary-clr);
}

.calendar_month .goto-today button:hover {
  color: #fff;
  background-color: var(--primary-clr);
}

.calendar_month .goto-today .goto button {
  border: none;
  border-left: 1px solid var(--primary-clr);
  border-radius: 0;
}

.events {
  width: 100%;
  height: 100%;
  max-height: 600px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-left: 4px;
}

.events .event {
  position: relative;
  width: 95%;
  min-height: 70px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0 20px;
  padding-left: 50px;
  color: #fff;
  background: linear-gradient(90deg, #3f4458, transparent);
  cursor: pointer;
}

/* even event */
.events .event:nth-child(even) {
  background: transparent;
}

.events .event:hover {
  background: linear-gradient(90deg, var(--primary-clr), transparent);
}

.events .event .title {
  display: flex;
  align-items: center;
  pointer-events: none;
}

.events .event .title .event-title {
  font-size: 1rem;
  font-weight: 400;
  margin-left: 20px;
}

.events .event i {
  color: var(--primary-clr);
  font-size: 0.5rem;
}

.events .event:hover i {
  color: #fff;
}

.events .event .event-time {
  font-size: 0.8rem;
  font-weight: 400;
  color: #878895;
  margin-left: 15px;
  pointer-events: none;
}

.events .event:hover .event-time {
  color: #fff;
}

/* add tick in event after */
.events .event::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: 0;
  font-size: 3rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
  color: var(--primary-clr);
  transform: translateY(-50%);
}

.events .event:hover::after {
  display: flex;
}

.add-event {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #878895;
  border: 2px solid #878895;
  opacity: 0.5;
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
}

.add-event:hover {
  opacity: 1;
}

.add-event i {
  pointer-events: none;
}

.events .no-event {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: #878895;
}

.add-event-wrapper {
  position: absolute;
  bottom: 100px;
  left: 50%;
  width: 90%;
  max-height: 0;
  overflow: hidden;
  border-radius: 5px;
  background-color: #fff;
  transform: translateX(-50%);
  transition: max-height 0.5s ease;
}

.add-event-wrapper.active {
  max-height: 300px;
}

.add-event-header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #373c4f;
  border-bottom: 1px solid #f5f5f5;
}

.add-event-header .close {
  font-size: 1.5rem;
  cursor: pointer;
}

.add-event-header .close:hover {
  color: var(--primary-clr);
}

.add-event-header .title {
  font-size: 1.2rem;
  font-weight: 500;
}

.add-event-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;
}

.add-event-body .add-event-input {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.add-event-body .add-event-input input {
  width: 100%;
  height: 100%;
  outline: none;
  border: none;
  border-bottom: 1px solid #f5f5f5;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 400;
  color: #373c4f;
}

.add-event-body .add-event-input input::placeholder {
  color: #a5a5a5;
}

.add-event-body .add-event-input input:focus {
  border-bottom: 1px solid var(--primary-clr);
}

.add-event-body .add-event-input input:focus::placeholder {
  color: var(--primary-clr);
}

.add-event-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.add-event-footer .add-event-btn {
  height: 40px;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  border: none;
  color: #fff;
  background-color: var(--primary-clr);
  border-radius: 5px;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid var(--primary-clr);
}

.add-event-footer .add-event-btn:hover {
  background-color: transparent;

  color: var(--primary-clr);
}

/* media queries */

@media screen and (max-width: 1000px) {
  body {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .parent_events {
    width: 100%;
    height: 100%;
    padding: 20px 0;
  }

  .events {
    padding-bottom: 340px;
  }

  .add-event-wrapper {
    bottom: 100px;
  }
}

@media screen and (max-width: 500px) {
  .calendar_month .month_month {
    height: 75px;
  }

  .calendar_month .weekdays_month {
    height: 50px;
  }

  .calendar_month .days_month .day {
    height: 40px;
    font-size: 0.8rem;
  }

  .calendar_month .days_month .day.active,
  .calendar_month .days_month .day.today {
    font-size: 1rem;
  }

  .right .today-date {
    padding: 20px;
  }
}

.credits {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: #fff;
  background-color: #b38add;
}

.credits a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.credits a:hover {
  text-decoration: underline;
}
@media only screen and (max-width: 900px) {
  #parent_events .parent {
    padding-top:100px;
  }
}


@media only screen and (max-width: 600px) {
  #parent_events .container{
    padding-bottom: 50px;
  }
  .weekdays_month div {
    font-size: 12px;
}
  .calendar table.month {
    width: 100% !important;
  }
  #all_events .item {
    width: 100% !important;
    flex-basis: 100% !important;

  }
  .calendar_month .days_month .day {
    height: 100px;
    font-size: 20px;
  }
  .calendar_month .weekdays_month {
    padding-top: 20px;
  }
  .calendar .calendar-header{
    padding-top: 20px;
  }
  #all_events {
    padding-top: 0px;
    position: relative;
  }
}
@media only screen and (max-width: 400px) {
  #parent_events .parent {
  }
}

@media only screen and (max-width: 300px) {
  .togell_calender_type {
    right: 10px;
  }
  #parent_events .parent {
    padding-top: 100px !important;
  }
  #parent_events .container{
    padding-left:0;
    padding-right : 0;
  }
  .calendar_month .days_month .day svg {
    position: absolute;
    top: 5px;
      right: 50%;
      transform: translateX(50%);
  }


  .calendar table.month th.day-header:first-child {
    padding-left: 0px !important;
  } 
  .calendar table.month tr td.day:first-child .day-content {
    margin-left: 0px !important;
}

}

@media only screen and (max-width: 290px) {
  .weekdays_month div {
    font-size: 10px;
  }
} 