/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.preloader {
    position: fixed;
    bottom: 2px;
    left: 20px;
    width: calc(100% - 40px);
    height: 50px;
    background: #f3f3f3;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, #4caf50, #81c784);
    border-radius: 25px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-text {
    position: absolute;
    font-size: 18px;
    font-weight: bold;
    color: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .preloader {
        bottom: 15px;
        left: 15px;
        width: calc(100% - 30px);
        height: 45px;
    }

    .preloader-text {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .preloader {
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        height: 40px;
    }

    .preloader-text {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .preloader {
        bottom: 8px;
        left: 8px;
        width: calc(100% - 16px);
        height: 35px;
    }

    .preloader-text {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .preloader {
        bottom: 5px;
        left: 5px;
        width: calc(100% - 10px);
        height: 30px;
    }

    .preloader-text {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .preloader {
        bottom: 3px;
        left: 3px;
        width: calc(100% - 6px);
        height: 25px;
    }

    .preloader-text {
        font-size: 8px;
    }
}

/* NavBtns.css */
/* KETER green: 004E4A rgb(0,78,74)
/* KETER light grey F2F2F7 rgb(242,242,247)
/* KETER ligh blue 94CFD5 rgb(148,207,213)
/* KETER Yellow/orange FFBF65 rgb(255,191,101)
/* KETER red C8102E rgb(200,16,46) */

body, html {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #7e7d86;
  }
  
  #next_btn ,#prev_btn {
    display: none;
  }
  
  .hidden {
    display: none;
  }
  
  :root {
    /* Define the variable at the root level */
    --screws-div-width: 90px;
    --lower_panel_height: 75px;
    --lower_panel_height_mobile: 75px; /* Increased height for mobile */
    --lower_from_center_down: 50px;
    --bar_div_color: rgba(44, 62, 80, 0.85);
    --prel_page_color: rgb(3, 27, 55);
    --num_bck_clr: rgba(3, 0, 23, 0.9);
    --contsd: 18%;
    --scrvrt: 170px;
    --butonrwclm: row;
    --scrsd: 10%;
    --iconVertical: 15px;
  
  }
  
  @media (max-width: 767px) {
    :root {
      --iconVertical: 15px; /* Adjusted value for mobile devices */
    }
  }
  
  @media (min-width: 768px) {
    :root {
      --iconVertical: 20px; /* Adjusted value for larger screens */
    }
  }
  
  .element-to-animate {
    animation: acrobatMove 1s ease-in-out;
  }
  
  @keyframes acrobatMove {
    0% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
    100% { transform: translateX(0); }
  }
  
  
  .game-button {
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.4));
  }
  
  .game-button:active {
    transform: scale(0.85);
    opacity: 0.8;
  }
  
  
  .navi-button {
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.4));
  }
  
  .navi-button:active {
    transform: scale(0.85);
    opacity: 0.8;
  }
  
  .navs_div {
    height: var(--lower_panel_height);
    bottom: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: right 0.5s ease-in;
    z-index: 4;
    flex-direction: row;
  }
  
  @media (max-width: 767px) {
    .navs_div {
      height: var(--lower_panel_height_mobile); /* Increased height for mobile */
    }
  }
  
  .nextbtn {
    order: 3;
  }
  
  .prvtbtn {
    order: 2;
    height: 50px; /* Ensure sufficient height for buttons on mobile */
  }
  
  
  .start {
    z-index: 6;
    animation: pulse 0.5s infinite;
    filter: drop-shadow(1px 1px 1px rgb(248, 128, 1));
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.07); }
    100% { transform: scale(1); }
  }
  
  #inditextdiv {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    width: auto;
    z-index: 2000;
    background-color: blue;
    color: yellow;
    padding: 5px;
  }
  
  .step-buttons {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1050;
  }
  /* 
  #toggleSteps {
    width: 90px;
  } */
  
  #toggleSteps {
    background-color: #00089a; /* Green background */
    border: none; /* Remove borders */
    color: white; /* White text */
    padding: 10px 20px; /* Adjust padding to ensure a balanced look */
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Make the button inline */
    font-size: 16px; /* Font size */
    line-height: 1; /* Ensure the text is vertically centered */
    margin: 4px 2px; /* Add some margin */
    cursor: pointer; /* Add a pointer cursor on hover */
    border-radius: 12px; /* Rounded corners */
    width: auto; /* Auto width to adjust based on content */
    min-width: 90px; /* Minimum width to avoid text wrapping */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    pointer-events: auto; 
  }
  
  #toggleSteps:hover {
    background-color: #2907c2; /* Darker green on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Add a shadow on hover */
  }
  
  #toggleSteps:active {
    background-color: #391596; /* Even darker green on click */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* Reduce shadow on click */
    transform: translateY(2px); /* Slightly move the button down on click */
  }
  
  .green-circle {
    position: absolute;
    bottom: 61px;
    left: 45px;
    width: 35px;
    height: 35px;
    background-color: #008f13; /* KETER green */
    border-radius: 50%;
    z-index: 2001; /* Ensure it appears above other elements */
  }
  
  .config-form-button {
    z-index: 98564;
    position: absolute;
    bottom: 15px;
    right: 10px;
    pointer-events: none; 
  }
  
  .config-form-button2 {
    /* display: none; */
    position: absolute;
    bottom: 100px;
    right: 20px;
    z-index: 7000; /* Ensure it's above other elements */
  }
  
  .testim {
    position: absolute;
    bottom: 250px;
    right: 20px;
    z-index: 7000; /* Ensure it's above other elements */
  }
  
  .prvbtn, .nextbtn {
    position: absolute;
    bottom: calc((var(--iconVertical)));
    z-index: 2500;
  }
  
  .prvbtn {
    left: calc(50vw - 60px - 30px); /* last "30px" is half of the button's width */
  }
  
  .nextbtn {
    right: calc(50vw - 60px - 30px); /* 20px is half of the button's width */
  }
  
  
  #resetCamera {
    position: absolute;
    display: none;
  
    z-index: 2500;
  }
  
  .mute_btn {
    position: absolute;
    display: none;
    z-index: 2500;
  }
  
  
  
  @media (max-width: 767px) {
    .mute_btn , #resetCamera {
      
      
      bottom: calc((var(--iconVertical)) + 5px);
      
    }
  
    .mute_btn {
      
      left: calc(50vw - 60px - 100px);    
    }
     #resetCamera {
      
      right: calc(50vw - 60px - 100px);
      bottom: calc((var(--iconVertical)) + 5px);
    
    }
  
  }
  
  @media (min-width: 767px) {
    .mute_btn , #resetCamera {
      
      
      bottom: calc((var(--iconVertical)) + 5px);
      
    }
  
    .mute_btn {
      
      left: calc(50vw - 60px - 110px);
     
      
    }
     #resetCamera {
      
      right: calc(50vw - 60px - 110px);
      bottom: calc((var(--iconVertical)) + 5px);
  
      
    }
  
  }
  
  
  .replay {
    position: absolute;
    
    
    z-index: 2500;
    
    /* right: calc(50vw - 50vw + 25px);  */
  }
  
  
  @media (min-width: 768px) {
    .replay {
     
      bottom: calc((var(--iconVertical)) + 5px);
    
    }
  }
  
  @media (max-width: 767px) {
    .replay {
      
    
      bottom: calc((var(--iconVertical)) + 5px);
      
    }
  }
  
  .replay {
  
    padding-left: 10px;
    padding-right: 10px;
   
  }
  
  
  
  
  .assignColorDemo {
    position: absolute;
    top: 10px;
    right: 150px;
    z-index: 2500;
  }
  
  
  
  .step-clock {
    position: absolute;
    top: 10px; /* Adjust the position as needed */
    right: 10px; /* Adjust the position as needed */
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000; /* Ensure it's on top of other elements */
  }
  
  /* nav bar */
  
  #dotNav {
      display: flex;
      height: 10px; /* Adjust height as needed */
  }
  
  .segment {
      flex-grow: 1; /* Ensures each segment takes up equal space */
      
      border: 1px solid grey; /* Grey grid */
      box-sizing: border-box; /* Ensure the border is included in the width/height calculation */
      transition: background-color 0.3s;
  }
  
  
  #progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 5px;
    height: 100vh;
    /* background-color: #ca3434;  */
    z-index: 5000; /* Ensure it stays on top */
    
  }
  
  #progress-bar {
    width: 100%;
    height: 0;
    background-color: #4caf50; 
    transition: height 0.2s ease;
  }
  

  /* NavBtns.css */
/* KETER green: 004E4A rgb(0,78,74)
/* KETER light grey F2F2F7 rgb(242,242,247)
/* KETER ligh blue 94CFD5 rgb(148,207,213)
/* KETER Yellow/orange FFBF65 rgb(255,191,101)
/* KETER red C8102E rgb(200,16,46) */

body, html {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #7e7d86;
}

#next_btn ,#prev_btn {
  display: none;
}

.hidden {
  display: none;
}

:root {
  /* Define the variable at the root level */
  --screws-div-width: 90px;
  --lower_panel_height: 75px;
  --lower_panel_height_mobile: 75px; /* Increased height for mobile */
  --lower_from_center_down: 50px;
  --bar_div_color: rgba(44, 62, 80, 0.85);
  --prel_page_color: rgb(3, 27, 55);
  --num_bck_clr: rgba(3, 0, 23, 0.9);
  --contsd: 18%;
  --scrvrt: 170px;
  --butonrwclm: row;
  --scrsd: 10%;
  --iconVertical: 15px;

}

@media (max-width: 767px) {
  :root {
    --iconVertical: 15px; /* Adjusted value for mobile devices */
  }
}

@media (min-width: 768px) {
  :root {
    --iconVertical: 20px; /* Adjusted value for larger screens */
  }
}

.element-to-animate {
  animation: acrobatMove 1s ease-in-out;
}

@keyframes acrobatMove {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}


.game-button {
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.4));
}

.game-button:active {
  transform: scale(0.85);
  opacity: 0.8;
}


.navi-button {
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
  filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.4));
}

.navi-button:active {
  transform: scale(0.85);
  opacity: 0.8;
}

.navs_div {
  height: var(--lower_panel_height);
  bottom: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: right 0.5s ease-in;
  z-index: 4;
  flex-direction: row;
}

@media (max-width: 767px) {
  .navs_div {
    height: var(--lower_panel_height_mobile); /* Increased height for mobile */
  }
}

.nextbtn {
  order: 3;
}

.prvtbtn {
  order: 2;
  height: 50px; /* Ensure sufficient height for buttons on mobile */
}


.start {
  z-index: 6;
  animation: pulse 0.5s infinite;
  filter: drop-shadow(1px 1px 1px rgb(248, 128, 1));
}

@keyframes pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

#inditextdiv {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: auto;
  z-index: 2000;
  background-color: blue;
  color: yellow;
  padding: 5px;
}

.step-buttons {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 1050;
}
/* 
#toggleSteps {
  width: 90px;
} */

#toggleSteps {
  background-color: #00089a; /* Green background */
  border: none; /* Remove borders */
  color: white; /* White text */
  padding: 10px 20px; /* Adjust padding to ensure a balanced look */
  text-align: center; /* Center the text */
  text-decoration: none; /* Remove underline */
  display: inline-block; /* Make the button inline */
  font-size: 16px; /* Font size */
  line-height: 1; /* Ensure the text is vertically centered */
  margin: 4px 2px; /* Add some margin */
  cursor: pointer; /* Add a pointer cursor on hover */
  border-radius: 12px; /* Rounded corners */
  width: auto; /* Auto width to adjust based on content */
  min-width: 90px; /* Minimum width to avoid text wrapping */
  transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
  pointer-events: auto; 
}

#toggleSteps:hover {
  background-color: #2907c2; /* Darker green on hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Add a shadow on hover */
}

#toggleSteps:active {
  background-color: #391596; /* Even darker green on click */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* Reduce shadow on click */
  transform: translateY(2px); /* Slightly move the button down on click */
}

.green-circle {
  position: absolute;
  bottom: 61px;
  left: 45px;
  width: 35px;
  height: 35px;
  background-color: #008f13; /* KETER green */
  border-radius: 50%;
  z-index: 2001; /* Ensure it appears above other elements */
}

.config-form-button {
  z-index: 98564;
  position: absolute;
  bottom: 15px;
  right: 10px;
  pointer-events: none; 
}

.config-form-button2 {
  /* display: none; */
  position: absolute;
  bottom: 100px;
  right: 20px;
  z-index: 7000; /* Ensure it's above other elements */
}

.testim {
  position: absolute;
  bottom: 250px;
  right: 20px;
  z-index: 7000; /* Ensure it's above other elements */
}

.prvbtn, .nextbtn {
  position: absolute;
  bottom: calc((var(--iconVertical)));
  z-index: 2500;
}

.prvbtn {
  left: calc(50vw - 60px - 30px); /* last "30px" is half of the button's width */
}

.nextbtn {
  right: calc(50vw - 60px - 30px); /* 20px is half of the button's width */
}


#resetCamera {
  position: absolute;
  display: none;

  z-index: 2500;
}

.mute_btn {
  position: absolute;
  display: none;
  z-index: 2500;
}



@media (max-width: 767px) {
  .mute_btn , #resetCamera {
    
    
    bottom: calc((var(--iconVertical)) + 5px);
    
  }

  .mute_btn {
    
    left: calc(50vw - 60px - 100px);    
  }
   #resetCamera {
    
    right: calc(50vw - 60px - 100px);
    bottom: calc((var(--iconVertical)) + 5px);
  
  }

}

@media (min-width: 767px) {
  .mute_btn , #resetCamera {
    
    
    bottom: calc((var(--iconVertical)) + 5px);
    
  }

  .mute_btn {
    
    left: calc(50vw - 60px - 110px);
   
    
  }
   #resetCamera {
    
    right: calc(50vw - 60px - 110px);
    bottom: calc((var(--iconVertical)) + 5px);

    
  }

}


.replay {
  position: absolute;
  
  
  z-index: 2500;
  
  /* right: calc(50vw - 50vw + 25px);  */
}


@media (min-width: 768px) {
  .replay {
   
    bottom: calc((var(--iconVertical)) + 5px);
  
  }
}

@media (max-width: 767px) {
  .replay {
    
  
    bottom: calc((var(--iconVertical)) + 5px);
    
  }
}

.replay {

  padding-left: 10px;
  padding-right: 10px;
 
}




.assignColorDemo {
  position: absolute;
  top: 10px;
  right: 150px;
  z-index: 2500;
}



.step-clock {
  position: absolute;
  top: 10px; /* Adjust the position as needed */
  right: 10px; /* Adjust the position as needed */
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 1000; /* Ensure it's on top of other elements */
}

/* nav bar */

#dotNav {
    display: flex;
    height: 10px; /* Adjust height as needed */
}

.segment {
    flex-grow: 1; /* Ensures each segment takes up equal space */
    
    border: 1px solid grey; /* Grey grid */
    box-sizing: border-box; /* Ensure the border is included in the width/height calculation */
    transition: background-color 0.3s;
}


#progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 100vh;
  /* background-color: #ca3434;  */
  z-index: 5000; /* Ensure it stays on top */
  
}

#progress-bar {
  width: 100%;
  height: 0;
  background-color: #4caf50; 
  transition: height 0.2s ease;
}

.coordinate-label {
  color: rgb(8, 7, 7);
  font-size: 15px;
  background-color: rgba(255, 255, 255, 0.3);
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap; /* Prevents text from wrapping */
  user-select: none; /* Avoids selection of the label */
  font-family: Arial, sans-serif;
  border-radius: 25px;
}
