/* General styles */
body {
  font-family: "Roboto", sans-serif;
  background-color: #1a1a1d;
  color: white;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Menu styles */
.menu {
  width: 250px;
  background-color: #121212;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  display: block; /* Ensure the menu is visible by default */
}

.menu h2 {
  font-size: 34px;
  color: rgb(171, 24, 23);
  margin-bottom: 15px;
}

.menu ul {
  list-style: none;
  padding: 0;
}

.menu ul li {
  margin-bottom: 10px;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.menu ul li a:hover {
  color: rgb(171, 24, 23);
}

/* Content styling */
.content {
  margin-left: 250px; /* Space for the menu */
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}

/* Card styling */
.card {
  border: 2px solid white;
  background-color: transparent;
  color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  max-width: 900px; /* Restore the original card width */
  width: 100%;
  display: flex;
  gap: 20px; /* Add space between form and results */
}

.card h3 {
  font-size: 28px;
  color: white; /* Updated to brand red */
  margin-bottom: 15px;
}

.form-section,
.result-section {
  flex: 1;
  padding: 0 15px; /* Add spacing inside sections */
}

.result-section {
  border-left: 2px solid white; /* Visual separation */
  padding-left: 20px;
}

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

.form-section input,
.form-section select {
  width: 100%;
  padding: 12px; /* Increased padding for consistent height */
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: #222;
  color: white;
}

.form-section input:focus,
.form-section select:focus {
  outline: 2px solid rgb(171, 24, 23);
}

.result-section p {
  margin: 5px 0;
}

/* Logo styling */
.logo-section {
  margin-top: 20px;
  text-align: center;
}

.logo-section img {
  max-width: 200px;
  height: auto;
}

.menu-toggle {
  background-color: rgb(171, 24, 23);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  cursor: pointer;
  display: none; /* Default to hidden */
}

.menu-toggle:hover {
  background-color: rgb(171, 24, 23);
}

* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  word-wrap: break-word;
}

.diag {
  margin-top: 40px;
}

#results {
  min-height: 70px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .menu {
    display: none;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .menu.open {
    display: block;
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  .content {
    margin-left: 0;
    margin-top: 200px;
  }

  .card {
    flex-direction: column; /* Stack sections on smaller screens */
  }
}
