
body {
    font-family: sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 20px;
    text-align: center; /* Center align content */
}

h1, h2 {
    color: #005A9C;
}

section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto; /* Center sections */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 500px; /* Limit width */
}

form {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

#poem-length-selector {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#poem-length-selector label {
    display: inline-block;
    cursor: pointer;
}

#word-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#generate-btn {
    padding: 10px 20px;
    background-color: #005A9C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#generate-btn:hover {
    background-color: #004070;
}

acrostic-poem {
    display: block;
    margin-top: 20px;
    text-align: left; /* Align poem text to the left */
}

#contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact-form label {
    text-align: left;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%; /* Make input fields take full width */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#contact-form button {
    padding: 10px 20px;
    background-color: #005A9C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-end; /* Align button to the right */
}

#contact-form button:hover {
    background-color: #004070;
}

#consultation-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#consultation-form label {
    text-align: left;
    font-weight: bold;
}

#consultation-form input,
#consultation-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#consultation-form input[type="date"] {
    /* Specific styling for date input if needed */
}

#consultation-form button {
    padding: 10px 20px;
    background-color: #005A9C;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-end;
}

#consultation-form button:hover {
    background-color: #004070;
}

#teachable-machine-section .controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

#teachable-machine-section button,
#teachable-machine-section #image-upload {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

#teachable-machine-section #image-upload {
    background-color: #6c757d;
}
#teachable-machine-section #image-upload:hover {
    background-color: #5a6268;
}

#uploaded-image-container {
    margin-top: 15px;
    min-height: 200px;
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

#uploaded-image {
    max-width: 100%;
    max-height: 400px;
    height: auto;
}

#label-container {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: left;
}

#label-container div {
    padding: 5px 0;
}


