/* All */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Font */
.rubik-gemstones-regular {
  font-family: "Rubik Gemstones", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* Body */
body {
  background-color: #939b55;
  font-family: 'Amaranth', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

/* The Background Image */
.background {
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/bg.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left center; /* ←← هنا التغيير */
  opacity: 0.8;
  z-index: 0;
}


/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px #f8ef52;
  flex-direction: row-reverse;
}

/* Header Content */
nav {
  margin: 0px 19px;
  width: 100%;
  gap: 5;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

#logo {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

#logo img {
  width: 40px;
  height: auto;
}

#pages {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  position: relative;
  z-index: 1;
}

#pages a {
  text-decoration: none;
  color: #939b55;
  background-color: #c43e2e;
  padding: 10px 20px;
  border-radius: 25px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#pages a:hover {
  color: #c43e2e;
  background-color: #939b55;
}

/* Footer */
footer {
  font-family: "Rubik Gemstones", system-ui;
  color: #939b55;
  background-color: #c43e2e80;
  text-align: center;
  padding: 3px;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 20px;
  letter-spacing: 5px;
  font-weight: normal;
  font-style: bold;
}

/* Responsive */
@media (max-width: 600px) {
  #pages {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  #pages a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }
}
