/* Container for Image Slider */
#slider-container {
	position: absolute;
	width: 300px;
    height: 533.31px;
    top: 10px;
    left: 10px;
	overflow: hidden;
	pointer-events: none;
	transform-origin: top;
	transform: scaleY(1.1);
}


/* Buttons for the Image Slider Metabox */
#image_slider_meta_box .custom-button {
    display: block;
    margin: auto;
    margin-top: 10px;
    background-color: rgb(239,143,108);  
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* Image Thumbnail */
#image-slider-thumbnail {
    display: block; /* To apply margin */
    margin: 10px auto;
}

/* Parent Div for Input and Label */
.center-section-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Label Text for Slider */
.label-text-slider {
    color: white;  
    margin-bottom: 20px;  
}

/* Input Box for Slider */
.input-box-slider {
    border: 1px solid rgb(88,143,255);  /* Feel free to change */
    padding: 5px;
    margin-bottom: 10px;
}

/* Metabox Background */
#image_slider_meta_box {
    background-color: rgb(38,41,42);
}

.after-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    overflow: hidden;
}

.overlay-image {
    position: absolute;
    top: 0;
    left: 0%;  /* Start off-screen */
    height: 100%;
    width: 100%;
	clip-path: inset(0 100% 0 0);
	z-index:1;
}

/* The overlay slider */
.drag-line {
	z-index: 9999;
    position: absolute;
    height: 100%;
    width: 2px;
    background: #fff;
    cursor: ew-resize;
}

.drag-handle {
    position: absolute;
    top: 50%;
    left: -9px; /* half of 20px to center it */
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transform: translateY(-50%); /* Adjust for centering */
}


.drag-handle::before,
.drag-handle::after {
    content: '';
    position: absolute;
    width: 0; 
    height: 0; 
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #000;  /* Arrow color */
}

.drag-handle::before {
    left: 1px;
    border-left: none;
    border-right: 4px solid #000;
}

.drag-handle::after {
    right: 1px;
    border-left: 4px solid #000;
}


.image-preview {
     max-width: 8rem;
    height: 12rem;
    display: block;
    margin: 0 auto 0.5rem;
    object-fit: contain;
}
/* Custom handle modifications when a GIF/SVG is present */
.custom-handle {
    background: transparent; /* Hide the circle background */
}

.custom-handle::before,
.custom-handle::after {
    display: none; /* Hide the arrows */
}


.slider-gif {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    /* additional styling as needed */
}

/* Styles for the vertical drag line */
.drag-line-vertical {
    z-index: 9999;
    position: absolute;
    width: 100%;
    /* Cover the full width of the container */
    height: 2px;
    /* Thin horizontal line */
    background: #fff;
    /* Line color */
    cursor: ns-resize;
    /* Cursor indicates up-down movement */
}

/* Adjust the drag handle for vertical orientation when .vertical-handle class is added */
.drag-handle.vertical-handle {
    left: 53%;
    top: -20px; /* Adjust this value to center the handle vertically if needed */
    transform: translateX(-50%); /* Adjust for centering horizontally */
    cursor: ns-resize;
}

/* Adjust the before and after pseudo-elements for vertical orientation */
.vertical-handle::before,
.vertical-handle::after {
    left: 50%; /* Center horizontally */
    top: 50%; /* Start at the vertical center of the handle */
    transform: translate(-50%, -50%) rotate(90deg); /* Center and rotate for vertical arrow */
    border-left: 4px solid transparent; /* Adjust for the vertical arrow */
    border-right: 4px solid transparent; /* Adjust for the vertical arrow */
    border-top: none; /* Remove the default top border */
    border-bottom: 4px solid #000; /* Add bottom border for arrow effect */
}

.vertical-handle::before {
    transform: translate(-50%, -50%) rotate(-90deg); /* Rotate the before arrow to point upwards */
}

.vertical-handle::after {
    transform: translate(-50%, -50%) rotate(90deg); /* Keep the after arrow pointing downwards */
}

.slide-number-input {
    display: block;
    margin: 0 auto; /* This centers the input box */
    width: 60%; /* Adjust the width as needed */
    padding: 5px; /* Adds some padding inside the input box */
    text-align: center; /* Centers the text inside the input box */
}

input[type=range] {
    -webkit-appearance: none; /* Necessary to remove default styling in WebKit browsers */
    padding: 0 !important;
    height: 10px; /* Adjust the height of the slider track */
	border-radius: 15px !important;
}

input[type=range]::-webkit-slider-runnable-track {
    background: #FF9E1A; /* The orange color for the track */
    height: 10px; /* Should match the height set on input[type=range] */
    border-radius: 5px; /* This makes the ends of the track rounded */
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Removes the default styling for the thumb */
    border: none; /* Removes any border */
    height: 20px; /* Height of the thumb */
    width: 20px; /* Width of the thumb */
    border-radius: 50%; /* Makes the thumb circular */
    background: white; /* Sets the thumb color to white */
    margin-top: -5px; /* Centers the thumb vertically */
    padding: 0 !important; /* Ensures no padding is applied, overriding other styles */
	border-radius: 15px !important;
}


input[type=range]:focus {
    outline: none; /* Removes the outline when the slider is clicked/focused */
}

input[type=range]:focus::-webkit-slider-runnable-track {
    background: #FF9E1A; /* Keeps the track orange even when focused */
}
