/* Masonry Gallery */
.mockup-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.mockup-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.mockup-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mockup-item img:hover {
    transform: scale(1.05);
}

/* Designer Page */
#mockup-designer {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
    margin-bottom:20px;
}

#mockup-preview {
    position: relative;
    width: 50%;
    max-width: 400px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
}

#mockup-preview img {
    width: 100%;
    height: auto;
}

#design-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    cursor: move;
    display:block;
}

#design-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 40%;
    max-width: 300px;
    margin-top: 20px;
    text-align: center;
}

#button-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 90px;
    margin-top: 20px;
    text-align: center;
}

#scale-slider {
    width: 100%;
    margin: 10px 0;
    align-items: center;
}

#download-design {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#download-design:hover {
    background-color: #005177;
}

#advance-editor {
    background-color: #28a745; /* Green background */
    color: white; /* White text */
    padding: 10px 20px; /* Padding */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size */
    margin-top: 10px; /* Add some space above the button */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

#advance-editor:hover {
    background-color: #218838; /* Darker green on hover */
}

/* CSS for rotation buttons */
#rotation-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#rotate-clockwise, #rotate-anticlockwise {
    padding: 10px;
    font-size: 20px;
    font-weight:bold;
    cursor: pointer;
    border-color: #fffff;
    border: dotted;
    border-width:2px;
    background-color: #38bcf5;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
    
  
}

#rotate-clockwise:hover, #rotate-anticlockwise:hover {
    background-color: #Ffe5b4;
}

/* Custom Bullet List */
.custom-bullet-list {
    text-align: left; /* Keep text left-aligned */
    list-style-type: disc;
    padding-left: 20px; /* Default left padding for bullets */
    margin-top: 50px;
    border: none;
    border-radius: 8px;
    width: 80%; /* Adjust width for better readability */
    margin-left: auto;
    margin-right: auto; /* Center the list container */
}

.custom-bullet-list li {
    color: blue;
    font-weight: bold;
    font-style: italic;
}
/* Responsive Styles */
@media (max-width: 768px) {
    #mockup-designer {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }


    #mockup-preview {
        width: 85%;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    #design-controls {
        width: 100%;
        max-width: 100%;
    }

    #design-upload,
    #scale-slider,
    #download-design {
        max-width: 100%;
    
}

    /* Ensure rotation buttons are visible and properly sized on mobile */
    #rotation-controls {
        flex-direction: row;
        justify-content: center;
        gap: 20px; /* Increase gap for better spacing on mobile */
    }

    #rotate-clockwise, #rotate-anticlockwise {
        width: 50px; /* Slightly larger buttons for mobile */
        height: 50px;
        font-size: 20px; /* Larger font size for better visibility */
    }
    
}

@media (max-width: 480px) {
    #mockup-designer {
        padding: 10px;
    }

    #mockup-preview {
        width: 85%;
        max-width: 480px;
        max-height: 600px;
    }

    #design-controls {
        flex-direction: column;
        align-items: center;
    }

    #design-upload,
    #scale-slider,
    #download-design {
        max-width: 100%;
    }

    /* Further adjustments for very small screens */
    #rotation-controls {
        gap: 15px; /* Adjust gap for very small screens */
    }

    #rotate-clockwise, #rotate-anticlockwise {
        width: 45px; /* Slightly smaller buttons for very small screens */
        height: 45px;
        font-size: 18px;
    }

    /* Center the custom bullet list on very small screens */
    .custom-bullet-list {
        width: 95%; /* Increase width for very small screens */
    }
}