/* Algemene styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

h2, h3 {
    font-family: 'Arial', sans-serif;
    color: #333;
}

.text-end {
    text-align: right;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}


.dropdown-content .close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: black;
    font-size: 30px;
    cursor: pointer;
}

/* Responsieve aanpassingen voor het canvas */
#canvas-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
}

canvas {
    max-width: 100%;  /* Ensures it scales within the parent container */
    height: auto;
}

/* Zorg ervoor dat de canvas-container zichzelf proportioneel aanpast */
.fabric-canvas-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}

/* Button Styling */
button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.button-group-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.button-group-right button {
    width: 100%;
    max-width: 200px;
    margin-bottom: 10px;
}

.button-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.button-group-responsive button {
    flex: 1 1 45%;  /* Each button takes 45% width and adjusts based on screen size */
    margin-bottom: 10px;
}

/* Responsive styling for mobile */
@media (max-width: 768px) {
    .button-group-responsive button {
        flex: 1 1 45%;  /* Buttons will stack two in a row */
    }
}

/* Navbar styling */
.navbar {
    background-color: #333;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.navbar .nav-links a:hover {
    text-decoration: underline;
}

/* Canvas sectie styling */
.design-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.canvas-section, .tools-section {
    width: 48%;
    margin-bottom: 20px;
}

/* Text and tools section styling */
.tools-section input[type="text"],
.tools-section select,
.tools-section input[type="color"],
.tools-section input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.color-picker {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
}

.color-btn:hover {
    transform: scale(1.1);
}

.switch-side {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.switch-side button {
    flex: 1;
}

/* Zorg ervoor dat de knoppen goed worden uitgelijnd en ruimte hebben tussen elkaar */
.btn-group {
    display: flex;
    justify-content: space-around; /* Verdeel de knoppen gelijkmatig over de beschikbare ruimte */
    margin-bottom: 20px;
}

/* Zorg ervoor dat knoppen een gelijke grootte en consistent uiterlijk hebben */
.btn-group .btn {
    flex-grow: 1; /* Zorg dat alle knoppen even breed zijn */
    margin: 5px;  /* Voeg ruimte toe tussen de knoppen */
}

/* Responsive design: zorg dat knoppen onder elkaar komen op mobiele schermen */
@media screen and (max-width: 768px) {
    .btn-group {
        flex-direction: column; /* Zet de knoppen onder elkaar op kleine schermen */
        align-items: stretch;   /* Zorg ervoor dat de knoppen de volledige breedte innemen */
    }

    .btn-group .btn {
        width: 100%; /* De knoppen vullen de volledige breedte van de container */
        margin: 5px 0; /* Voeg verticale ruimte toe tussen de knoppen */
    }
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Popup close button */
.popup-notification .close-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 10px;
}

/* Responsieve aanpassingen */

/* Voor mobiele apparaten */
@media (max-width: 768px) {
    .design-container {
        flex-direction: column;
        align-items: center;
    }

    .canvas-section, .tools-section {
        width: 100%;
        margin-bottom: 20px;
    }

    canvas {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .switch-side {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .nav-links li {
        padding: 10px;
        width: 100%;
    }
}

/* Voor tablets */
@media (max-width: 1024px) {
    .canvas-section, .tools-section {
        width: 100%;
    }

    canvas {
        width: 100%;
        height: auto;
    }
}

.switch-side {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.switch-side button {
    flex: 1;
    margin: 0 5px; /* Add some spacing between the buttons */
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .switch-side {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        gap: 10px;
    }

    .switch-side button {
        margin: 0; /* Reset margins for mobile */
    }
}
    .logo-list-container {
        margin-top: 20px;
        padding: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: #f9f9f9;
    }

    .logo-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: #ffffff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 150px;
    }

    .logo-item span {
        font-weight: bold;
        margin-bottom: 10px;
    }

    .logo-item button {
        margin-top: 5px;
        background-color: #007bff;
        color: #ffffff;
        border: none;
        padding: 5px 10px;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .logo-item button:hover {
        background-color: #0056b3;
    }

    .logo-item button.remove {
        background-color: #dc3545;
    }

    .logo-item button.remove:hover {
        background-color: #c82333;
    }