@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand+SC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sacramento&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aleo:ital,wght@0,100..900;1,100..900&family=Caveat:wght@400..700&family=Dancing+Script:wght@400..700&family=Dangrek&family=Playwrite+HR:wght@100..400&family=Vujahday+Script&family=Water+Brush&display=swap');






/* General Styles
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

*/











.cta-button {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    background-color: #3f58a8;
    border: 2px solid #3f58a800;
    padding: 1px 15px;
    text-decoration: none;
    font-size: 1em;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 3px;
    margin-bottom: 4px;
}

















.customize-button-container {
    text-align: center;
    margin-top: 50px;
    height: 90vh;
}






















#shear-display {
    position: relative;
    width: 350px;
    text-align: center;
    margin: 20px auto;
}

#shear-image {
    width: 100%;  /* This makes the image responsive within the container */
    transform: rotate(90deg);  /* Rotates the image to horizontal */
    transform-origin: center center;  /* Ensures the rotation centers on the middle of the image */
}

#tensioner-placeholder {
    position: absolute;
    top: 51%;
    left: 74%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: rgba(255, 0, 0, 0);
}


#tensioner-image {
    position: absolute;
    top: 51%;  /* Adjust this value to align it perfectly with the placeholder */
    left: 74%;  /* Adjust this value to align it perfectly with the placeholder */
    transform: translate(-50%, -50%); /* Centers the image on the calculated top/left values */
    width: 57px; /* Example size, adjust as needed */
    height: auto; /* Maintains aspect ratio */
}






/* Popup styles */
/* Popup styles */
.popup {
    display: none;
    position: fixed;
    z-index: 2000; /* Ensure the popup is above the header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.popup-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 90vw;
    min-height: 80vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    top: 5%;
    border-radius: 25px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 3000;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.customizer-menu {
    width: 25%;
    max-height: 75vh;
    overflow-y: auto;
    padding-top: 15px;
}

.customizer-menu h3 {
    font-family: 'Lexend Deca';
    font-size: 1.5em;
    font-weight: 350;
    margin-bottom: 0;
    /* margin-left: 15px; */
    /* margin: 20px; */
    margin-top: 0;
    padding: 20px;
}

.shear-preview {
    width: 70%; /* This is already defined */
    max-height: 75vh; /* Prevent the image from exceeding 75% of the viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.shear-preview img {
    max-width: 90%; /* Fills the width of the shear-preview section */
    max-height: 100%; /* Ensures the image doesn't overflow the container */
    height: auto; /* Maintains aspect ratio */
    position: relative;
}


#preview-tensioner-image {
    height: auto;
    position: absolute;
}

#preview-tensioner-image:not([src]) {
    display: none;
}

#preview-tensioner-image[src=""] {
    display: none;
}









/*Color Palettes*/
.color-palette {
    width: 35px; /* Diameter of the circle */
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fff; /* Optional: Adds a white border */
    cursor: pointer;
    display: inline-block;
}

.color-palette.blue {
    background-color: #4f4fe1;
}

.color-palette.green {
    background-color: #3ca03c;
}

.color-palette.purple {
    background-color: #913d91;
}

.color-palette.red {
    background-color: #a11111;
}

.color-palette.orange {
    background-color: #c45515;
}

.color-palette.yellow {
    background-color: #e2bb3b;
}

.color-palette.pink {
    background-color: #f0a0d5;
}

.color-palette.black {
    background-color: #000000;
}

.color-palette.special {
    background-color: #ffffff; /* White background */
    position: relative;
    border: 2px solid #fff; /* Optional: Adds a white border */
}

.color-palette.white {
    background-color: #ffffff; /* White background */
    position: relative;
    border: 2px solid #acacac; /* Optional: Adds a white border */
}

.color-palette.special::before {
    content: "★"; /* Unicode star symbol */
    font-size: 30px; /* Adjust size as needed */
    color: #ecc166; /* Gold color */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.color-palette.gold {
    background-color: #ecc166;
}

.color-palette.diamond {
    background-color: #9de3ff;
}


#tensioner-list img {
    width: 55px;  /* Adjust size as needed */
    margin: 8px;
    cursor: pointer;
    box-sizing: border-box; /* Include padding and border within the element's width/height */
}

#tensioner-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 80%;
    margin: 0 auto;
    padding-bottom: 25px;
    margin-left: 0px;
    padding-left: 10px;
}

#color-palettes {
    justify-content: center;
    align-items: center; /* This helps to vertically align if necessary */
    gap: 20px; /* Adjust spacing between the circles */
    margin-bottom: 20px;
}


.toggle-icon {
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
    display: inline-block;
    margin-left: 10px;
    color: #000;
}

.toggle-icon.expanded {
    transform: rotate(45deg); /* Rotate by 45 degrees to change "+" into "×" (like a minus) */
}

#tensioner-options {
    background-color: #f1f1f1;
    border-radius: 20px;
    margin-right: 1em;
}

#color-palettes {
    padding-left: 20px;
}






#finger-insert-options h4 {
    font-family: 'Lexend Deca';
    font-size: 1.1em;
    font-weight: 250;
    margin-bottom: 0;
    margin-top: 00;
    padding: 10px;
}

.left-color-palettes, .right-color-palettes {
    display: flex;
    margin-bottom: 20px;
    flex-direction: row;
    align-content: stretch;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 200px;
}

#left-insert-options, #right-insert-options {
    margin-bottom: 20px;
    padding: 10px;
    padding-top: 0;
}

#preview-left-insert-image {
    display: none;
    position: absolute;
    width: 100%;  /* Adjust based on the size relative to the shear image */
    height: auto;  /* Maintain aspect ratio */
    top: 50%;  /* Adjust based on where the left insert should be positioned */
    left: 50%;  /* Adjust based on where the left insert should be positioned */
    transform: translate(-50%, -50%);  /* Center the image */
    pointer-events: none;  /* Prevent interaction */
    z-index: 2;  /* Ensure it's above the shear image */
}

#preview-right-insert-image {
    display: none;
    position: absolute;
    width: 100%;  /* Adjust based on the size relative to the shear image */
    height: auto;  /* Maintain aspect ratio */
    top: 50%;  /* Adjust based on where the left insert should be positioned */
    left: 50%;  /* Adjust based on where the left insert should be positioned */
    transform: translate(-50%, -50%);  /* Center the image */
    pointer-events: none;  /* Prevent interaction */
    z-index: 2;  /* Ensure it's above the shear image */
}

#finger-insert-options {
    background-color: #f1f1f1;
    border-radius: 20px;
    margin-top: 30px;
    margin-right: 1em;
}

#preview-left-insert-image:not([src=""]),
#preview-right-insert-image:not([src=""]) {
    display: block; /* Show the insert images only when they have a source */
}

#finger-insert-options .toggle-icon {
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
    display: inline-block;
    margin-left: 10px;
    color: #000;
}

#finger-insert-options .toggle-icon.expanded {
    transform: rotate(45deg); /* Rotate to change "+" into "×" */
}








/* Custom Text Section */

#custom-text-options {
    background-color: #f1f1f1;
    border-radius: 20px;
    margin-top: 30px;
    padding-left: 0;
    margin-right: 1em;
    padding-bottom: 1.5em;
}

#custom-text-options h3 {
    font-family: 'Lexend Deca';
    font-size: 1.5em;
    font-weight: 350;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

#custom-text-input-section {
    margin-top: 15px;
    text-align: left;
    padding: 0 10px;
}

#custom-text-input {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 1.2em;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
    margin-bottom: 15px;
}

#font-selector {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#custom-text-display {
    position: absolute;
    font-size: 3em;
    font-weight: 100;
    color: #2d2d2d86;
    /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
    pointer-events: none;
    z-index: 3;
}
































/* --------------------------------- ADDED CODE FOR H2 ----------------------------*/





.product-page .cta-button {
    margin-top: 20px;
    display: block;
    width: fit-content;
    position: absolute;
    right: 20px;
    bottom: 20px;
    margin-bottom: 0;
}


.product-page .cta-button:hover {
    background-color: #ffffff; /* The same blue as the price */
    color: #3f58a8;
    cursor: pointer;
    border: 2px solid #3f58a8;
}

.popup-watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 500px;
    opacity: .1;
}


.customizer-menu h2 {
    font-family: 'Great Vibes';
    font-size: 3em;
    padding: 10px;
    font-weight: 100;
    margin-top: .5em;
    margin-bottom: .2em;
}


/* Style for the selected tensioner */
#tensioner-list img.selected {
    background-color: rgb(201 201 201 / 80%);
    border-radius: 5px;
    padding: 2px;
    /* border: 2px solid rgba(255, 0, 0, 0.8); */
    /* box-shadow: 0 0 10px rgb(57 57 57 / 50%); */
}












/* Custom Scrollbar for Customizer Menu */
.customizer-menu::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

.customizer-menu::-webkit-scrollbar-track {
    background: #f0f0f0; /* Background of the track */
    border-radius: 10px;
}

.customizer-menu::-webkit-scrollbar-thumb {
    background-color: #bfcdda; /* Color of the scrollbar */
    border-radius: 10px;
    border: 2px solid #f1f1f1; /* Creates a little padding between the thumb and the track */
}

.customizer-menu::-webkit-scrollbar-thumb:hover {
    background-color: #8a8a8a; /* Darker color on hover */
}








.color-palette.clear {
    background-color: #f1f1f1; /* A light grey color to indicate 'clear' */
    border: 2px solid #ccc; /* A slightly darker border to distinguish it */
    position: relative;
}

.color-palette.clear::before {
    content: "✕"; /* A cross symbol to indicate removal */
    font-size: 18px;
    color: #666;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}














/* Submit Design Button */
.submit-design-button {
    font-family: 'Bebas Neue', sans-serif;
    color: #ffffff;
    background-color: #3f58a8;
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.submit-design-button:hover {
    background-color: #2d3c74;
}

/* Overlay styles */
.overlay {
    display: none; /* Start hidden by default */
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center; /* Vertical centering */
    justify-content: center; /* Horizontal centering */
    overflow: hidden; /* Prevents scrolling on the background */
}

/* Overlay content container */
.overlay-content {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    max-height: 90vh; /* Limit height to fit within the viewport */
    border-radius: 10px;
    overflow-y: auto; /* Enable scrolling if content overflows */
    box-sizing: border-box;
    text-align: center;
}

.overlay-content h2 {
    font-size: 2.5em;
    font-family: 'Dancing Script';
    margin: .3em auto .1em;
}

.overlay-content p {
    font-family: 'Aleo';
    font-size: small;
}


.close-overlay-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 30px;
    cursor: pointer;
}

.close-overlay-button:hover {
    color: #000;
}

#shear-preview {
    margin: 20px 0;
    position: relative;
}

#shear-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#custom-text-overlay {
    position: absolute;
    font-size: 1.2em;
    font-weight: 100;
    color: #2d2d2d86;
    pointer-events: none;
    z-index: 3;
}

/* Form Styles */
/* Adjust the form styles to fit within the overlay */
#submit-design-form {
    margin-top: 20px;
    text-align: left;
}

#submit-design-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

#submit-design-form input, 
#submit-design-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Button container to center and space buttons evenly */
.button-container {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: 20px; /* Space between the buttons */
    margin-top: 20px;
}

.submit-button {
    background-color: #3f58a8;
    color: #fff;
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block; /* Change to inline-block to prevent full container width */
    width: auto; /* Allow button to size according to its content */
    height: auto; /* Ensure both buttons have consistent height */
    line-height: normal; /* Ensure line-height doesn't cause height issues */
    margin: 0; /* Remove any default margins that could affect sizing */
}

.submit-button:hover {
    background-color: #2d3c74;
}

.restart-button {
    background-color: #a83f3f;
    color: #fff;
    padding: 10px 20px;
    font-size: 1.2em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block; /* Change to inline-block to prevent full container width */
    width: auto; /* Allow button to size according to its content */
    height: auto; /* Ensure both buttons have consistent height */
    line-height: normal; /* Ensure line-height doesn't cause height issues */
    margin: 0; /* Remove any default margins that could affect sizing */
}

.restart-button:hover {
    background-color: #742d2d;
}


/* Container for the canvas */
#shear-preview-canvas-container {
    position: relative;
    width: 100%; /* Make the container take up the full width of its parent */
    max-width: 100%; /* Ensure it doesn't overflow */
    height: auto;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsive canvas */
#shearCanvas {
    width: 100%; /* Make the canvas responsive to its container */
    height: auto; /* Maintain the aspect ratio */
    max-width: 400px; /* Ensure the canvas doesn't overflow */
    border-radius: 10px;
    display: block; /* Ensure it's centered within the container */
    margin: 0 auto; /* Center the canvas horizontally */
}

#download-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    cursor: pointer;
    z-index: 2;
}

#download-link {
    display: block;
    position: relative;
}







/* Custom Scrollbar for Webkit-based browsers (Chrome, Safari, Edge) */
.overlay-content::-webkit-scrollbar {
    width: 10px;
}

.overlay-content::-webkit-scrollbar-track {
    background: #f1f1f1; /* Track background */
    border-radius: 10px;
}

.overlay-content::-webkit-scrollbar-thumb {
    background: #bcbcbc; /* Scrollbar thumb color */
    border-radius: 10px;
}

.overlay-content::-webkit-scrollbar-thumb:hover {
    background: #888; /* Color on hover */
}


.tensioner-banner .cta-button {
    position: absolute;
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.4em;
    color: rgb(0, 0, 0);
    background-color: #ffffff8f;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    bottom: 50px;
    font-family: 'Quicksand';

}

.tensioner-banner .cta-button:hover {
    background-color: #ececec;
    transform: translateY(-2px);
    cursor: pointer;
}


body.no-scroll {
    overflow: hidden;
}


/* Style for the "How It Works" container */
#how-it-works {
    background-color: #f1f1f1; /* Light grey background to match existing sections */
    border-radius: 20px;       /* Rounded corners */
    padding: 20px;             /* Padding for inner spacing */
    margin-bottom: 20px;       /* Space below the container */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-right: 1em;
}

#how-it-works h3 {
    font-family: 'Great Vibes'; /* Match the font style of other headings */
    font-size: 2em;           /* Size similar to other headers */
    margin-bottom: 10px;
    padding: 1px;
}

#how-it-works p {
    font-family: 'Quicksand'; /* Simple, readable font */
    font-size: 0.9em;                   /* Standard paragraph size */
    line-height: 1.5;                 /* Spacing for readability */
}


@media (max-width: 768px) {
    .tensioner-banner .cta-button {
        font-size: 1.2em;
        padding: 10px 15px;
    }

    .shear-preview {
        width: 100%; /* Make the preview area take the full width */
        max-height: 40vh; /* Limit the height to 40% of the viewport height */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .shear-preview img {
        max-width: 80%; /* Increase the image size */
        height: auto;
    }

    .customizer-menu {
        width: 100%; /* Allow the customizer menu to take the full width */
        max-height: 50vh; /* Ensure it doesn't overflow the screen */
        overflow-y: scroll; /* Allow scrolling for longer content */
        padding: 10px; /* Adjust padding for mobile */
    }

    .customizer-menu h3 {
        font-size: 1.2em; /* Adjust heading size for better readability */
        text-align: center; /* Center align text for mobile */
    }

    .customizer-menu p {
        font-size: 0.9em; /* Adjust text size for readability */
        line-height: 1.4; /* Spacing for better readability */
    }

    /* Make color options more spread out */
    #tensioner-options {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .popup-content {
        flex-direction: column; /* Stack the customizer menu and shear preview vertically */
        width: 95%; /* Make sure the popup content fits within the screen */
        max-height: 90vh; /* Avoid overflow */
    }

    .shear-preview, .customizer-menu {
        margin-bottom: 70px; /* Add space between sections */
    }

    /* Adjust the popup container */
    .popup-content {
        padding: 10px;
    }

    /* Adjust submit design button */
    .submit-design-button {
        width: 100%; /* Make the button full width */
        text-align: center;
        padding: 10px;
    }

    .popup-watermark {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: 200px;
        opacity: .1;
    }

    #custom-text-options h3 {
        font-family: 'Lexend Deca';
        font-size: 1.2em;
        font-weight: 350;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    #custom-text-display {
        position: absolute;
        font-size: 1.2em;
        font-weight: 100;
        color: #2d2d2d86;
        /* text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); */
        pointer-events: none;
        z-index: 3;
    }

    .submit-design-container {
        margin-right: 1em;
    }
}