:root {
    --primary-color: #0054A1;
}


.collage {
    display: flex;
    width: 300px; 
    height: 400px;
    margin: auto;
}

.__horizontal {
    flex-direction: row;
}   

.__vertical {
    flex-direction: column;
}

.__space-between {
    margin: 2px !important;
}

.collage-image-field-wrapper {
    position: relative;
    border: 1px dashed var(--primary-color);
    overflow: hidden;
    cursor: pointer;
}

.image-container {
    background-color: transparent;
    display: flex;
    margin: 0%;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.label-box {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 2px solid black;
    margin: 5px;
    cursor: pointer;
}


/* POPUP */

#popup-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* This sets the opacity of the background */
    backdrop-filter: blur(10px); /* This sets the blur effect on the background */
    z-index: 999; /* This ensures that the background is above all other elements */
    display: none; /* This hides the background by default */
}

#popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: white;
    padding: 50px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: none;
    border-radius: 15px;
}

.popup-section {
    margin-top: 20px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}


#popup-images-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.popup-image-box-wrapper {
    margin: 2%;
}

.popup-image-box {
    width: 200px;
    height: 200px;
    display: flex;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    justify-content: center;
    border-radius: 10px;
}

.popup-image-box-wrapper input[type="radio"]:checked + label {
    border: 3px solid var(--primary-color);
}

@media only screen and (max-width: 650px) {
    .popup-image-box {
        width: 100px;
        height: 100px;
    }
    .option-group {
        display: flex;
        flex-direction: column;
    }
    .option-group label {
        text-align: left;
    }
}

.popup-image-box img {
    flex-shrink: 0;
    min-width: 100%;
    min-height: 100%
}

.popup-image-preview-wrapper {
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}


.popup-upload-btn {
    margin-top: 20px;
    padding: 20px 20px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    width: 100%;
}

#close-popup {
    position: absolute;
    top: -15px;
    right: -15px;
    border-radius: 100%;
    padding: 10px;
    background-color: tomato;
}


.upload-image-collage-icon {
    fill: #0054A1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    height: 30px;
    width: 30px;
}



#popup-content .show {
    display: flex;
    animation: slideIn 0.3s ease-in;
    z-index: 1; 
}

#popup-content.hide {
    animation: slideOut 0.3s ease-in;
}

#popup-content.hidden {
    display: none;
}


/* CSS for the animation */
@keyframes slideIn {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
}

/* CSS for the animation */
@keyframes slideOut {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(100%);
    }
}


.collage-wrapper {
    display: grid;
    grid-gap: 4px;
  }
  
  .image-container {
    display: grid;
  }
  
  .collage-image-field-wrapper {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .collage-image-field {
    object-fit: cover;
  }
  
  .upload-image-collage-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  