/* General body styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

    .logo {
        height: 30px;
        width: 30px;          /* make it square for a perfect circle */
        border-radius: 50%;   /* this makes it round */
        margin-top: 5%;
        margin-left: -74%;

    }



/* Navbar styles */
.navbar {
    background-color: green;
    color: white;
    padding: 15px;
    opacity: 0.97;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}


/* Navbar links styles */
.nav-list {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list li a {
  border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 12px;
    transition: background-color 0.3s ease, padding 0.3s ease;
    border-radius: 14px;
}

/* Hover effects for links */
.nav-list li a:hover {
    background-color: #55;
    padding: 8px 16px;  /* Slightly increase padding on hover */
}

/* Hamburger icon for mobile view */
.hamburger {
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: none;
}

.hamburger:focus,
.hamburger:active {
    background: none; /* Prevents gray background when clicked */
    outline: none;
    box-shadow: none; /* Also removes Android/Chrome tap highlight */
}

/* Mobile styles (Hamburger menu) */
@media (max-width: 768px) {
    .nav-list {
        position: absolute;
        top: 90px;
        left: 1.5%;
        border-radius: 12px;
        width: 90%;
        background-color: #133;
        flex-direction: column;
        align-items: center;
        padding-top: 10px;

        /* Hide by default */
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 1.9s ease, transform 1.9s ease;
    }

    .nav-list.active {
        display: flex; /* Ensure it's flex when active */
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-list li {
        margin: 15px 0;
    }

    .hamburger {
  position: absolute;
  left: 10px;  /* distance from left edge */
  top: 50%;    /* vertically center relative to nav */
  transform: translateY(-50%);
  display: block;
  cursor: pointer;
  z-index: 1000; /* make sure it’s on top */    }
}

/* Main content area */
main {
    margin-top: 80px;
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 3em;
    color: #333;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    color: #555;
}

/* Button styles for smooth transitions */
button {
    border: none;
    padding: 10px 20px;
    background-color: #333;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #555;
}

/* Scrollbar styles (optional) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}



@media (max-width: 768px) {
    .menu-title {
        order: 1;
        width: 100%;
        margin-left: 59%; /* This will push it ~60% from the right */
        margin-top: 3%;
      margin-bottom: 10px;
    }

  .logo {
    height: 30px; /* adjust as needed */
    width: 30px;          /* make it square for a perfect circle */
    margin-top: 0%;
    margin-left: 750%; /* This will push it ~60% from the right */

  }
  
}


/* Classic Black, Gray, and White Design */
body {
  background-color: #ccffcc; /* Dark background */
  color: #e0e0e0; /* Light gray text */
  font-family: 'Times New Roman', Times, serif; /* Classical serif font */
  margin: 10;
  padding: 0;
  display: flex; /* Set the body to use flexbox */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  flex-direction: column; /* Stack the elements vertically */
}

/* Title styling */
h1 {
  font-size: 1em;
  text-align: center;
  color: black; /* White text color */
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: 'Times New Roman', serif;
  text-shadow: 2px 2px 5px rgba(255, 247, 247, 0.6); /* Subtle shadow effect */
}

/* Chat area styling */
#chat-area {
  width: 80%;
  scrollbar-width: thin; /* Thin scrollbar */
  overflow-y: auto; /* Ensure vertical scroll is available */
  scrollbar-color: #8a2be2 #222; /* Thumb color and track color for Firefox */
  height: 200px; /* Increased height to 600px for more visibility */
  border: 1px solid #444; /* Dark border */
  margin-top: 20px;
  padding: 15px;
  background-color: #333; /* Dark gray background for chat */
  color: #ccc; /* Light gray text for contrast */
  box-sizing: border-box;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6); /* Subtle shadow effect */
  
  /* Centering content inside the chat area */
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontally center the content */
  resize: both;
  overflow: auto; /* Allow scrolling if content overflows */
}

/* Input area styling */
#input-area {
  display: flex;
  justify-content: center; /* Center the content horizontally */
  align-items: center;
  flex-direction: column;
  width: 80%; /* Set width of the input area */
  max-width: 600px; /* Same max width as chat-area */
  margin-top: 20px;
}

/* Message input styling */
#message-input, #user-name-input, #key-input {
  width: 80%; /* Make input fields 80% of the parent width */
  padding: 12px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #222; /* Dark background for input */
  color: #ccc; /* Light text for input */
  font-size: 16px;
  font-family: 'Times New Roman', Times, serif;
  margin-bottom: 10px;
}

#message-input::placeholder {
  color: #888; /* Lighter placeholder text */
}

/* Send button styling */
#send-btn, #refresh-btn, #delete-btn {
  width: 80%; /* Set buttons width to 80% */
  padding: 12px 24px;
  border: none;
  background-color: #888; /* Classic gray color for buttons */
  color: #121212; /* Dark text for contrast */
  cursor: pointer;
  border-radius: 6px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
  text-transform: uppercase;
  margin-top: 10px;
  transition: background-color 0.3s ease-in-out;
}

/* Hover effects for buttons */
#send-btn:hover, #refresh-btn:hover {
  background-color: #555; /* Darker gray on hover */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Subtle dark shadow effect on hover */
}

/* Hover effect for message elements */
.message:hover {
  background-color: #555; /* Slightly lighter background for messages on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
  transition: all 0.3s ease;
}

/* Logo styling */
#logo {
  width: 150px; /* Set the desired width of the logo */
  height: auto;
  margin-top: 5%; /* More space above the logo */
  margin-bottom: 10px; /* Less space below the logo */
  display: flex; /* Set to use flexbox */
  justify-content: center; /* Center content horizontally */
  align-items: center; /* Center content vertically */
  flex-direction: column; /* Stack the elements vertically */
  margin-left: auto;
  margin-right: auto; /* Center the logo horizontally */
}
/* Message element styling */
.message {
  margin-bottom: 15px;
  align-content: center;
  padding: 10px;
  background-color: #444; /* Darker background for messages */
  border-left: 5px solid #888; /* Light gray border for messages */
  border-radius: 8px;
  color: #ddd; /* Light gray text */
  max-width: 80%;
  font-family: 'Times New Roman', Times, serif;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4); /* Subtle shadow effect */
}

.message strong {
  color: #ffffff; /* Highlight user names in white */
}