.life-calendar-body {
  font-family: Consolas, sans-serif;
  background-color: lightgray;
}


.life-calendar-footer p {
  margin-bottom: 5px;
}

.life-calendar-controls a {
  color: black;
}

.life-calendar-controls a:visited {
  color: gray;
}

.life-calendar-title {
  text-transform: uppercase;
  font-size: 1.8em;
  color: white;
}

.life-calendar-controls {
  text-align: center;
}



#life-calendar {
width: 80%;
margin: 20px auto 10px;
text-align: center;
background: #f9f9f9; /* Light gray background */
padding: 5px 8px; /* Increased padding for spacing */
border-radius: 8px; 
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
border: 1px solid #e0e0e0; 
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

}

/* Life Calendar Box Styles */
.life-calendar-box {
  height: 12.5px;
  width: 12.5px;
  border-radius: 4px;
  display: inline-block;
  margin: 0px 2px;
  background-color: #e0e0e0;
  opacity: 0.8;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Animation for filled boxes */
.life-calendar-fullBox {
  background-color: #15846c;
  opacity: 0.8;
  animation: fillBox 0.5s ease forwards; /* Animation effect */
}

/* Keyframes for the box fill animation */
@keyframes fillBox {
  from {
    transform: scale(0.5); /* Start smaller */
    background-color: #e0e0e0; /* Initial color */
    opacity: 0.3; /* Initial opacity */
  }
  to {
    transform: scale(1); /* Full size */
    background-color: #15846c; /* Filled color */
    opacity: 0.8; /* Full opacity */
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  #life-calendar {
    width: 90%; /* Adjust width for smaller screens */
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .life-calendar-box {
    height: 10px; /* Slightly smaller size for mobile */
    width: 10px; /* Slightly smaller size for mobile */
    margin: 2px; /* Smaller gap between boxes */
  }
}



  .life-calendar-input-group {
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 10px; 
    margin-top: 10px;
  }
  
  .life-calendar-controls input[type="date"] {
    border: 2px solid #E1E1E1;
    height: 48px; /* Matches button height */
    padding: 0 15px;
    border-radius: 8px; /* Matches button border-radius */
    color: #2E2E2E;
    font-size: 1.2em;
    line-height: 1.2em; /* Adjust line-height to fit input */
    display: inline-block;
    box-sizing: border-box;
    width: 100%; /* Set to 100% width for mobile devices */
    max-width: 200px; /* Control max-width */
    background-color: #ffffff; /* White background for better visibility */
    -webkit-appearance: none; /* Remove default styling in WebKit browsers */
    -moz-appearance: none; /* Remove default styling in Firefox */
    appearance: none; /* Remove default styling */
  }
  
  /* Placeholder Styling */
  .life-calendar-controls input[type="date"]::placeholder {
    opacity: 1;
    color: #b9b9b9;
  }
  
  /* Focus Styling */
  .life-calendar-controls input[type="date"]:focus {
    border-color: #361CC1;
    outline: none; /* Remove default outline */
  }
  
  .life-calendar-controls button {
    display: none !important;
    font-size: 16px;
    line-height: 48px; /* Matches input height */
    height: 48px; /* Explicitly set height to match input */
    padding: 0 25px;
    margin-top: 0 !important;
    border-radius: 8px;
    border: 0;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    background: linear-gradient(to right, #33c8c1 0%, #119bd2 50%, #33c8c1 100%);
    background-size: 200%;
    transition: all 0.4s ease-out 0s;
    display: inline-block;
  }
  
  .life-calendar-controls button:hover {
    opacity: 0.8;
  }

  @media (max-width: 425px) {
    #life-calendar {
        width: 90%;
    }
    .life-calendar-input-group {
      display: flex;
      flex-direction: column; /* Stack items vertically */
      justify-content: center;
      align-items: center;
      gap: 12px; /* Larger gap for bigger screens */
    }

    .life-calendar-controls input[type="date"] {
      min-width: 200px; 
      width: 100%; /* Full width on mobile */
      height: 48px; /* Consistent height */
      font-size: 1em; /* Slightly smaller font size for mobile */
      padding: 0 10px; /* Adjust padding */
      -webkit-appearance: none; /* Remove WebKit appearance on mobile */
      appearance: none; /* Remove general appearance */
    }
  
    .life-calendar-controls input[type="date"],
    .life-calendar-controls button {
      width: 100%;
      max-width: 100%;
    }
    
    .life-calendar-controls input[type="date"] {
      font-size: 1em; /* Slightly larger font size */
      padding: 0 20px; /* More padding for larger screen */
    }
  
    .life-calendar-controls button {
      font-size: 1em; /* Slightly larger font size */
    }
    .life-calendar-controls button {
      display: block !important;

    }
  }
  