/* styles.css (resides in /var/www/html */

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
  overflow-y: hidden;
}
html, body {
  height: 100%;
}

header {
  position: relative; /* Changed from fixed to relative */
  width: 100%;
  height: 10vh;
  background-color: #2b2b2b;
  padding: 2px 10px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.logged-in {
  height: 20px; /* Adjust the height value */
}

header.logged-in h1 {
  font-size: 0.8rem; /* Adjust the font size as needed */
}

@media screen and (min-width: 601px) {
  header.logged-in h1 {
    font-size: 1rem; /* Adjust the font size for larger screens */
  }
}

#top-bar {
  background-color: #2b2b2b;
  width: 100%;
  padding: 5px 5px; /* Adjust the padding values */
  display: flex;
  align-items: center;
}

#top-bar h1 {
  font-size: 1.5rem; /* Adjust the font size as needed */
  color: #ffffff;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 600px) {
  #top-bar h1 {
    font-size: 1.2rem; /* Adjust the font size for smaller screens */
  }
}

@media screen and (min-width: 601px) {
  #top-bar h1 {
    font-size: 2rem; /* Adjust the font size for larger screens */
  }
}

header {
  /* header styles here */
}

footer {
  /* footer styles here */
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh; /* Take up 90% of the viewport height */
}

.content {
  width: 80%;
  max-width: 400px;
}

.login-form {
  background-color: #2b2b2b;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-heading {
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 2px 2px #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 600px) {
  .login-heading {
    font-size: 1.2rem;
  }
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 10px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 1.2rem;
  background-color: #000000; /* This is black */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.form-group-toggle {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.toggle-label {
  font-size: 1.2rem;
  color: #ffffff;
  margin-right: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-left: 10px;
}
.toggle-input {
  display: none;
}

.toggle-container {
  display: inline-block;
  width: 60px;
  text-align: right;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ccc;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid #000000; /* Add a black border */
}

.toggle-slider:before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  border: 1px solid #000000; /* Add a black border */
}

.toggle-input:checked + .toggle-slider {
  background-color: #3cba54;
  border: 1px solid #000000; /* Add a black border */
}

.toggle-input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.login-button {
  width: 100%;
  padding: 10px;
  font-size: 1.2rem;
  background-color: #3cba54;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid #000000; /* Add a black border */
}

.login-button:hover {
  background-color: #357e3e;
}

.error-message {
  color: red;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 10px;
}

.server-error-message {
  color: red;
  text-align: center;
  margin-top: 10px;
}

/* New menu styles */
#menu-btn {
  display: none;
  cursor: pointer;
  font-size: 24px; /* Increase the font size */
  margin-right: 10px; /* Add right margin for alignment */
  vertical-align: middle; /* Align vertically with the header text */
}

@media screen and (max-width: 600px) {
  #menu-btn {
    display: block;
    position: fixed;
    top: 30px;
    right: 10px;
    font-size: 40px; /* Increase the font size for mobile view */
  }
}

#menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#menu li {
  display: inline-block; /* Change display to inline-block */
  margin-right: 10px; /* Add right margin */
}

#menu li a {
  display: inline-block;
  padding: 10px;
  background-color: #272727;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid #000000;
  border-radius: 0;
  transition: background-color 0.3s ease;
}

#menu li a:hover {
  background-color: #373737;
}

@media screen and (max-width: 600px) {
  #menu-btn {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 20px;
    z-index: 9999;
  }

  #menu {
    position: fixed;
    top: 40px; /* Adjust the top position to match the height of the header */
    right: -250px; /* Hide the menu off-screen initially */
    width: 200px; /* Adjust the width of the menu container */
    height: 100vh;
    background-color: #2b2b2b;
    padding: 20px;
    transition: right 0.3s ease; /* Use 'right' for the sliding animation */
    overflow: auto; /* Allow menu contents to be scrolled */
  }

  #menu.hidden {
    right: -250px; /* Hide the menu off-screen */
  }

  #menu.visible {
    right: 0; /* Slide the menu in from the right side */
  }
}

/* ... other styles ... */
