:root {
  --primary-color: rgb(241, 196, 15);
  --secondary-color: rgb(106, 27, 154);
  --accent-color: rgb(198, 198, 17);
  --nav-bg-r: rgb(41, 53, 148);
  --nav-bg-l: rgb(25, 117, 210);
  --clock-bg: rgba(0, 0, 0, 0.6);
  --tooltip-bg: rgba(102, 51, 153, 0.7);
  --footer-gradient: rgb(40, 53, 147);
}

body {
  background: rgb(184, 180, 180);
  direction: rtl;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--nav-bg-r), var(--nav-bg-l));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  height: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
  transition: top 0.3s;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.menu-item {
  color: rgb(255, 255, 255);
  text-decoration: none;
  padding: 3px;
  font-size: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.menu-item img {
  width: 25px;
  height: 25px;
  transition: transform 0.2s ease;
}

.menu-item:hover {
  transform: scale(1.2);
  color: #ffcc00;
}



#profile-info {
  font-size: 14px;
  color: #b14b1ce1;
  font-weight: bold;
}

#clock-container {
  background: var(--clock-bg);
  direction: rtl;
  padding: 5px 10px;
  border-radius: 5px;
  color: #fff;
  font-weight: bold;
}

#weekdays {
  display: flex;
  flex-direction: row-reverse;
  gap: 3px;
  font-size: 12px;
}

#weekdays span {
  padding: 2px 6px;
  background: var(--clock-bg);
  border-radius: 3px;
  color: #fff;
  opacity: 0.7;
}

.today-highlight,
.today {
  color: yellow;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0px 0px 10px yellow;
}

#occasion {
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
  color: rgb(255, 255, 0);
  font-size: 16px;
  font-weight: bold;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }

  100% {
    opacity: 1;
  }
}

#prophet-prayer {
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: bold;
  margin-top: 5px;
  color: rgb(241, 196, 15);
}

.footer {
  direction: rtl;
  background: var(--footer-gradient);
  color: rgb(241, 196, 15);
  border-top: 2px solid rgb(140, 58, 43);
  text-align: center;
  padding: 15px 0;
  font-size: 1em;
  position: relative;
  width: 75%;
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1;
  pointer-events: auto;
  animation: footerPulse 5s ease infinite;
}

.footer a {
  color: rgb(255, 87, 51);
  font-weight: bold;
}

@keyframes footerPulse {

  20%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.timeline-nav {
  position: fixed;
  top: 100px;
  bottom: 5px;
  background: rgb(255, 255, 255,0.8);
  padding: 7px;
  border-radius: 10px;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease-in-out;
}
.timeline-nav.open {
  right: 0px;
}

.timeline-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-nav ul li {
  margin-bottom: 8px;
}

.timeline-nav ul li a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.timeline-nav ul li a:hover {
  transform: scale(1.2);
  color: rgb(255, 204, 0);
}

.events-content {
  margin: 20px auto;
  padding: 20px;
  max-width: 800px;
  flex: 1;
}

.events-content section {
  background: #fff;
  margin-bottom: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.events-content h2 {
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.events-content p {
  line-height: 1.6;
  font-size: 1rem;
  color: #333;
  margin-bottom: 15px;
}

.events-content img.responsive {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 5px;
}

.back-to-home {
  display: inline-block;
  position: relative;
  margin-right: 15px;
}

.back-to-home img {
  transition: all 0.3s ease;
  border-radius: 50%;
}

.back-to-home:hover img {
  transform: scale(1.2);
}

.back-to-home:hover::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.toggle-button {
  position: fixed;
  top: 65px;
  right: 5px;
  background: rgb(172, 104, 4);
  border: none;
  color: black;
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
  display: block;
}

.toggle-button:hover {
  background: rgb(255, 193, 7);
}

