/* Loading spinner */
@keyframes spinner {
    to {transform: rotate(360deg);}
}

.spinner {
    display: inline-block;
    margin-left: 10px;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
    vertical-align: middle; /* Aligns the spinner vertically with the text */
}
/* End loading spinner */

/* Share buttons */
.share-container {
    display: block; /* Ensure the container is visible */
    text-align: center;
    margin-top: 50px;
}

.share-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow the buttons to wrap */
    justify-content: center;
    margin-top: 50px;
}

.share-button {
    text-align: center;
    margin: 10px;
    flex: 0 1 150px; /* Ensure buttons have space to grow/shrink and stack neatly */
}

.share-button a {
    text-decoration: none;
    display: flex;
    flex-direction: column; /* Stack the image and text vertically */
    align-items: center; 
}

.circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.circle img {
    width: 30px;
    height: 30px;
}

.facebook .circle {
    background-color: #a3c9f8; /* Pastel royal blue */
}

.carousell .circle {
    background-color: #f8a3a3; /* Pastel red */
}

.lamudi .circle {
    background-color: #a3e7f8; /* Pastel light blue */
}

p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: row; /* Keep the row direction */
        flex-wrap: wrap; /* Allow wrapping */
        justify-content: center; /* Center the buttons */
    }

    .share-button {
        flex: 1 1 calc(50% - 20px); /* Two columns with some space between */
        max-width: calc(50% - 20px); /* Ensure the buttons don't exceed 50% of the container width */
        margin: 10px; /* Add margin for spacing */
    }
}



/* End share buttons */

/*Display of hashtags etc */
.media-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.media-section {
    flex: 1;
    text-align: center;
}
.responsive-video {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
}
/* End display of hashtags etc*/

/* Toast */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    margin: 5px 0;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}


/*End Toast*/

/* Preview images uploaded for AI gallery */
.image-text-group {
    margin-bottom: 20px;
}
.image-preview {
    max-width: 200px;
    margin-top: 10px;
    display: block;
}
/* End Preview images uploaded for AI gallery */

/* Helper classes */
.hidden{
    display: none !important;
}
.left{
    text-align: left;
}
.square-image {
  width: 100%; 
  max-width: 100%;
  height: auto; 
  object-fit: cover;
  object-position: center;
  display: block;
}
.square-thumbnail{
    width:100px;
}
.square-image-container{
  display: flex;
  flex-wrap: wrap;
  gap: 10px; 
}

.other-images {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping if the screen size is small */
  gap: 10px; /* Adds spacing between the images */
  width: 100%
}

.other-images img, .square-image {
  width: 100px; /* Make each image take up 1/3 of the container width, minus the gap */
  object-fit: cover;
  height: 100px; /* You can adjust this based on your design */
  display: block;
}
.main-image{
    width:100%;
    height:100%;
}
.bg-khaki{
    background-color: #f0e68c;
}
/* End Helper classes */

/* Display gallery images */
/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* Sits on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enables scroll if needed */
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  justify-content: center; /* Horizontally centers the image */
  align-items: center; 
}

/* Modal Content (Full-Size Image) */
.modal-content {
  margin: auto;
  display: block;
  width: auto;
  height: auto;
  max-width:800px;
}

/* Modal Image Container */
.modal-image-container {
  position: relative;
  display: inline-block;
}

.download-btn {
    position: absolute;
    top: 0px;
    right: 20px;
    padding: 10px 20px;
    background-color: #4CAF50; /* Green background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.download-btn:hover {
    background-color: #45a049;
}


/* Close Button */
.close {
  position: absolute;
  top: 60px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}
/* End Display gallery images

/* generate form*/

.input-wrapper {
            position: relative;
}
.input-wrapper input[type="text"] {
    padding-right: 40px; /* Adjust based on the width of the "sqm" label */
}
.input-wrapper .unit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
        /* Hide the arrows in Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide the arrows in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}
/*end generate form*/

/* Hide mobile class items by default */
.nav-link.mobile {
  display: none;
}

/* Show mobile class items only on mobile devices (for screens less than or equal to 768px wide) */
@media (max-width: 768px) {
  .nav-link.mobile {
    display: block;
  }
}

/* Make the table responsive by adding horizontal scrolling */
.table-responsive {
    overflow-x: auto;
}

.btn-sm {
  font-size:1rem !important;
}

#page4 .container {
    max-width: 600px;
    margin: auto;
}

#page4 .room-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

#page4 .room-label {
    font-weight: bold;
    font-size: 18px;
    text-align: left;
}

#page4 .canvas-preview {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 10px;
}

#page4 .titleInput {
    font-family: Arial, sans-serif;
    font-size: 16px;
    padding: 10px;
    width: 100%;
    resize: vertical;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
}

#page4 .titleInput:focus {
    border-color: #90EE90;
    box-shadow: 0 0 5px #90EE90;
}

#page4 .remove-button {
    align-self: flex-end;
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 10px;
}

