/* Remove your old @font-face block entirely */

html {
    /* Reference the font name from the Google API */
    font-family: 'Inter', sans-serif;
    /* This forces the browser to render the variable weight correctly */
    font-variation-settings: 'wght' 400;
    /* Prevents text size adjustments after orientation changes on mobile */
    -webkit-text-size-adjust: 100%;
}



html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents the 'double scrollbar' zoom effect on iOS */
    display: block;
}

h1 {
  font-weight: 400; /* or 300, 500, etc. */
}


#text-container {
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

/*Start screen */

/* 1. Main Loading Screen Overlay */
#loading-screen {
    /* 1. Set the background image */
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('images/image.png');


    /* 2. Make it cover the full screen without stretching */
    background-size: auto 90%;

    /* 3. Center the image */
    background-position: center;

    /* 4. Ensure it doesn't repeat if the screen is huge */
    background-repeat: no-repeat;

    /* 5. Fallback color (white) if the image fails to load */
    background-color: #ffffff; 

    /* Keep your existing functional styles */
    width: 100%;
    height: 100%;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* 2. Container centered on screen */
#loading-screen-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    height: auto;
    text-align: center;
}

/* 3. NEW: The wrapper that overlaps the dots and the button */
#loading-interaction-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    min-height: 60px; /* Keeps the gap consistent */
}

/* 4. The Button (Dynamic Sizing) */
#start-button {
    cursor: pointer;
    display: none; /* Shown via JS */
    padding: 12px 22px;
    background-color: #B99253;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 2;
    position: relative;
}

#start-button span { 
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: white;
    white-space: nowrap; /* Prevents text wrapping */
}

#start-button:hover {
    background-color: #856431;
}

/* 5. The Ellipsis (Dots) Animation */
#loading-icon {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 15px;
}

.lds-ellipsis div {
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) { left: 8px; animation: lds-ellipsis1 0.6s infinite; }
.lds-ellipsis div:nth-child(2) { left: 8px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(3) { left: 32px; animation: lds-ellipsis2 0.6s infinite; }
.lds-ellipsis div:nth-child(4) { left: 56px; animation: lds-ellipsis3 0.6s infinite; }

@keyframes lds-ellipsis1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
@keyframes lds-ellipsis3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}
@keyframes lds-ellipsis2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}


/* MEGAMENU */

.back_arrow {
  position: absolute;
  right: 20px;
  top: 0px;
  height: 15px;
  cursor: pointer;
}

#back_arrow_room_popup {
  display: none;
}

#back_arrow_attic_room_popup {
  display: none;
}

#back_arrow_bathroom_popup {
  display: none;
}

#back_arrow_toilet_popup {
  display: none;
}

#back_arrow_bedroom_popup {
  display: none;
}

#back_arrow_entrance_popup {
  display: none;
}

#back_arrow_living_room_popup {
  display: none;
}

#back_arrow_kitchen_popup {
  display: none;
}

#back_arrow_boiler_room_popup {
  display: none;
}

#back_arrow_laundry_room_popup {
  display: none;
}

#back_arrow_garden_popup {
  display: none;
}

#updated-object-text {
  display: none;
}

#zoomed-out-text {
  display: block;
}

#attic-room-text{
  display: none;
}

#bathroom-text{
  display: none;
}

#toilet-text{
  display: none;
}

#bedroom-text{
  display: none;
}

#entrance-text{
  display: none;
}

#living-room-text{
  display: none;
}

#kitchen-text{
  display: none;
}

#boiler-room-text{
  display: none;
}

#laundry-room-text{
  display: none;
}

#garden-text{
  display: none;
}

.flex-container {
  display: flex;
  flex-direction: row;
  height: 100%;
  max-height: 800px;
  width: 100%;
  max-width: 1920px;
  position: absolute;
  transform: translate(-50%, -50%);
  left: 50vw;
  top: 50dvh;
}

#iframe-container {
  flex: 2;
  background-color: #f0f0f0;
  position: relative;
  height: 100%;
  order: 1;
}

#text-container {
    flex: 1;
    height: 100%;
    background-color: #ffffff;
    position: relative;
    display: block;
    overflow: auto;
    display: block;
    scrollbar-gutter: stable;
}

#text-block {
    overflow-y: visible;
    transform: translateX(0);
    opacity: 1;
    transition: opacity 0.2s ease-out, transform 2s ease;
    animation-duration: 4s;
    position: relative;
    padding: 0px 20px 40px 0px;
}

#popup_room {
    font-family: 'Inter';
    top: 50%;
    max-width: 100%;
    color: #282828;
    font-size: 16px;
    line-height: 21px;
    font-kerning: auto;
}

#popup_object {
    font-family: 'Inter';
    max-width: 100%;
    color: #B99253;
    font-size: 20px;
    padding-top: 5px;
}

#dividing_line{
  height: 1px;
  background-color: #e5e5e5;
  margin-top: 40px;
  margin-bottom: 50px;
}

#dividing_line_2{
  height: 1px;
  background-color: #e5e5e5;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 20px;
}

#dividing_line_header{
  height: 1px;
  background-color: #e5e5e5;
  width: 100%;
  margin-top: 20px;
  margin-bottom: 10px;
}

#popup_locataire{
  font-family: 'Inter';
  max-width: 100%;
  color: #B99253;
  font-size: 16px;
  padding-bottom: 0px;
}

.popup_naviguation_chambre{
  font-family: 'Inter';
  max-width: 100%;
  color: #282828;
  font-size: 16px;
  cursor: pointer;
}

.popup_naviguation_chambre:hover {
    color: #828282;
}

.popup_naviguation_chambre_color_overwrite{
  color: #B99253;
  font-size: 16px;
}

#popup_paragraph{
  font-family: 'Inter';
  width: 100%;
  font-size: 16px;
  padding-left: 15px ;
}

ul li{
  list-style-type: none; /* Remove default bullets */
  max-width: calc(100% - 20px);
  margin-bottom: 20px;
}

ul li::before {
  content: '-'; /* Dash character */
  position: absolute; /* Position absolutely within the list item */
  left: 5px; /* Align the dash to the left */
  color: #000000; /* Dash color */
  font-size: 16px; /* Size of the dash */
  font-family: GillSemiBold;
}


#color_overwrite {
    font-family: 'Inter';
    color: #B99253;
    font-size: 16px;
}

iframe {
    width: 1px;
    min-width: 100%;
    height: 100%;
    border: 0;
    /* This helps Safari treat the iframe as a scrollable container */
    overflow: hidden; 
}


@media only screen and (max-width: 991px) {

  .flex-container {
    display: flex;
    flex-direction: column; /* or column, depending on your layout */
    height: 100vh;
    max-height: none;
  }

  #iframe-container {
    flex: 1.5;
    background-color: #f0f0f0;
    position: relative;
    height: 100%;
    width: 100%;
    max-height: 100vw;
    order: 0;
  }

  #text-container {
      flex: 1;
      height: 100%;
  }


  #popup_room {
    display: none;
  }

  #popup_object {
    font-family: Inter;
    font-size: 20px;
    padding-top: 0px;
  }

  #popup_locataire{
    font-family: 'Inter';
    max-width: 100%;
    color: #B99253;
    font-size: 20px;
    padding-bottom: 0px;
    padding-top: 0px;
    max-width: 600px;
  }

  #popup_paragraph{
    font-family: 'Inter';
    width: 100%;
    font-size: 16px;
    padding-left: 15px ;
  }

  ul li{
    list-style-type: none; /* Remove default bullets */
  }

  ul li::before {
    content: '-'; /* Dash character */
    position: absolute; /* Position absolutely within the list item */
    left: 5px; /* Align the dash to the left */
    color: #000000; /* Dash color */
    font-size: 16px; /* Size of the dash */
    font-family: GillSemiBold;
  }

  .popup_naviguation_chambre{
    font-family: 'Inter';
    width: 100%;
    font-size: 16px;
  }

  .popup_naviguation_chambre_color_overwrite{
    display: none;
  }

  #dividing_line_2{
    height: 1px;
    background-color: #e5e5e5;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .hidden-on-phone{
    display: none;
  }
}
