.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

#image-upload-crop-container {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.custom-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: #f0f4ff;
    border: 2px dashed #4a90e2;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-upload-area:hover {
    background-color: #e6eeff;
    border-color: #3a7bd5;
    transform: scale(1.02);
}
.custom-upload-area.dragging{
    background-color: #e6eeff;
    border-color: #3a7bd5;
    transform: scale(1.02);
}

.custom-upload-area.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#image-upload-crop-container #remainingImagesText{
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    text-align: center;
}
#image-upload-crop-container #limitReachedText{
    margin-top: 10px;
    font-size: 14px;
    color:red;
    text-align: center;
}

.custom-upload-area i {
    font-size: 48px;
    color: #4a90e2;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.custom-upload-area:hover i {
    transform: translateY(-5px);
}
.custom-upload-area p {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 10px;
}

.custom-upload-area span {
    font-size: 16px;
    color: #666;
    line-height: 1.4;
}

#cropperPopup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    min-width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: hidden;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 20px;
    width: 95%;
    max-width: 800px;
    height: 90%;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#cropperContainer {
    flex-grow: 1;
    overflow: hidden;
    margin-bottom: 20px;
}

#cropperImage {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

#cropImageButton {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#cropImageButton:hover {
    background-color: #3a7bd5;
}

.loader {
    display: none;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#apiResponseContainer {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

#apiResponseTitle {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

#apiResponseContent {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #4a90e2;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.image-div {
    flex: 1;
    max-width: 100%;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.face-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 8px; 
}

.face-type-bars {
    flex: 1;
    min-width: 250px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.face-type-bar {
    margin-top: 15px;
    margin-bottom: 15px;
}

.face-type-label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.face-type-progress {
    height: 20px;
    background-color: #4a90e2; 
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.face-type-background {
    background-color: #e0e0e0; 
    height: 20px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.face-type-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #fff;
    font-weight: bold;
}
#data{
    text-align: center;
    margin-top: -30px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    #apiResponseContent {
        padding: 10px;
    }
    #apiResponseContainer{
        padding:10px
    }
    #apiResponseTitle{
        margin-bottom: 5px;
    }
    #apiResponseContent{
        background-color: white;
        border: none;
        padding: 0;
    }

    .content-wrapper {
        flex-direction: column;
    }
}
