/* CODING.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background-color: #000;
  font-family: Arial, sans-serif;
  margin: 0;
  padding-bottom: 40px;
  position: relative;
  z-index: 0;
}

.hamburger {
  display: none;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 10001;
}

.navbar {
  height: 40px;
  display: flex;
}

.menu {
  display: flex;
  width: 100%;
  position: fixed;
  top: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.menu.open {
  display: flex;
}

.icon {
  width: 200px;
  display: flex;
  height: 70px;
}

.logo {
  color: #8a2be2;
  font-size: 35px;
  font-family: Arial;
  padding-left: 20px;
  padding-top: 10px;
  margin-top: 5px;
}

ul {
  display: flex;
  justify-content: center;
  align-items: center;
}
ul li {
  list-style: none;
  margin: 1 1.4vw;
  font-size: 14px;
  padding: 2%;
}
ul li a {
  text-decoration: none;
  color: #fff;
  font-family: Arial;
  font-weight: bold;
  transition: 0.3s ease-in-out;
  padding: 15px;
}
ul li a:hover {
  color: #a474d6;
}

/* إزالة الخلفية الثابتة */
.main {
  width: 100%;
  height: 100%;
  margin: 0;
  position: relative;
  z-index: 2;
}

.content {
  width: 80%;
  max-width: 1200px;
  margin: auto;
  color: #fff;
  position: relative;
  padding-top: 80px;
  z-index: 2;
}

h1 {
  text-align: center;
}

span {
  text-align: center;
  color: #935ccd;
}

.chat-container {
  width: 80%;
  max-width: 800px;
  margin: 20px auto;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 27px;
  padding: 20px;
  z-index: 2;
  position: relative;
}

.chat-box {
  height: 400px;
  overflow-y: auto;
  padding: 20px;
  margin-bottom: 17px;
  border: 5px solid #a665e72b;
  border-radius: 27px;
  background: #14021a7d;
  text-align: left;
}

.message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 7px;
}

.user-message {
  background: rgba(138, 43, 226, 0.2);
  text-align: right;
  margin-left: 20%;
}

.bot-message {
  background: rgba(255, 255, 255, 0.1);
  margin-right: 20%;
}

.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: 3px solid #a665e72b;
  border-radius: 5px;
  background: #14021a7d;
  color: white;
}

.chat-input button {
  padding: 10px 20px;
  background: #842be2ed;
  font-size: 60%;
  font-weight: bold;
  border: none;
  border-radius: 7px;
  color: white;
  cursor: pointer;
}

.chat-input button:hover {
  background: #6a1cb7;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .menu {
    position: relative;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100vh);
    transition: transform 0.6s ease-in-out;
  }

  .menu.open {
    transform: translateY(0);
    animation: fadeInOpacity 0.6s forwards;
    width: 100vw;
    height: 100vh;
    position: fixed;
    opacity: 1;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: center;
    z-index: 10000;
  }

  @keyframes fadeInOpacity {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .menu ul {
    flex-direction: column;
    text-align: center;
    padding: 18px 0;
    font-size: 35px;
  }

  ul li {
    padding: 18px 0;
    font-size: 35px;
  }

  .content {
    width: 90%;
    padding-top: 60px;
  }

  .chat-container {
    width: 100%;
    padding: 15px;
  }

  .chat-box {
    height: 300px;
    padding: 15px;
  }

  .chat-input button {
    width: 20%;
  }
}
