* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body,
html {
  width: 100%;
  height: 100%;
  background-color: #313131;
}

.slide {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.container {
  display: flex;
  flex-direction: column-reverse;
  background-color: white;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  z-index: 1;
}

/* Left side */
.container .left-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 20px 20px 10px;
}

/* Left side Background Colour */
#slide2 .container .left-side {
  background-color: #c2a167;
}

#slide3 .container .left-side {
  background-color: #5b9466;
}

#slide4 .container .left-side {
  background-color: #e4bc71;
}

#slide5 .container .left-side {
  background-color: #55ceec;
}

#slide6 .container .left-side {
  background-color: #a05d28;
}

#slide7 .container .left-side {
  background-color: #e1ccb0;
}

#slide8 .container .left-side {
  background-color: #b27e45;
}

#slide9 .container .left-side {
  background-color: #afadb7;
}

#slide10 .container .left-side {
  background-color: #eea401;
}

#slide11 .container .left-side {
  background-color: #d4c6aa;
}

#slide12 .container .left-side {
  background-color: #55ceec;
}

#slide13 .container .left-side {
  background-color: #376c5a;
}

.left-side hr {
  width: 90%;
  border: 0;
  height: 5px;
  background-color: black;
}

.left-side-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 90%;
  padding: 20px 0;
}

.left-side-content-header {
  display: flex;
  flex-direction: column;
}

.left-side-content-header-img-one {
  width: 50%;
  align-self: flex-end;
  margin-top: 10px;
  margin-bottom: 10px;
}

.left-side-content-header-img-two {
  width: 50%;
  align-self: center;
}

#monthGroupFebruary .left-side-content-header-img-one,
#monthGroupJuly .left-side-content-header-img-one,
#monthGroupAugust .left-side-content-header-img-one,
#monthGroupSeptember .left-side-content-header-img-one,
#monthGroupOctober .left-side-content-header-img-one,
#monthGroupNovember .left-side-content-header-img-one,
#monthGroupDecember .left-side-content-header-img-one {
  width: 40%;
}

#monthGroupMay .left-side-content-header-img-one,
#monthGroupJune .left-side-content-header-img-one,
#monthGroupJanuary .left-side-content-header-img-two,
#monthGroupApril .left-side-content-header-img-two,
#monthGroupAugust .left-side-content-header-img-two,
#monthGroupSeptember .left-side-content-header-img-two,
#monthGroupDecember .left-side-content-header-img-two {
  width: 70%;
}

#monthGroupFebruary .left-side-content-header-img-two,
#monthGroupMay .left-side-content-header-img-two,
#monthGroupMarch .left-side-content-header-img-two,
#monthGroupJune .left-side-content-header-img-two,
#monthGroupOctober .left-side-content-header-img-two,
#monthGroupNovember .left-side-content-header-img-two {
  width: 80%;
}

.arabic-text {
  width: 80%;
  align-self: center;
  padding: 20px 0;
}

.english-text {
  font-family: "playfair display", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.quran-translation {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.left-side-content-header .mac-bottom {
  margin-top: 10px;
}

/* Right side */
.container .right-side {
  position: relative;
  width: 100%;
  height: 300px;

  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
  background-position: center !important;
}

/* Right side Background image */
#slide2 .container .right-side {
  background: url("../assets/Iman/Ka'bah-Mecca.jpg");
}

#slide3 .container .right-side {
  background: url("../assets/Obedience/Masjid-Al-Nabawi.png");
}

#slide4 .container .right-side {
  background: url("../assets/Muraqabah/Dome-Of-The-Rock.jpg");
}

#slide5 .container .right-side {
  background: url("../assets/Ikhlas/Qolsharif-Mosque.jpg");
}

#slide6 .container .right-side {
  background: url("../assets/Mujahadatul-Nafs/Badshahi-Mosque.jpg");
}

#slide7 .container .right-side {
  background: url("../assets/Sacrifice/Great-Mosque-Of-Xi'an.jpg");
}

#slide8 .container .right-side {
  background: url("../assets/Izza/Khast-Imam.jpg");
}

#slide9 .container .right-side {
  background: url("../assets/Justice/Sultan-Ahmed.jpg");
}

#slide10 .container .right-side {
  background: url("../assets/The-Truth/Malacca-Straits-Mosque.jpg");
}

#slide11 .container .right-side {
  background: url("../assets/Rahma/Ali-Jim'ale-Mosque.jpg");
}

#slide12 .container .right-side {
  background: url("../assets/Rabbaniyah/Al-Mustafa-Mosque.jpg");
}

#slide13 .container .right-side {
  background: url("../assets/Ummah/Hassan-II-Mosque.jpg");
}

.right-side .location {
  background-color: black;
  color: white;
  width: fit-content;
  margin: 0;
  padding: 5px 10px;
  font-weight: 600;

  position: absolute;
  top: 0;
  right: 0;
}

/* Intro */
.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  margin-top: 10px;
  max-width: 1140px;
  background-color: white !important;
  color: #252b3b;
}

.intro-container {
  width: 100%;
  max-width: 1140px;
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 50vh;
}

.intro-background > img {
  display: none;
}

.intro-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 0;
  z-index: 1;
  margin-top: 30px;
  margin-bottom: 30px;
}

.Intro-mac-logo {
  display: flex;
  width: 100%;
  justify-content: center;
}

.Intro-Year {
  font-size: 4rem;
  margin-top: -20px;
}

.Intro-Islamic-Title {
  font-size: 2rem;
  width: 100%;
  margin-top: -40px;
}

.Intro-English-Title {
  font-size: 2rem;
  background-color: #fdc361;
  width: 100%;
  border-radius: 10px;
  padding: 0 20px;
}

.Calendar-Btn {
  background: linear-gradient(to right, #0a7a06, #45a049);
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.Calendar-Btn:hover {
  transform: scale(1.05);
}

.Intro-Text {
  margin: 20px 0 10px;
  font-size: 1.5rem;
}

.important-dates-container {
  background-color: white;
  max-width: 1140px;
  margin: 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.important-dates-content {
  background-color: rgba(196, 209, 220, 0.7);
  width: 90%;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
}

.important-dates-content h1 {
  font-size: 2rem;
  color: #252b3b;
}

.important-dates-content > p {
  background-color: #fdc361;
  color: #252b3b;
  border-radius: 10px;
  width: 50%;
  font-size: 1.2rem;
  margin-top: 10px;
  font-weight: 600;
}

.important-dates {
  width: 100%;
}

.important-dates ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
}

.important-dates ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin-top: 20px;
}

.important-dates ul li h3 {
  color: transparent;
  background: linear-gradient(to right, #0a7a06, #45a049);
  -webkit-background-clip: text;
  background-clip: text;
}

.important-dates ul li p {
  font-weight: 500;
}

/* Calendar */
.calendar {
  background-color: white;
  padding: 10px;
}

.calendar hr {
  border: 0;
  height: 2px;
  background-color: black;
}

.year {
  font-size: 1.3rem;
  font-weight: 600;
}

.month {
  font-size: 1.7rem;
  font-weight: 700;
}

.calendar h3 {
  margin-bottom: 10px;
}

.arabic-calendar {
  color: #9eb0d7;
  font-size: 1.2rem;
  font-weight: 600;
}

.Jumada-Al-Thani,
.Shaban,
.Shawwal,
.Dhul-Hijjah,
.Safar,
.Rabi-Al-Thani {
  color: #f1ab19 !important;
}

.Rajab,
.Ramadan,
.Dhul-Qadah,
.Muharram,
.Rabi-Al-Awwal,
.Jumada-Al-Awwal {
  color: #567ed4;
}

.arabic-date {
  font-family: "Amiri", serif !important;
}

.day-header {
  background-color: #f2f2f2;
  font-weight: bold;
}

.day-header-container,
.day-count {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.day-header-container > div,
.day-count > div {
  border: 1px solid #ddd;
}

.day-count > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4px;

  font-size: 1rem;
  font-weight: 600;
}

.circle-serparator {
  color: lightgray;
}

.red-circle-serparator {
  color: red;
}

.purple-circle-serparator,
.purple-circle-serparator-note,
.day-count .purple-circle-serparator-desktop {
  color: rebeccapurple;
}

.day-count .purple-circle-serparator-desktop {
  display: none;
}

.asterisk-serparator::before {
  content: "*";
  vertical-align: middle;
  font-weight: 900;
}

.note {
  text-align: center;
  padding: 10px;
  font-weight: 700;
}

.day-count > .desktop,
.day-count > div > .islamic-event,
.day-count .note-top-left {
  display: none;
}

.bold {
  font-weight: 900;
}

.left-align {
  text-align: left;
}

.right-align {
  text-align: right;
}

.note span {
  font-weight: 500;
}

.important-day {
  font-weight: bold;
}

.active-day-container {
  padding: 10px;
  margin: 20px 10px 10px;
  background: linear-gradient(to right, #0a7a06, #45a049);
  color: white;
  border-radius: 10px;
}

.active-day {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  font-weight: 600;
}

.active-day-date-container {
  display: flex;
  flex-direction: column;
}

.active-day-date-arabic {
  color: rgb(147, 179, 255);
}

.active-day-info {
  margin-left: auto;
}

/* Navigation Bar */
.month-navigation {
  background: linear-gradient(to right, #0a7a06, #45a049);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-align: center;
  padding: 20px 0 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.month-navigation button {
  background-color: white;
  color: black;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-size: 20px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.month-year {
  margin: 0 20px;
  cursor: pointer;
}

.month-year:hover {
  color: lightgray;
}

.month-group {
  padding-bottom: 10px;
}

.toggleSlides-Container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #0a7a06, #45a049);
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 5px;
  padding-bottom: 5px;
  gap: 10px;
  position: relative;
  z-index: 1;
}

#toggleAllSlidesButton {
  background-color: white;
  color: black;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

#toggleAllSlidesButton:hover {
  background-color: lightgray;
}

.important-dates-btn {
  background: transparent;
  color: white;
  padding: 5px 10px;
  border: 1px solid white;
  font-size: 1rem;
  border-radius: 5px;
}

.important-dates-btn:hover {
  background-color: white;
  color: black;
}

/* Navigation 12 months */
.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  animation-name: animatetop;
  animation-duration: 0.4s;
}

@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

.modal-content {
  background-color: #232323;
  border: 1px solid #888;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.modal-content > p {
  color: white;
  text-align: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 25px;
}

.modal-header > * {
  min-width: 70px;
}

.modal-header h1 {
  font-size: 2rem;
  color: white;
  text-align: center;
}

.modal-header .close {
  color: red;
  cursor: pointer;
}

.legend {
  display: flex;
  flex-direction: column;
}

.legend > div {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

.legend #red {
  color: red;
}

.legend #green {
  color: green;
}

.legend p {
  color: white;
}

.all-months {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.month-container {
  margin: 10px 20px;
  vertical-align: top;
  cursor: pointer;
}

.month-container > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.month-container:hover {
  filter: brightness(1.1);
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
}

/* Animation */
.month-group {
  animation-duration: 0.5s;
  animation-fill-mode: both;
  width: 100%;
}

/* Crossfade animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes custom-beat-animation {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

.custom-beat {
  animation: custom-beat-animation 0.5s ease-in-out 2;
}

/* Footer */
.footer {
  width: 100%;
  margin: 0 auto;
  background-color: white;
}

.footer-content-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  width: 100%;
}

.footer-header {
  justify-content: flex-start;
  margin-bottom: 30px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-grow: 1;
}

.footer-btn:hover {
  transform: scale(1.05);
}

.footer-copyright {
  margin-top: 50px;
}

.footer-content a {
  background: linear-gradient(to right, #0a7a06, #45a049);
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
}

/* Tablet and Above */
@media (min-width: 769px) {
  /* Intro */

  .intro-container {
    min-height: 40vh;
    gap: 2rem;
  }

  .intro-background {
    width: 60%;
    display: flex;
  }

  .intro-background > img {
    display: block;
    border-radius: 10px;
    width: 100%;
    height: 90%;
    align-self: center;
  }

  .intro-content {
    padding: 10px 20px 20px 0;
    width: 30%;
  }

  .Calendar-Btn {
    padding: 10px 20px;
    margin-bottom: 0;
  }

  .Intro-English-Title {
    font-size: 2rem;
  }

  .Intro-Text {
    font-size: 1.5rem;
  }

  .important-dates-content h1 {
    font-size: 3rem;
  }

  .important-dates-content > p {
    width: 30%;
    font-size: 2rem;
  }

  .important-dates ul li {
    flex-direction: row;
    margin-top: 5px;
    gap: 1rem;
  }

  .important-dates ul li h3 {
    text-align: right;
    font-size: 1.5rem;
    width: 50%;
  }

  .important-dates ul li p {
    text-align: left;
    font-size: 1.3rem;
    width: 50%;
  }

  /* Slides */
  .month-navigation button:hover {
    background-color: lightgray;
    transform: scale(1.1);
  }

  .container {
    max-width: 1140px;
    flex-direction: row;
  }

  #slide3 .container,
  #slide5 .container,
  #slide7 .container,
  #slide9 .container,
  #slide11 .container,
  #slide13 .container {
    flex-direction: row-reverse;
  }

  .container .left-side {
    width: 40%;
    padding: 30px 20px 15px;
  }

  .left-side-content {
    padding: 0;
  }

  #monthGroupJanuary .left-side-content-header-img-one,
  #monthGroupMarch .left-side-content-header-img-one,
  #monthGroupApril .left-side-content-header-img-one {
    width: 40%;
  }

  #monthGroupJuly .left-side-content-header-img-one,
  #monthGroupNovember .left-side-content-header-img-one {
    width: 30%;
  }

  #monthGroupJanuary .left-side-content-header-img-two,
  #monthGroupApril .left-side-content-header-img-two,
  #monthGroupJune .left-side-content-header-img-one,
  #monthGroupJune .left-side-content-header-img-two {
    width: 60%;
  }

  #monthGroupJuly .left-side-content-header-img-two,
  #monthGroupJune .left-side-content-header-img-one {
    width: 50%;
  }

  #monthGroupMarch .arabic-text,
  #monthGroupJune .arabic-text {
    width: 60%;
  }

  .container .right-side {
    width: 60%;
    height: unset;
    background-size: cover !important;
  }

  .right-side .location {
    width: fit-content;
  }

  #slide3 .location,
  #slide5 .location,
  #slide7 .location,
  #slide9 .location,
  #slide11 .location,
  #slide13 .location {
    left: 0;
    right: unset;
  }

  /* Calendar */
  .calendar {
    max-width: 1140px;
    margin: 0 auto;
  }

  .year {
    font-size: 1.5rem;
  }

  .month {
    font-size: 2rem;
  }

  .arabic-date {
    font-size: 1.5rem;
  }

  .day-count {
    position: relative;
  }

  .day-count > div {
    position: relative;
    padding: 20px;
    height: 150px;
  }

  .day-count .circle-serparator,
  .day-count .red-circle-serparator,
  .day-count .final-divs,
  .active-day-container,
  .note {
    display: none;
  }

  .day-count .purple-circle-serparator-desktop,
  .day-count .purple-circle-serparator {
    position: absolute;
    top: 0;
    right: 5%;
    display: inline-block;
    font-size: 2rem;
  }

  .day-count > .desktop,
  .day-count > div > .islamic-event,
  .note-top-right,
  .note-top-left {
    display: block;
  }

  #monthGroupJanuary .desktop {
    grid-column: span 3;
  }

  #monthGroupFebruary .note-top-left,
  #monthGroupApril .desktop,
  #monthGroupJuly .desktop,
  #monthGroupAugust .note-top-left,
  #monthGroupDecember .desktop {
    grid-column: span 4;
  }

  #monthGroupMarch .note-top-left,
  #monthGroupSeptember .desktop,
  #monthGroupNovember .note-top-left {
    grid-column: span 5;
  }

  #monthGroupMarch .desktop,
  #monthGroupJune .desktop {
    grid-column: span 6;
  }

  #monthGroupJanuary .desktop,
  #monthGroupFebruary .note-top-left,
  #monthGroupMarch .desktop,
  #monthGroupMarch .note-top-left,
  #monthGroupApril .desktop,
  #monthGroupJune .desktop,
  #monthGroupJuly .desktop,
  #monthGroupAugust .note-top-left,
  #monthGroupSeptember .desktop,
  #monthGroupNovember .note-top-left,
  #monthGroupDecember .desktop {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .desktop > span,
  .asterisk-serparator {
    font-size: 2rem !important;
  }

  .day-count > div > .english-calendar {
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 0 0 10px;
    font-size: 1.2rem;
  }

  .day-count > div > .arabic-calendar {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 10px 10px 0;
    font-size: 1.2rem;
    text-align: right;
  }

  #monthGroupFebruary > .calendar,
  #monthGroupMarch > .calendar,
  #monthGroupApril > .calendar,
  #monthGroupMay > .calendar,
  #monthGroupJuly > .calendar,
  #monthGroupAugust > .calendar,
  #monthGroupOctober > .calendar,
  #monthGroupNovember > .calendar {
    position: relative;
  }

  #monthGroupFebruary > .calendar > .note-top-right,
  #monthGroupMarch > .calendar > .note-top-right,
  #monthGroupApril > .calendar > .note-top-right,
  #monthGroupMay > .calendar > .note-top-right,
  #monthGroupJuly > .calendar > .note-top-right,
  #monthGroupAugust > .calendar > .note-top-right,
  #monthGroupOctober > .calendar > .note-top-right,
  #monthGroupNovember > .calendar > .note-top-right {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 10px;
    max-width: 700px;
  }

  #monthGroupMay > .calendar > .note-top-right {
    max-width: 600px;
  }

  /* Modal */
  .modal-container {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    height: fit-content;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    margin: auto;
  }

  .modal-content {
    background-color: #232323;
    border: 1px solid #888;
    width: 100%;
    height: 100%;
    overflow-y: auto;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 50px;
  }

  .modal-header h1 {
    font-size: 4rem;
  }

  .all-months {
    grid-template-columns: repeat(4, 1fr);
    padding: 20px;
    gap: 1rem;
  }

  /* Footer */
  .footer {
    max-width: 1140px;
  }

  .footer-content > div > p {
    max-width: 600px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Modal */
  .modal {
    width: 100%;
  }

  /* Calendar */
  .day-count > .note.desktop {
    height: 200px;
  }

  .note-top-right {
    position: unset !important;
    margin: 0 auto;
    width: 100% !important;
  }
}

/* Large Desktops */
@media (min-width: 1920px) {
  .container,
  .calendar,
  .month-navigation,
  .intro,
  .important-dates-container,
  .footer,
  .toggleSlides-Container {
    max-width: 1400px;
  }

  .intro-container {
    min-height: unset !important;
    min-height: 40vh !important;
    max-width: unset !important;
  }
}
