<html lang="en">
<head>    
    <title>Custom Phone Case</title>
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
	<!-- Import Bebas Neue Font from Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap" rel="stylesheet">

    <style>

/* Menu Container */
.menu-container {
    width: 100%; /* Full width */
    overflow-x: auto; /* Enable horizontal scrolling if menu overflows */
    white-space: nowrap; /* Prevent menu items from wrapping */
    background-color: #f9f9f9; /* Background color for contrast */
    padding: 10px 0;
    border-bottom: 1px solid #ddd; /* Optional: Add a bottom border for separation */
}

/* Menu Items */
.menu {
    display: inline-block; /* Ensure menu items are displayed inline */
}

.menu a {
    display: inline-block; /* Ensure each link is inline */
    padding: 10px 15px; /* Add padding for clickable area */
    margin: 0 5px; /* Add spacing between menu items */
    text-decoration: none; /* Remove underline */
    color: #007bff; /* Text color */
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.menu a:hover {
    background-color: #007bff; /* Change background color on hover */
    color: #fff; /* Change text color on hover */
    border-radius: 5px; /* Optional: Rounded corners for hover effect */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu a {
        font-size: 1rem; /* Reduce font size on smaller screens */
    }
}

        .banner-slider {
            position: relative;
            width: 100%;
            height: 0;
            padding-top: 50%;
            overflow: hidden;
            visibility: hidden; /* Initially hide the slider */
            margin-bottom: 20px;
        }

        .banner-slider img {
            position: absolute;
            top: 0;
            left: 100%;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: left 0.5s ease;
        }

        .slider-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: #fff;
            padding: 10px;
            border: none;
            cursor: pointer;
            font-size: 24px;
            z-index: 10;
        }

        .slider-btn.left {
            left: 10px;
        }

        .slider-btn.right {
            right: 10px;
        }

        .banner-slider img.active {
            left: 0;
        }

        .banner-slider img.inactive {
            left: 100%;
        }

                .show-button {
            width: 100%;
            padding: 15px 20px;
            font-size: 15px;
            background-color: lightgrey;
            color: #000;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;

        }
		

        .show-button:focus {
            outline: none;
        }
		
		.show-button:hover {
            background-color: #b0b0b0;
        }

        .show-button:hover {
            background-color: #0056b3;
        }

        .preview-grid {
            display: grid;
            gap: 0px;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        }

        .preview-grid img {
            width: 100%;
            height: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            transition: transform 0s ease;
        }

        .preview-grid img.loading {
            opacity: 0;
        }

        .preview-grid img.loaded {
            opacity: 1;
        }

        .controls {
            margin-bottom: 20px;
            padding: 0 10px; /* Reduce horizontal padding for the entire controls section */
        }

        .control-group {
            margin-bottom: 10px;
            padding-left: 5px; /* Reduce left padding for narrower spacing */
            padding-right: 5px; /* Reduce right padding for narrower spacing */
        }

        .control-group label {
            display: block;
			font-size: 1rem;
            margin-bottom: 5px;
            margin-left: 2px; /* Reduce left margin for the labels */
            font-weight: bold;
        }

        .control-group select {
            width: 100%;
            padding: 10px; /* Reduce padding to make the select box smaller */
            font-size: 1rem; /* Slightly smaller font size to match narrower elements */
            box-sizing: border-box;
            margin-left: 2px; /* Reduce left margin for the select dropdown */
        }

        .control-group .pattern-dialog-button {
            margin-left: 10px;
            background-color: lightgrey;
            color: #000;
            border: none;
            padding: 10px;
            cursor: pointer;
            border-radius: 3px;
        }

        .loading-indicator {
            display: none;
            width: 40px;
            height: 40px;
            margin: 0 auto;
        }

        .loading-indicator img {
            width: 100%;
            height: 100%;
        }

        .info-section {
            border: 1px solid #ddd;
            padding: 10px;
            background-color: #f9f9f9;
            font-size: 16px;
            line-height: 1.5;
            margin-top: 10px;
        }

        .info-section p {
            margin: 5px 0;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90%;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            border-radius: 8px;
        }

        .close {
            position: absolute;
            top: 20px;
            right: 35px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }

        .pattern-dialog-button {
            display: inline-block;
            margin-left: 10px;
            padding: 10px;
            font-size: 15px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .pattern-dialog-button:hover {
            background-color: #0056b3;
        }

        .pattern-dialog {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
        }