/* Navigation */
.main-nav {
  list-style: none;
  padding: 0;
  margin: 2em auto;
  display: flex;
  gap: 0.5em;
  justify-content: center;
  background: linear-gradient(135deg, #fdff76, #ffd600);
  border-radius: 16px;
  max-width: 700px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: block;
  color: #000000;
  text-decoration: none;
  padding: 0.7em 1.2em;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.main-nav a:hover,
.main-nav a:focus {
  background: #ffeb3b;
  color: #000;
  transform: scale(1.05);
}

/* Table */
table {
  border-collapse: collapse;
  width: 100%;
  background-color: #fdfdfd;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

th,
td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
}

thead {
  background-color: #333;
  color: white;
}

/* Body & Background */
body {
  font-family: Arial, sans-serif;
  background: #f7f7fa;
  padding: 2rem;
  max-width: 1050px;
  margin: 0 auto;
  /* background-image: url(https://itechsoul.com/wp-content/uploads/2025/07/Delta-Fitness-Authority.jpg);
  background-color: rgba(0, 38, 255, 0.24); */
  background-image: url(https://itechsoul.com/wp-content/uploads/2025/07/Delta-Fitness-Authority.jpg);
  background-color: #020024;
  background-color: linear-gradient(
    90deg,
    hsl(243, 100%, 20%) 0%,
    rgba(9, 9, 121, 1) 59%,
    rgba(0, 212, 255, 1) 100%
  );
  background-blend-mode: multiply;

  background-blend-mode: overlay;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
}

/* Heading */
h1 {
  color: #1a237e;
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Form */
form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-top: 1rem;
}

fieldset {
  border: 1px solid #c5cae9;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

legend {
  font-weight: bold;
  color: #3949ab;
  font-size: 1.1em;
}

label {
  display: block;
  margin-bottom: 0.3em;
  margin-top: 1em;
  font-weight: bold;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.2em;
  border: 1px solid #b0bec5;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1em;
}

.toppings label {
  display: inline-block;
  margin-right: 1em;
  margin-top: 0;
}

/* Button */
button {
  display: block;
  margin: 2rem auto 0;
  padding: 0.8em 2.2em;
  background: linear-gradient(135deg, #001aff, #00aeff);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

button:hover {
  background: linear-gradient(135deg, #e65100, #ffa600);
  transform: scale(1.07);
}

/* Content Box */
.content {
  max-width: 1000px;
  margin: 0rem auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  /* text-align: center; */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* About Section */
figure {
  max-width: 850px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

figure > figcaption {
  padding: 0px 0px 0px 10px;
  font-weight: bold;
}

img {
  border-radius: 12px;
  max-width: 200px;
}
video {
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  border-radius: 12px; /* شكله مودرن */
}

/* للشاشات الصغيرة (موبايل أقل من 768px) */
@media (max-width: 768px) {
  .main-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.002em;
    font-size: 0.9em;
    padding: 0.4em 0.9em;
    max-width: 100%;
    text-align: center;
    flex-wrap: nowrap; /* مهم عشان يفضل في سطر واحد */
    white-space: nowrap; /* يمنع تكسير النص */
    background: linear-gradient(135deg, #fdff76, #ffd600);
    border-radius: 12px;
  }
  .main-nav a {
    padding: 1em;
    font-size: 1.1em;
  }

  .content {
    padding: 1.5rem;
  }

  button {
    width: 100%;
  }
  .main-nav li {
    flex: 1 1 auto;
    text-align: center;
  }
  img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    max-width: 150px;
  }
  video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 12px;
  }

  /* form {
    width: 100%;
  } */
}
@media (max-width: 350px) {
  .main-nav a {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
  }
  body {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
  }
}
