* {
  margin: 0;
  padding: 0;
}
body {
  background: #000000;
  font-family: "Questrial", sans-serif;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background: #fff;
  padding: 5px;
}
.mycalendar {
  border: 2px solid black !important;
  margin-bottom: 50px;
}

.calendar {
  display: inline-grid;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 5px 20px;
  border-radius: 5px;
}

.calendar .month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 300;
  background-color: #d42ee0;
  color: #fff;
  border-radius: 5px;
}

.month p {
  font-size: 30px !important;
  font-weight: 700;
}
.month span {
  font-weight: 600;
  font-size: 24px;
}
button.next {
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  background: #ddd;
  border-radius: 2px;
  border: none;
  font-size: 20px;
  margin: 5px 5px;
}

.calendar .days {
  display: grid;
  background: #000;
  justify-content: center;
  align-items: center;
  grid-template-columns: repeat(7, 1fr);
  color: #fff;
  font-size: 25px;
  font-weight: 600;
  padding: 0px 0;
  border: 2px solid black;
}
.days div {
  padding: 5px 0;
}
.days div:first-child {
  background-color: red !important;
}

.days div:last-child {
  background-color: rgb(17, 21, 136) !important;
}
.calendar .days {
  margin: 0 !important;
}
.day span:last-child {
  font-size: 14px !important;
}

.dates button:nth-child(7n + 1) {
  color: red !important;
}

.calendar .days span {
  padding: 2px 0;
  padding: 0px 10px;
}

.calendar .days span {
  width: 60px;
  justify-self: center;
  align-self: center;
  text-align: center;
}

.calendar .dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  /* width: 100%; */
  margin: 0 auto;
  border-left: 1px solid black;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
}
.day {
  display: flex;
  flex-direction: column !important;
  padding: 0;
  margin: 0;
}
.day p {
  text-align: 15px !important;
}

.calendar .dates button {
  cursor: pointer;
  outline: 0;
  border: 0;
  font-size: 25px;
  font-weight: 700;
  justify-self: center;
  align-self: center;
  width: 88px;
  height: 88px;
  border-collapse: collapse;
  border-top: 1px solid black;
  border-left: 1px solid black;
  transition-duration: 0.2s;
  border-collapse: collapse;
  padding: 0;
}
.dateField {
  position: relative;
  /* date color  */
  /* color: #fff; */
}

img.icon {
    position: absolute;
    top: 5%;
    left: 50%;  /* Keep it at 50% for proper centering */
    transform: translateX(-50%);
    width: 90%;  /* Increased from 85% */
    height: 90%;
    z-index: 1;
    object-fit: contain;
}

button time,
.newevent {
  z-index: 222;
  position: relative;
}

button {
  position: relative;
  background: #fff;
}

.newevent {
  font-size: 8px;
  position: absolute;
  top: 1px; /* Your desired vertical position */
  left: 1px;
  width: 100%;
  text-align: center;
}

.dateField time:first-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

button time.bangla {
  font-size: 10px !important;
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 2px;
  text-align: center;
}


.today {
    background-color: #FFD700 !important; /* Gold color */
    color: #000;
    border: 2px solid #000000 !important; /* Red border to highlight */
    box-shadow: 0 0 0px rgba(255, 215, 0, 0.8); /* Glow effect */
}

/* ADD THIS NEW STYLE - Place it after the .today section: */
.today img.icon {
    border: 0px solid #ff0000;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0px;
}



/* .calendar .dates button:focus {
  background: #103825;
  color: #fff;
  font-weight: 600;
} */
button p.desc {
  font-size: 10px !important;
  font-weight: normal;
  padding: 0 !important;
  margin: 0 !important;
}
.descriptionBox {
  border: 1px solid black;
  background: #fff;
  padding: 5px;
  color: #1e1d1d;
  max-width: 609px;
  text-align: justify;
}
.descriptionBox p {
  margin: 0;
  padding: 0;
}

button.dateField time:last-child {
  margin-bottom: 5px;
}

textarea {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 16px;
  /* resize: none; */
}

@media only screen and (max-width: 500px) {
  .newevent {
    font-size: 7px;
  }

  .calendar {
    max-width: 384px;
    padding: 0 5px;
  }
  .calendar .month {
    font-size: 10px;
  }
  .month span {
    font-weight: 600;
    font-size: 14px;
  }

  .month p {
    font-size: 20px !important;
    font-weight: 600;
    max-width: 90%;
    margin: 0 auto;
  }
  .calendar .days span {
    width: 40px;
    font-size: 20px;
  }
  .calendar .days {
    font-size: 20px;
  }

  .calendar .dates button {
    font-size: 22px;
    font-weight: 600;
    justify-self: center;
    align-self: center;
    width: 60.2px;
    height: 60px;
  }
  button p.desc {
    font-size: 9px !important;
  }
  button.dateField time:last-child {
    margin-bottom: 1px;
  }
}

@media only screen and (max-width: 395px) {
  .newevent {
    font-size: 7px;
  }

  .calendar {
    max-width: 341px !important;
    /* padding: 10px; */
  }
  .month {
    width: 98%;
    margin: 0 auto;
    padding: 10px 0;
  }
  .calendar .month span {
    font-size: 17px;
  }
  .month span {
    font-weight: 600;
    font-size: 17px;
  }

  button.next {
    font-weight: 700;
    cursor: pointer;
    padding: 3px 5px;
    font-size: 18px;
  }
  .month p {
    font-size: 20px !important;
    font-weight: 600;
    max-width: 90%;
  }
  .calendar .days span {
    width: 32px;
    font-size: 18px;
  }

  .calendar .dates button {
    font-size: 19px;
    font-weight: 600;
    justify-self: center;
    align-self: center;
    width: 54px;
    height: 55px;
  }
  button.dateField time:last-child {
    margin-bottom: 1px;
  }
  button p.desc {
    font-size: 8px !important;
  }
}

/* Force prevent iOS blue text - add at end of CSS */
.calendar .dates button *,
.calendar .dates button time,
.dateField,
.dateField * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

/* Keep Sunday red */
.dates button:nth-child(7n + 1),
.dates button:nth-child(7n + 1) *,
.dates button:nth-child(7n + 1) time {
  color: red !important;
  -webkit-text-fill-color: red !important;
}

/* Disable iOS tap highlight */
.calendar .dates button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}
