/* Overall page styling */
body {
    font-family: Verdana, sans-serif;
    background-color: #b4bcb4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Container for the form */
.form-container, .logging-container {
    background-color: #dfdfdf;
    padding: 2rem;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 350px; /* Default fixed max width for larger screens */
    max-height: 600px;
}

.logging-container {
  color: #555;
    max-width: 500px;
}

/* Image container styling */
.image-container {
    align-items: center;
    justify-items: center;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

.image-container img {
    height: 100px;
    object-fit: contain; /* Keeps aspect ratio and fits inside */
}

/* Header styling */
h1 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #555;
}

h2 {
  font-size: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #555;
}

/* Spacing for each form group */
form > div {
  margin-bottom: 1.5rem;
}

/* Label styling */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  color: #555;
}

/* Input styling */
input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #efefef;
    color: #555;
    font-size: 1.2rem;
}

input:focus {
    outline: 1px solid #8F9F88;
}

textarea {
    resize: none;
    width: 100%;
    height: 95%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #efefef;
    color: #555;
    font-size: 0.8rem;
}

textarea:focus {
    outline: 1px solid #8F9F88;
}

/* Submit button styling */
button {
  width: 100%;
  padding: 0.75rem;
  background-color: #8F9F88;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #445F39;
}

button:disabled {
  background-color: #ccc;
  color: #555;
}

/* Styling for the error message */
.success {
    justify-self: center;
    color: #445F39;
}

.error {
    justify-self: center;
    color: #cc5535;
}

.hidden {
    visibility: hidden;
}

/* Flex container for zip and city */
.zip-city-container {
  display: flex;
  gap: 1rem; /* Space between fields */
}

/* ZIP field takes 1/3 of the container */
.zip-field {
  flex: 1;
}

/* City field takes 2/3 of the container */
.city-field {
  flex: 2;
}


.log-entry {
  margin-bottom: 8px;            /* Space between entries */
  padding: 5px 10px;             /* Padding for readability */

  white-space: pre-wrap;         /* Preserves whitespace and allows wrapping */
  word-wrap: break-word;         /* For legacy browser support */
  overflow-wrap: break-word;     /* Modern equivalent for breaking long words */
}

/* Responsive design for mobile devices */
@media (max-width: 600px) {
    body {
        justify-content: start;
    }

  .form-container {
      width: 90%;
      max-width: none;
  }

  .logging-container {
      width: 90%;
      max-height: none;
      max-width: none;
  }

  textarea {
      height: 700px
  }

  .content-container {
      flex-direction: column;
      align-items: center;
  }

  input[type="text"] {
      font-size: 1rem;
    }
}