/* Custom Styling for the "Choose File" buttons */
.bam-file-button {
    display: inline-block;
    padding: 5px 20px;
    font-size: 14px;
    background-color: #d60000;   /* Use red */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    width: 100%;                  /* Make the button take full width of the input field */
    margin-bottom: 10px;          /* Space between file button and input field */
    box-sizing: border-box;       /* Ensure padding is included in width */
}

/* Styling for the actual file input to be invisible */
.bam-file-input {
    display: none;  /* Hide the default file input */
}

/* Style the file button text to make it centered */
.bam-file-button {
    text-align: center;
}

/* Style the input container to match layout */
.bam-upload-container {
    text-align: center;
    margin-top: 5px;
}

/* Add some spacing between the form fields */
.bam-upload-container input[type="file"] {
    margin-bottom: 10px;
}

/* Layout for the buttons - Two rows */
.bam-buttons-container {
    display: flex;
    width: 100%;  /* Ensures the container takes up the full width */
    
    gap: 10px; /* Space between buttons */
    margin-bottom: 20px;
    justify-content: center;
}

/* Button in first row: 25% width each */
.bam-buttons-container .bam-button {
    width: 25%; /* Each button takes 25% width */
    height: 40px;  /* Ensuring consistent height for buttons */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    white-space: nowrap;  /* Prevents the text from wrapping */
     box-sizing: border-box;  /* Includes padding and border in the width */
    padding: 0;  /* Ensures no extra padding is added */
    
}

/* Force consistent height for all buttons */
.bam-buttons-container .bam-button button,
.bam-buttons-container .bam-button input[type="text"] {
    height: 100%;  /* Force the height of the button to 100% */
    width: 100%;   /* Force the width of the button to 100% */
    text-align: center; /* Center the text inside the button */
    font-size: 12px;    /* Ensure text doesn't get too large */
        justify-content: center;
    align-items: center;
    
}

/* Adjustments for the Share button */
#share-button {
    width: 100%;     /* Ensure share button takes the full width of its container */
    height: 100%;    /* Make sure the height is consistent */
    background-color: blue;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    padding: 12px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /*grid-row: span 2;  /* Make the Share button span two rows */
}

#share-button:hover {
    background-color: darkblue;
}

/* Save button hidden for now */
#save-button {
    display: none;
    width: 100%;
}

/* Button Grid layout */
.bam-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Move buttons - 3x3 grid */
.bam-move-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
    grid-template-rows: 1fr 1fr 1fr;    /* 3 equal rows */
    grid-gap: 10px;                       /* Gap between buttons */
    width: 150px;                         /* Fixed width */
    height: 150px;                        /* Fixed height */
}

/* Styling for all move and zoom buttons */
.bam-move-buttons button,
.bam-zoom-buttons button {
    width: 50px;
    height: 50px;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    visibility: visible;
    pointer-events: all;
    background-color: white;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Hover effect to change button background and border color */
.bam-move-buttons button:hover,
.bam-zoom-buttons button:hover {
    background-color: lightgrey;
    border-color: darkgrey;
}

/* Inactive center and corner buttons */
.bam-move-buttons button.inactive {
    visibility: hidden;
    pointer-events: none;
}

/* Place the directional buttons in the correct grid position */
.bam-move-buttons #move-left1,
.bam-move-buttons #move-left2 {
    grid-column: 1;
}

.bam-move-buttons #move-right1,
.bam-move-buttons #move-right2 {
    grid-column: 3;
}

.bam-move-buttons #move-up1,
.bam-move-buttons #move-up2 {
    grid-row: 1;
    grid-column: 2;
}

.bam-move-buttons #move-down1,
.bam-move-buttons #move-down2 {
    grid-row: 3;
    grid-column: 2;
}

/* Adjust Zoom buttons layout */
.bam-zoom-buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-left: 20px;
    margin-top: 10px;
}

.bam-zoom-buttons button {
    width: 70px;
    height: 50px;
    font-size: 16px;
    margin: 5px 0;
}

.bam-zoom-buttons button {
    padding: 0;
}

/* Adjust image controls layout */
.bam-before-controls,
.bam-after-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 20px;
}

.bam-before-controls .bam-move-buttons,
.bam-before-controls .bam-zoom-buttons,
.bam-after-controls .bam-move-buttons,
.bam-after-controls .bam-zoom-buttons {
    flex: 1;
}

/* Styling for Before and After Image Controls */
.bam-before-controls button,
.bam-after-controls button {
    margin: 5px;
}

/* Container for Before and After Image Controls */
.bam-image-controls-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
