@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;800&family=Lalezar&display=swap");

body {
  background-color: #f2f3ff !important;
}

.section {
  display: none;
}

.searchBar input {
  font-family: Cairo;
  color: #4b5de9;
  padding: 10px;
  border: 1px solid #4b5de98c;
  border-radius: 5px;
  margin-bottom: 30px;
  outline: 0;
  text-align: center;
}

.searchBar input::placeholder {
  color: #4b5de97c;
}

.locationButton {
  margin-bottom: 20px;
}

.locationButton button {
  background-color: #4b5de9;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  font-family: Cairo;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.locationButton button:hover {
  background-color: #3a4bc7;
  transform: translateY(-2px);
}

.selectMasjid {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 50px;
  flex-grow: 1;
}

.selectMasjid .masjidsList {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.selectMasjid .masjidCard {
  display: flex;
  flex: 1 0 40%;
  flex-direction: row-reverse;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 20px;
  border: #5352ed47 1px solid;
  border-radius: 10px;
  font-family: Cairo;
}

.selectMasjid .masjidCard .cardLeftSection {
  border-left: 1px solid #5352ed47;
  padding-left: 20px;
}

.selectMasjid .masjidCard .cardRightSection {
  display: flex;
  flex: 1;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: end;
}

.selectMasjid .masjidName {
  color: #4b5de9;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s all;
}

.selectMasjid .masjidName:hover {
  opacity: 0.6;
}

.selectMasjid .masjidCalendarCity {
  align-self: end;
  color: #0000005c !important;
  text-decoration: none;
}

.nearest-mosque {
  border: 2px solid #4b5de9 !important;
  background: linear-gradient(45deg, #4b5de90d, #4b5de91c) !important;
  position: relative;
}

.nearest-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #4b5de9;
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  font-family: Cairo;
}

.distance {
  color: #4b5de9;
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
}

.no-masjids {
  text-align: center;
  color: #4b5de9;
  font-family: Cairo;
  font-size: 18px;
  padding: 40px;
  background: white;
  border: #5352ed47 1px solid;
  border-radius: 10px;
  width: 100%;
}

.section.timeTable {
  flex-direction: column;
  align-items: center;
  width: 50%;
  margin: 0 auto;
}

.section.timeTable .backButton {
  position: absolute;
  top: 50px;
  left: 30px;
  cursor: pointer;
}

.section.timeTable .homeButton {
  position: absolute;
  top: 50px;
  right: 30px;
  cursor: pointer;
}

.section.timeTable .calendar {
  display: none;
  width: 100%;
}

.section.timeTable .data {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  padding: 20px;
  background-color: #4b5de90d;
  border: #4b5de9 1px solid;
  border-radius: 0 0 10px 10px;
  backdrop-filter: blur(8px);
}

.section.timeTable .masjidName {
  width: 100%;
  padding: 15px;
  padding-top: 20px;
  margin-bottom: 0;
  background-color: #fff;
  color: #4b5de9;
  font-family: Lalezar;
  font-size: 20px;
  text-align: center;
  border: #4b5de9 1px solid;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  backdrop-filter: blur(8px);
}

.section.timeTable .dataRow {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 100%;
  padding: 14px;
  background: #4b5de91c;
  border-radius: 5px;
  font-family: Cairo;
  font-size: 18px;
  font-weight: bold;
  color: #4b5de9;
}

.section.timeTable .dataRow.noBackground {
  background-color: transparent;
}

.section.timeTable .dataRow.nextPrayer {
  background-image: url(https://images.saymedia-content.com/.image/t_share/MTkzOTUzODU0MDkyODc5MzY1/particlesjs-examples.gif);
  background-size: cover;
  color: white;
}

@media screen and (max-width: 600px) {
  .img-fluid.m-4 {
    width: 150px;
    margin-top: 45px !important;
  }

  .section.timeTable .backButton {
    top: 60px;
    width: 30px;
    opacity: 0.5;
  }

  .section.timeTable .homeButton {
    top: 50px;
    width: 40px;
    opacity: 0.5;
  }

  .selectMasjid {
    padding: 0;
  }

  .selectMasjid .masjidCard .cardRightSection {
    flex-direction: column;
    align-items: end;
  }

  .section.timeTable {
    width: 90%;
  }
}

/* Note Mine */

.loader {
  border: 3px solid #f3f3f3; /* Light grey */
  border-top: 3px solid #4b5de9; /* Blue */
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.glassTexture {
  position: absolute;
  bottom: 0%;
  right: 40%;
  opacity: 0.2;
  pointer-events: none;
  animation: animateTexture 20s infinite alternate linear;
}

@keyframes animateTexture {
  from {
    filter: blur(90px) hue-rotate(0deg);
  }
  to {
    filter: blur(90px) hue-rotate(360deg);
  }
}
