#photoborder-form {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-wrap: wrap; /* Ensure that the columns can wrap */
    max-width: 500px;
    
}

@media (min-width: 768px) {
    #photoborder-form {
        gap: 40px;
        max-width: unset;
    }
}

.photoborder-form__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 100%; /* Ensure columns take full width by default */
}

@media (min-width: 768px) {
    .photoborder-form__col {
        flex: 0 1 auto; /* Default to auto size */
    }
}

#border-select {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    #border-select {
        flex-direction: column;
    }
}

.border-option {
    margin: 5px;
    cursor: pointer;
}

.border-option.selected .border-preview {
    border: 2px solid blue;
}

.border-preview {
    width: 65px;
    height: 65px;
    border: 1px solid #000;
    margin: auto;
}

#photo-preview {
    margin-top: 20px;
    position: relative;
    width: 100%; /* Default to full width */
    height: auto; /* Maintain aspect ratio */
}

#photo-canvas {
    border: 1px solid #000;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#photo-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
}

.control-button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 24px;
    margin: 5px 0;
    padding: 0; /* Remove default padding */
}

.control-button img {
    width: 24px; /* Set appropriate size for images */
    height: 24px;
    pointer-events: none;
}

#photo-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.action-button {
    background-color: #14ccec !important;
    padding: 8px 20px;
    color: #fff !important;
    fill: #fff !important;
    border-radius: 30px;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: .25px;
    cursor: pointer;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin-top: 20px;
}

.file-input-button {
    background-color: #14ccec !important;
    padding: 8px 20px;
    color: #fff;
    fill: #fff;
    border-radius: 30px;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: .25px;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

#photo-upload {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}
