* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 15px;
    text-align: center;
}

p {
    margin-bottom: 20px;
    text-align: center;
}

.password-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.password-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.password-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.upload-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.upload-box {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="file"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background: #45a049;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Styles for comparison page */
.img-comp-container {
    position: relative;
    height: 500px;
    margin: 0 auto;
    max-width: 100%;
}

.img-comp-img {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-comp-img img {
    display: block;
    vertical-align: middle;
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: ew-resize;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-comp-slider::before, .img-comp-slider::after {
    content: "";
    position: absolute;
    background: white;
}

.img-comp-slider::before {
    width: 2px;
    height: 15px;
    left: 19px;
}

.img-comp-slider::after {
    height: 2px;
    width: 15px;
    top: 19px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #4CAF50;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}


.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
    left: 50%;
    margin-left: -2px;
    cursor: ew-resize;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Add shadow for depth */
}

.slider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.slider-button {
    position: absolute;
    width: 36px; /* Slightly larger */
    height: 36px; /* Slightly larger */
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: ew-resize;
    z-index: 101;
    border: 3px solid white; /* Thicker border */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5); /* Add shadow */
    transition: background 0.2s; /* Smooth hover effect */
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.8); /* Darker on hover */
}

.slider-button::before,
.slider-button::after {
    content: "";
    position: absolute;
    background: white;
}

.slider-button::before {
    width: 2px;
    height: 14px; /* Slightly longer */
    left: 17px;
    top: 11px;
}

.slider-button::after {
    height: 2px;
    width: 14px; /* Slightly longer */
    left: 11px;
    top: 17px;
}