body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #F3E8D8;
  color: black;
}

.banner {
  background-color: #E7C8A0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 260px;
  padding: 0;
  overflow: hidden;
}

.banner img {
  width: 220px;
  height: auto;
  margin-top: 10px;  /* gentle spacing */
}

.banner-title {
  margin-top: 5px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #5A3A22;
  font-family: 'Baloo 2', cursive;
  text-align: center;
}

.banner p {
  color: white;
  margin: 5px 0;
  font-size: 16px;
}

#month-select {
  padding: 0.5rem;
  font-size: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.month-select-container {
  margin: 1rem 20px; /* top-bottom 1rem, left-right 20px */
  display: inline-block; /* keeps label and select together */
}

.month-select-container label {
  margin-right: 10px;
  font-weight: bold;
  font-size: 1rem;
  vertical-align: middle;
}

.month-select-container select {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  vertical-align: middle;
}

#expenses-table-container {
  margin-top: 20px;
}

.blocks-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 40px 20px;
  flex-wrap: wrap;
}

.block {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px 30px;
  width: 250px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.block {
  background-color: #E7C8A0;      /* warm honey */
  border: 1px solid #D6B089;      /* gentle autumn border */
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
  margin: 0 10px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}

.block:hover {
  box-shadow: 0 10px 16px rgba(0,0,0,0.15);
  background-color: #d7b185; /* slightly deeper honey */
  transform: translateY(-3px);
}

.block h3 {
  color: #0f3b66;
  margin-bottom: 10px;
}

.block p {
  color: #222;
  font-size: 0.95rem;
}

.block:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.block h3 {
  margin-bottom: 12px;
  color: #0f3b66; /* your deep blue */
  font-weight: 700;
}

.block p {
  font-size: 14px;
  color: #444;
}

.block {
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  font-size: 1rem; /* baseline font size */
  user-select: none; /* prevent accidental text selection on tap */
}

.block-img {
  width: 70%;          /* scales the artwork nicely */
  max-width: 260px;    /* keeps it tidy on large screens */
  height: auto;
  display: block;
  margin: 0 auto;      /* centers the image */
  user-select: none;   /* no accidental text dragging */
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
  .block:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transform: translateY(-5px);
  }
}

.modal {
  max-width: 1000px;       /* Wider popup */
  width: 95%;
  max-height: calc(90vh - 120px); /* Leaves space for button */
  background: #fff;
  padding: 20px;
padding-bottom: 80px; /* ✅ This is the only new line you're adding */
  border-radius: 8px;
  overflow-y: auto;        /* Enable vertical scrolling inside modal */
  overflow-x: auto;        /* Keep your horizontal scroll */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ---------------------------
   AUTUMN INPUT FIELDS
--------------------------- */

.modal input[type="text"],
.modal input[type="number"],
.modal select {
  background-color: #F3E8D8;    /* warm latte */
  border: 1px solid #D0B48C;    /* gentle honey border */
  padding: 6px;
  border-radius: 6px;
  color: #4A2E14;               /* warm brown text */
  font-size: 14px;
}

.modal input[type="text"]:focus,
.modal input[type="number"]:focus,
.modal select:focus {
  outline: none;
  border: 1px solid #BA9667;    /* deeper honey when active */
  box-shadow: 0 0 5px rgba(186, 150, 103, 0.5);
}

/* Checkbox styling */
.modal input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #BA9667;        /* warm honey tick colour */
}

#finance-table {
  width: 100%;
  border-collapse: collapse;
}

#finance-table th,
#finance-table td {
  padding: 8px 10px;
  min-width: 120px;
  text-align: center;
}

#finance-table td:last-child {
  min-width: 80px;  /* Makes sure Delete column fits */
}

/* Mobile tap/focus */
.block:focus,
.block.active {
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  transform: translateY(-5px);
  outline: none;
}

/* Responsive font sizing for readability */
@media (max-width: 600px) {
  .block {
    font-size: 0.95rem;
    padding: 1.5rem 1rem;
  }
}

/* Default desktop styling - keep your full banner glory here */


.footer-text {
  text-align: center;
  margin: 40px 20px 10px 20px;
  font-size: 14px;
  color: #333;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .footer-text {
    font-size: 13px;
    padding: 0 10px;
  }
}


/* 🌰 Yearly Acorn Log Table */
#yearly-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Baloo 2', cursive;
  margin-top: 1rem;
}

#yearly-table th {
  background-color: #C8976A;
  color: white;
  padding: 12px 20px;
  text-align: left;
  font-size: 0.95rem;
  border: 1px solid #b5834f;
}

#yearly-table td {
  padding: 11px 20px;
  text-align: left;
  border: 1px solid #e0c9a8;
  font-size: 0.95rem;
  color: #4A2E14;
}

#yearly-table tbody tr:nth-child(even) {
  background-color: #F3E8D8;
}

#yearly-table tbody tr:nth-child(odd) {
  background-color: #FDF6ED;
}

#yearly-table tbody tr:hover {
  background-color: #E7C8A0;
}

#yearly-table tfoot td {
  background-color: #E7C8A0;
  font-weight: bold;
  color: #5A3A22;
  border-top: 2px solid #C8976A;
  padding: 12px 20px;
}
