
* {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  box-sizing: border-box;
}

body {
  background-color: #f9f5f1; /* Beige background */
  color: #333333; /* Dark text for readability */
}

nav {
  background-color: #d9e4f5; /* Lavender Blue */
  color: #333;
  display: grid;
  grid-template-columns: 30% 60%;
  column-gap: 10%;
  padding: 10px 5%;
  border-bottom: 2px solid #c1c9e8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav .array-inputs {
  display: grid;
  grid-template-columns: 60% 40%;
  align-items: center;
  gap: 10px;
}

nav .array-inputs input {
  width: 100%;
  padding: 5px;
  border: 1px solid #c1c9e8;
  border-radius: 5px;
  background-color: #f0f4fa;
  outline: none;
}

nav .array-inputs button {
  background-color: #6c88c4; /* Lavender Blue */
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

nav .array-inputs button:hover {
  background-color: #5773a1;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav .header_right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

nav .header_right .nav-heading {
  font-size: 2.5rem;
  color: #4e4b66; /* Soft neutral color */
  margin-bottom: 10px;
}

nav .header_right .algos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

nav .header_right .algos button {
  background-color: #e7f3e7; /* Lavender Green */
  color: #4b615f;
  border: 1px solid #b9d1b9;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

nav .header_right .algos button:hover {
  background-color: #cce0cc;
  color: #2d3f3e;
}

nav .header_right .algos .butt_selected {
  background-color: #6c88c4;
  color: white;
  border: none;
}

section {
  display: grid;
  grid-template-columns: 20% 60% 20%;
  gap: 10px;
  padding: 20px;
}

section #Info_Cont1, section #Info_Cont2 {
  background-color: #f2f2f2;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section #Info_Cont1 h3, section #Info_Cont2 h3 {
  text-decoration: underline;
  color: #4e4b66;
  margin-bottom: 10px;
}

section .Complexity_Containers {
  margin-top: 20px;
}

section .Complexity_Containers .Pair_Definitions {
  margin-top: 10px;
  font-size: 1rem;
  color: #4b4b4b;
}

section .Complexity_Containers .Pair_Definitions p.Sub_Heading {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: none;
}

section #array_container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  background-color: #e7f3e7; /* Lavender Green */
  border: 2px dashed #b9d1b9;
  border-radius: 10px;
}

footer {
  background-color: #d9e4f5;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  color: #4e4b66;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    grid-template-columns: 1fr;
    text-align: center;
  }

  nav .array-inputs, nav .header_right {
    grid-template-columns: 1fr;
  }

  section {
    grid-template-columns: 1fr;
  }
}
