/* General Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden; /* Prevent scrolling on mobile */
  }
  
  .modal-content {
    position: relative;
    width: 90vw; /* Responsive width for smaller screens */
    max-width: 400px; /* Limit the max width for larger screens */
    height: auto;
    max-height: 90vh; /* Prevents content from overflowing on small screens */
    margin: auto;
    background-color: #fff;
    padding: 15px; /* Reduced padding for more space */
    text-align: center;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin-top: 1%;
  }
  
  /* Adjustments for the Close Button */
  #close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px; /* Reduced font size for mobile */
    cursor: pointer;
  }
  
  /* Carousel and Image Styles */
  .carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    margin: 10px 0; /* Reduced margin for compact layout */
    height: 50vh; /* Set height to keep it responsive */
  }
  
  #carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  /* Carousel Inner Arrows */
.inner-arrow {
    font-size: 20px; /* Adjust size to fit within carousel */
    background: rgba(255, 255, 255, 0.7); /* Frosted white background */
    color: black;
    border: none;
    cursor: pointer;
    width: 25px; /* Set width for frosted button look */
    height: 30px; /* Set height for frosted button look */
    border-radius: 10%; /* Rounded button shape */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for frosted effect */
    position: absolute; /* Keep them positioned within the carousel */
  }

  /* Position Inner Arrows within Carousel */
.inner-arrow:first-of-type { /* Left arrow */
    left: 15px;
  }
  
  .inner-arrow:last-of-type { /* Right arrow */
    right: 15px;
  }
  
/* Outer Arrows Container */
.outer-arrows-container {
    display: flex;
    width: 90vw; /* Match modal-content width */
    max-width: 400px;
    margin: 0 auto; /* Center container */
    margin-top: 5px; /* Add a bit of space between modal-content and buttons */
    border-radius: 8px; /* Rounded corners for the entire container */
    overflow: hidden; /* Ensure rounded corners appear correctly */
  }
  
  .outer-arrow {
    flex: 1; /* Take up half of the container width */
    font-size: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    height: 50px; /* Set button height */
  }
  
    /* Left Button - Rounded left edge */
    #left-design {
        margin-right: 2.5px; /* Add a bit of space between modal-content and buttons */
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        border-right: 1px solid rgba(255, 255, 255, 0); /* Thin line to differentiate */
    }
    
    /* Right Button - Rounded right edge */
    #right-design {
        margin-left: 2.5px; /* Add a bit of space between modal-content and buttons */
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
        border-left: 1px solid rgba(255, 255, 255, 0); /* Thin line to differentiate */
    }
  
  /* Select Button Styles */
  .select-button {
    background-color: #760706ff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px; /* Smaller padding for compact look */
    font-size: 14px; /* Adjust font size for mobile */
    cursor: pointer;
  }
  
  .select-button:hover {
    background-color: rgba(118, 8, 6, 0.609);
  }
  
  /* Details Box */
  .details-box {
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    padding-top: 2px;
    border-top: 1px solid #ccc;
  }

  /* Details Box */
  .details-row {
    display: flex;
    justify-content: space-around;
    margin-top: 0px;
    padding-top: 0px;
  }  
  
  /* Detail Section Adjustments */
  .detail {
    text-align: center;
    width: 70px; /* Reduced width for compact layout */
    padding: 0px; /* Reduced padding */
  }
  
  .detail-label {
    font-size: 12px; /* Smaller font size for mobile */
  }
  
  .detail-value {
    font-size: 12px;
    font-weight: bold;
  }
  
  /* Media Query for Extra Small Screens */
  @media (max-width: 600px) {
    .modal-content {
      width: 95vw;
      max-height: 85vh; /* Further height adjustment for very small screens */
    }
  
    /* Adjust carousel height for small screens */
    .carousel {
      height: 40vh;
    }
  
    /* Reduce font size and padding even more if needed */
    .design-name {
      font-size: 20px;
    }
    
    .select-button {
      font-size: 12px;
      padding: 6px;
    }
  }
  