@import url(./fonts.css);

:root {
  font-size: 16px;
}

* {
  box-sizing: border-box;
  text-transform: capitalize !important;
  font-family: reg;
}

body {
  background-color: #000;
  color: #fff;
}

.bigBG {
  position: fixed;
  background-image: url(../img/bg-big.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: brightness(60%);
  z-index: -1111;
}

.smallBG {
  display: none;
  position: fixed;
  background-image: url(../img/bg-small.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  width: 100vw;
  height: 100vh;
  filter: brightness(60%);
  z-index: -1111;
}

.loader {
  width: 100%;
  height: 100vh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  inset: 0;
  z-index: 111;
  .spinner {
    width: 40px;
    height: 40px;

    position: relative;
    margin: 100px auto;
    .double-bounce1,
    .double-bounce2 {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background-color: #333;
      opacity: 0.6;
      position: absolute;
      top: 0;
      left: 0;

      -webkit-animation: sk-bounce 2s infinite ease-in-out;
      animation: sk-bounce 2s infinite ease-in-out;
    }

    .double-bounce2 {
      -webkit-animation-delay: -1s;
      animation-delay: -1s;
    }
  }
}

.innerPanel {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 5px;

  .cityindicate {
    margin-top: 1.25rem;
    span {
      font-family: bold !important;
    }
  }

  .prayerHeader {
    margin-top: 0.625rem;
    font-family: bold !important;
  }

  #currTime {
    width: fit-content;
    margin: 0.625rem auto;
    padding: 0.313rem;
    background-color: transparent;
    color: #fff;
    border-radius: 625rem;
    box-shadow: 0 0 625rem #fff;
  }

  input {
    width: 50%;
    margin-top: 0.625rem;
    border: none;
    outline: none;
    border-radius: 0.625rem;
    padding: 0.313rem 0.625rem;
    box-shadow: 0 0 0.625rem #fff;
  }

  .currweatherItem {
    background-color: #0a76be42;
    backdrop-filter: blur(313rem);
    color: #fff;
    border-radius: 0.625rem;
    width: fit-content;
    padding: 0.313rem 0.625rem;

    img {
      display: block;
      margin: 0.313rem auto;
    }
    span {
      display: block;
    }
  }

  .weatherForecast {
    margin: 1.25rem 0rem;
    justify-content: center;
    align-items: center;
    gap: 0.313rem;

    .forecastItem {
      background-color: #0a76be42;
      backdrop-filter: blur(313rem);
      color: #fff;
      border-radius: 0.625rem;
      width: fit-content;
      padding: 0.313rem 0.625rem;
    }
  }

  .prayer {
    margin-bottom: 0.625rem;
    justify-content: center;
    align-items: center;
    gap: 0.313rem;

    .prayerItem {
      background-color: #0a76be42;
      backdrop-filter: blur(0.313rem);
      color: #fff;
      border-radius: 0.625rem;
      width: fit-content;
      padding: 0.313rem;

      img {
        margin: 0.313rem auto;
      }
    }
  }

  .date {
    justify-content: center;
    align-items: center;
    margin: 1.25rem 0rem;
    gap: 0.625rem;

    .innerDate {
      font-family: bold !important;
      background-color: transparent;
      color: #fff;
      padding: 0.313rem;
      border-radius: 1.25rem;
      box-shadow: 0 0 625rem #fff;

      img {
        margin: 0rem 0.313rem;
      }
    }
  }

  .linkGrp {
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    margin: 1.25rem 0rem;

    .link {
      text-decoration: none;
      color: #fff;
      background-color: transparent;
      width: fit-content;
      padding: 0.313rem;
      border-radius: 1.25rem;
      box-shadow: 0 0 625rem #fff;
      img {
        margin: 0rem 0.313rem;
      }
    }
  }
}

/* responsive */
@media screen and (max-width: 1080px) {
  :root {
    font-size: 14px;
  }

  .smallBG {
    display: block;
  }

  .bigBG {
    display: none;
  }
  .innerPanel {
    input {
      margin-top: 1.25rem;
    }
  }
  .quran {
    margin-bottom: 1.25rem;

    .toQuran {
      width: fit-content;
      filter: drop-shadow(0 0 0.625rem #fff);

      img {
        width: 50%;
      }
    }
  }
}

/* animations */
@-webkit-keyframes sk-bounce {
  0%,
  100% {
    -webkit-transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1);
  }
}

@keyframes sk-bounce {
  0%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  50% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}
