/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f4f4f9;
}

/* Header styles */
header {
  text-align: center;
  margin: 20px 0;
}

.logo {
  max-width: 100px;
  width: 100%;
  height: auto;
}

/* Main content area */
main {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Sections within the main content */
section {
  margin: 20px 0;
}

/* Hidden elements (e.g., when showing results) */
.hidden {
  display: none;
}

/* Form elements (select, input, button) */
select,
button,
input {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

/* Button styles */
button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #0056b3;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
  font-size: 14px;
}

table th {
  background-color: #f0f0f0;
  font-weight: bold;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  header {
    margin: 10px 0;
  }

  .logo {
    max-width: 200px;
  }

  main {
    width: 100%;
    margin: 10px;
    padding: 15px;
  }

  select,
  button,
  input {
    font-size: 14px;
    padding: 10px;
  }

  table th,
  table td {
    font-size: 12px;
    padding: 8px;
  }
}

/* Extra small devices (smaller than 480px) */
@media (max-width: 480px) {
  main {
    padding: 10px;
  }

  .logo {
    max-width: 150px;
  }

  select,
  button,
  input {
    font-size: 14px;
    padding: 8px;
  }

  table th,
  table td {
    font-size: 12px;
    padding: 6px;
  }
}

/* Remove number input spinner (increment/decrement buttons) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield; /* For Firefox */
}

@media screen and (max-width: 600px) {
  .logo {
    max-width: 50px;
  }