.pencil-sketch-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.pencil-sketch-upload-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.pencil-sketch-upload-section h2 {
    margin-top: 0;
    color: #2c3e50;
}

.pencil-sketch-upload-box {
    margin: 30px 0;
}

.pencil-sketch-file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.pencil-sketch-upload-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.pencil-sketch-upload-btn:hover {
    background-color: #2980b9;
}

.pencil-sketch-settings {
    margin-top: 20px;
}

.pencil-sketch-slider-container {
    margin: 15px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.pencil-sketch-slider {
    width: 80%;
    margin: 0 10px;
}

.pencil-sketch-generate-btn {
    background-color: #2ecc71;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.pencil-sketch-generate-btn:hover {
    background-color: #27ae60;
}

.pencil-sketch-result {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.pencil-sketch-image-container {
    width: 48%;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.pencil-sketch-image-wrapper {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent image from overflowing */
    margin: 0 auto;
    max-width: 100%;
}

.pencil-sketch-image-container h3 {
    margin-top: 0;
    color: #2c3e50;
}

.pencil-sketch-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 4px;
    object-fit: contain; /* Ensure image is fully contained */
    display: block; /* Remove any extra space below the image */
    margin: 0 auto; /* Center the image */
}

.pencil-sketch-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.pencil-sketch-loading img {
    width: 50px;
    height: 50px;
}

.pencil-sketch-download-options {
    margin-top: 15px;
}

.pencil-sketch-download-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.pencil-sketch-download-btn {
    background-color: #9b59b6;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.pencil-sketch-download-btn:hover {
    background-color: #8e44ad;
}

.pencil-sketch-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.pencil-sketch-info-box {
    width: 30%;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.pencil-sketch-info-box h3 {
    margin-top: 0;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .pencil-sketch-result {
        flex-direction: column;
    }
    
    .pencil-sketch-image-container,
    .pencil-sketch-info-box {
        width: 100%;
    }
}