body {
    font-family: sans-serif;
    margin: 20px;
    background-color: #f4f4f4;
    color: #333;
}

/* Style for copyright notice at the top of the app */
.app-copyright {
    font-size: 0.75em;
    color: #adb5bd; /* Light gray */
    text-align: center;
    padding-bottom: 10px; /* Space below copyright */
    margin-bottom: 10px; /* Space below copyright */
    border-bottom: 1px solid #eee; /* Optional separator */
}

h1, h2 {
    text-align: center;
    color: #333;
}

.container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    justify-content: center;
}

.controls {
    flex: 1; /* Take up available space */
    min-width: 250px; /* Minimum width */
    max-width: 350px; /* Maximum width */
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.control-group input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.control-group input[type="file"] {
    display: block;
    margin-top: 5px;
}

.details {
    font-size: 0.9em;
    color: #555;
    background-color: #e9ecef;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 15px;
}
.details p {
    margin: 3px 0;
}

.image-display {
    flex: 2; /* Take up more space */
    min-width: 300px; /* Minimum width */
    text-align: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* Needed for crop overlay */
}

#image-canvas {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    border: 1px solid #ccc;
    cursor: crosshair; /* Indicate cropping possibility */
}

.caption {
    margin-top: 10px;
    font-style: italic;
    color: #555;
}

button {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: 5px; /* Space between buttons */
}

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

button#reset-button {
    background-color: #6c757d;
}
button#reset-button:hover {
    background-color: #5a6268;
}

/* Crop Area Styling */
.crop-overlay {
    position: absolute;
    border: 2px dashed rgba(255, 0, 0, 0.7);
    pointer-events: none; /* Allow clicks to go through to canvas */
    display: none; /* Hidden initially */
}

/* Footer Styling */
.copyright-footer {
    margin-top: 30px; /* More space above the footer */
    padding: 10px 0;
    text-align: center;
    font-size: 0.8em;
    color: #6c757d; /* Gray color */
    width: 100%;
    border-top: 1px solid #ddd;
}
