/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
}

/* Centering the Form */
.center {
  background-color: rgb(202, 202, 202);
  position: relative; /* Changed from absolute to relative */
  margin: 50px auto; /* Center the form with auto margins */
  width: 90%; /* Responsive width */
  max-width: 880px; /* Maximum width */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(37, 37, 37, 0.1);
  overflow: auto; /* Prevent overflow */
}

.brand {
  display: flex;
  align-items: center;
  margin-right: auto; /* Ensures the brand moves to the left */
}

nav #img-align {
  height: 65px;
  width: auto;
  padding-left: 15%;
}

/* My Header */
.main-header {
  background-color: #eaeaea; /* Light gray background for the header */
  padding: 10px 20px; /* Adjust padding for better spacing */
  position: relative;
  z-index: 1000; /* Ensure it stays above other content */
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 101px; /* Set the height of the image */
  width: auto;  /* Maintain aspect ratio */
  max-height: 101px; /* Ensure it doesn't exceed 101px */
  margin-right: 10px; /* Space between logo and site title */
}

.site-title {
  font-size: 24px; /* Font size for site title */
  margin: 0; /* Remove default margin */
  font-weight: 600; /* Bold weight */
  color: #000; /* Text color */
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Aligns items to the right */
}

.navigation ul {
  display: flex;
  margin: 0px;
  padding-right:auto;
  list-style: none; /* Remove default list styling */
}

.navigation ul li {
  margin-left: 30px; /* Increased spacing between items */
}

#contactButton {
  padding: 8px 12px; /* Add padding to the button */
  border: none;
  border-radius: 5px; /* Rounded corners */
  background-color: #007bff; /* Button background color */
  color: white; /* Button text color */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s; /* Smooth transition for hover */
}

#contactButton:hover {
  background-color: #0056b3; /* Darker shade on hover */
}

/* Heading Styling */
.center h1 {
  background-color: #ff0000;
  color: white;
  text-align: center;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 24px;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2); /* Fixed box-shadow */
}

/* Form Styling */
.form {
  display: flex;
  flex-direction: column;  /* Stack items vertically */
  gap: 15px;               /* Space between items */
  width: 100%;             /* Ensure the form takes full width */
}

.textfieldsearch {
  width: 36%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.textfield {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.textfield:focus {
  border-color: #3b8eeb;
  outline: none;
}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  background-color: white;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

select:focus {
  border-color: #3b8eeb;
  outline: none;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  resize: vertical;
  min-height: 100px;
  transition: all 0.3s ease;
}

textarea:focus {
  border-color: #3b8eeb;
  outline: none;
}

/* Button Group */
.btn-group {
  display: flex;
  gap: 10px;
}

.search-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #ff9800;
  color: white;
  width: 36%;
}

.btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.add-btn {
  background-color: #4caf50;
  color: white;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.clear-btn {
  background-color: #9e9e9e;
  color: white;
}

/* Hover Effects */
.search-btn:hover {
  background-color: #e68900;
}

.add-btn:hover {
  background-color: #45a049;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

.clear-btn:hover {
  background-color: #757575;
}

/* Additional Styling */
select,
textarea {
  transition: border-color 0.3s ease;
}

select:focus,
textarea:focus {
  border-color: #3b8eeb;
}

/* Additional Label Styles */
label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* Focus Effects for Buttons */
.btn:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 10px;
  }

  .brand img {
    height: 80px;
  }

  .site-title {
    font-size: 20px;
    margin-top: 10px;
  }

  .center {
    margin: 20px auto;
    padding: 20px;
    width: 95%;
  }

  .btn-group {
    flex-direction: column;
    gap: 8px;
  }

  .btn, .search-btn {
    width: 100%;
  }

  .form {
    gap: 10px;
  }

  textarea,
  .textfield,
  select {
    font-size: 15px;
    padding: 10px;
  }

  label {
    font-size: 14px;
  }

  .navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .navigation ul li {
    margin-left: 0;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .center h1 {
    font-size: 20px;
    padding: 10px;
  }

  .brand img {
    height: 60px;
  }

  .site-title {
    font-size: 18px;
  }

  .textfield, .textfieldsearch, textarea, select {
    font-size: 14px;
  }

  .btn, .search-btn {
    font-size: 14px;
    padding: 10px;
  }
}
