body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #1e3799;
  color: #333;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}
.footer-links {
  font-size: 14px;
}
.footer {
  background-color: #222;
  color: #eee;
  padding: 30px 15px 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.linkFooter {
  color: #fff;
  font-size: 14px;
}
.linkFooter li {
  color: #fff;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  height: 260px;
  margin: auto;
}

.footer-section {
  flex: 1 1 300px;
  margin: 10px;
}

.footer-title {
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 4px;
  color: #00d2ff;
}

.footer-text {
  color: #FFF;
  font-size: 14px;
  line-height: 1.4;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #eee;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: #00d2ff;
}
.prgF {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  padding: 7px 0;
  border-top: 1px solid #fff;
  font-size: 10px;
  color: #fff;
  margin-top: 10px;
}
.bdy {
  background-color: #b3e5fc;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  box-shadow: 5px 5px 12px #fff;
  border-radius: 10px;
  border: 3px solid gray;
  max-width: 100%;
  width: 95%;
  padding: 20px;
  box-sizing: border-box;
}
.red {
  color: orange;
}
.h1 {
  text-align: center;
  font-size: 3em;
  margin-bottom: 10px;
  margin-top: 20px;
  word-wrap: break-word;
}

.magic {
  color: #f0f2f5;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  text-shadow: 3px 3px 5px #999;
}

.sys {
  color: #0f2b56;
  font-style: italic;
  font-family: 'Arial', sans-serif;
  text-shadow: 3px 3px 3px #ccc;
  background-color: #fff;
  margin-bottom: 15px;
}

.schema {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.nodeTop {
  width: 80%;
  text-align: center;
  z-index: 1;
  margin-bottom: 20px;
  font-size: 18px;
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1f1f2e, #2c2c3e);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
.nodeTop1 {
  width: 90%;
  text-align: center;
  z-index: 1;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 18px;
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-sizing: border-box;
  background: linear-gradient(135deg, #1f1f2e, #2c2c3e);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}
.node1, .node2 {
  border-radius: 15px;
  padding: 20px;
  margin-top: 30px;
  margin-left: 40%;
  font-size: 18px;
  width: 80%;
  background: linear-gradient(135deg, #1f1f2e, #2c2c3e);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  color: #fff;
  text-align: center;
  z-index: 1;
}

.bottom-nodes {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
}

.branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h4 {
  font-size: 22px;
  margin-left: 2px;
}

h6 {
  font-size: 20px;
  margin-left: 4px;
}

ul {
  font-size: 16px;
  text-align: left;
  padding: 0 10px;
}

/* === Responsive mobile === */
@media (max-width: 600px) {
  .h1 {
    font-size: 2em;
  }
  .scroll-wrapper {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 10px;
  }
   .scroll-wrapper > div {
    flex: 0 0 80%; /* كل div ياخد العرض الكامل */
    scroll-snap-align: start;
    box-sizing: border-box;
  }
  .nodeTop {
    width: 95%;
    font-size: 16px;
  }

  .bdy {
    padding: 10px;
    width: 95%;
  }
  .footer-container {
  display: flex;
  flex-wrap: wrap;
  text-align: center;
  justify-content: space-between;
  max-width: 1200px;
  height: 800px;
  margin: auto;
}
.footer-links {
  text-align: center;
}
  .bottom-nodes {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px;
    width: 100%;
  }

  .bottom-nodes::-webkit-scrollbar {
    display: none;
  }

  .branch {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }

  .node1, .node2 {
    width: 100%;
    font-size: 16px;
    padding: 15px;
  }

  h4 {
    font-size: 18px;
  }

  h6 {
    font-size: 17px;
  }

  ul {
    font-size: 16px;
  }
}