#canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid black;
}

@media (min-width: 1500px) {
  #canvas {
    width: 1400px;
    height: 850px;
  }
}

@media (max-width: 1499px) {
  #canvas {
    width: 1100px;
    height: 600px;
  }
}

canvas:active {
  cursor: grabbing;
}

html, body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

.canvas-container {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
}

.custom-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
  background-color: #fffbe6;
  width: 90%;
  max-width: 850px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  clip-path: polygon(0 0, 100% 0, 100% 95%, 95% 100%, 0 100%);
  padding: 0;
}

.custom-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  padding: 10px 20px;
  cursor: pointer;
}

.custom-close:hover {
  color: black;
}

.intro-popup-text {
  background-color: #b3d8ee;
  border: 1px solid #78bdde;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.4;
}

.navbar {
  background-color: #c0cf47;
  padding: 5px;
  color: white;
  display: flex;
  align-items: center;
}

.navbar-left,
.navbar-center,
.navbar-right {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: transparent;
}

.navbar-left {
  justify-content: flex-start;
  gap: 10px;
}

.navbar-center {
  justify-content: center;
  gap: 50px;
}

.navbar-right {
  justify-content: flex-end;
  gap: 10px;
}

.navbar-right .nav-link {
  background: none;
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
}

.navbar-right .nav-link:hover {
  text-decoration: underline;
}

.navbar-center img {
  background-color: transparent;
  display: block;
}

.nav-link {
  background-color: transparent !important;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


.nav-link img {
  width: auto;
  height: 50px;
  cursor: pointer;
  transition: transform 0.2s;
}

.nav-link img:hover {
  transform: scale(1.2);
}

.navbar-logo {
  display: block;
  max-width: 80px;
  height: auto;
}

.navbar-left h1 {
  margin: 0px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown.active:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}


.info-box {
  position: fixed;
  bottom: 482px;
  right: 10px;
  width: 220px;
  background-color: #c0cf47;
  border: 1px solid #99a637;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-align: left;
  z-index: 999;
}

.info-box p,
.info-box label {
  margin: 4px 0;
  font-size: 16px;
  display: block;
}

.info-box2 {
  position: fixed;
  bottom: 610px;
  right: 10px;
  width: 220px;
  background-color: #d78381;
  border: 1px solid #c73735;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  font-size: 14px;
  text-align: left;
  z-index: 999;
}

.info-box2 p,
.info-box2 label {
  margin: 4px 0;
  font-size: 16px;
  display: block;
}


.navbar-right .button-row {
  margin-right: auto; 
  padding-left: 500px;
}


.button-row button {
  background-color: white;
  color: black;
  border: none;
  padding: 16px 28px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transform: scale(1.2);
  transition: background-color 0.3s ease;
}

.button-row button:hover {
  background-color: #cfcfcf;
}

.centered-message {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: Arial, sans-serif;
  font-size: 24px;
  text-align: center;
}


#popup {
  display: none;
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  background-color: white;
  border: 1px solid #ccc;
  padding: 20px 20px 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-radius: 20px;
  /* Rounded corners for the popup */
}

#rotationPopup {
  position: fixed;
  top: 100px;
  right: 10px;
  background-color: #c73735;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-size: 14px;
  width: fit-content;
  max-width: 220px;
  height: auto;
  color: white;
}

#rotationPopup p {
  margin: 0 0 10px;
}

#rotationPopup button {
  margin: 4px;
  border-radius: 10px;
  border: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
}


.age-select {
    color: #ccc; /* Hellgrau für den Text */
}

/* Wenn eine andere Option als die erste gewählt wird, soll die Farbe normal sein */
.age-select option {
    color: #000; /* Schwarz für die Optionen */
}



#rotationPopup {
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#rotationPopup.show {
  opacity: 1;
  transform: translateY(0);
}



#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

input[type="number"],
input[type="text"] {
  display: block;
  margin: 10px 0;
  width: 100%;
  padding: 8px;
  border-radius: 10px;
  /* Rounded corners for input fields */
  border: 1px solid #ccc;
  box-sizing: border-box;
}

label.checkbox-label {
  display: flex;
  align-items: center;
  margin: 10px 0;
  font-size: 14px;
}

label.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

.button-group {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 15px;
}

.button-group button {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 10px;
  /* Rounded corners */
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.button-group button:hover {
  background-color: #e0e0e0;
}



.button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  /* optional spacing between buttons */
  border-radius: 10px;
  margin-top: 5px;
}

.button-row button {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}

#boundary-menu-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

#boundary-menu {
  position: absolute;
  bottom: 300px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#boundary-menu div {
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
}

#boundary-menu div:hover {
  background-color: #f0f0f0;
}

.hidden {
  display: none;
}


#draw-boundary-button {
  position: fixed;
  bottom: 270px;
  right: 20px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background-color: #c73735;
  color: white;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#draw-boundary-button:hover {
  background-color: #961e2f;
}


#help-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background-color: #78bdde;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

#help-button:hover {
  background-color: #4ba1ba;
}

#start-button {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 60px;
  border: none;
  border-radius: 10px;
  background-color: #c0cf47;
  color: white;
  font-size: 32px;
  /* vorher 16px */
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background-color 0.3s ease;
}


#start-button:hover {
  background-color: #99a637;
}

/* Modal Hintergrund */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Inhalt */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  color: #333;
  /* or any dark color */
  font-size: 20px;
  margin-bottom: 20px;
}


.modal-content button {
  margin: 10px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#continue-example {
  background-color: #78bdde;
  color: white;
}

#create-new {
  background-color: #78bdde;
  color: white;
}

#continue-example:hover {
  background-color: #4ba1ba;
}

#create-new:hover {
  background-color: #4ba1ba;
}



#submit-floorplan {
  background-color: #78bdde;
  /* Blau */
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#submit-floorplan:hover {
  background-color: #4ba1ba;
  /* Dunkleres Blau beim Hover */
}

.toggle-box {
  position: fixed;
  bottom: 330px;
  right: 10px;
  width: 220px;
  color: black;
  background-color: #b3d8ee;
  border: 1px solid #78bdde;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  font-size: 16px;
  z-index: 20;
}

.toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.toggle-label {
  flex: 1;
  font-size: 16px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #898285;
  transition: 0.2s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  z-index: 2;
}

.slider:after {
  content: "";
  position: absolute;
  font-size: 14px;
  color: white;
  left: 28px;
  top: 2px;
  transition: 0.2s;
  z-index: 1;
}

input:checked+.slider {
  background-color: #78bdde;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

input:checked+.slider:after {
  content: "";
  left: 6px;
}



.email-link {
  color: #898285;
  text-decoration: underline;
}

.email-link:hover {
  color: #afabad;
}



@media screen and (max-width: 1700px) {
  .navbar {
    padding: 6px 10px;
    gap: 0px;
    margin-top: 0px;
  }

  .canvas-container {
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: first baseline;
    height: auto;
  }

  .navbar-left {
    gap: 0px;
  }

  .navbar-left h1 {
    font-size: 18px;
    margin-left: 10px;
  }

  .navbar-logo {
    max-width: 50px;
  }


  .navbar-right .nav-link {
    font-size: 10px;
    padding: 5px 6px;
  }

  .nav-link .icon-text span {
    font-size: 12px;
  }

  .navbar-right .button-row {
  margin-right: auto; 
  padding-left: 400px;
}


.button-row button {
  background-color: white;
  color: black;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

  .toggle-box {
    position: fixed;
    bottom: 200px;
    right: 10px;
    width: 150px;
    color: black;
    background-color: #b3d8ee;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 20;
    line-height: 2;
  }

  #start-button {
    position: absolute;
    top: 35%;
    left: 44%;
    transform: translateX(-50%);
    width: 70px;
    height: 50px;
    border: none;
    border-radius: 10px;
    background-color: #c0cf47;
    color: white;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
  }

  .info-box {
    position: fixed;
    bottom: 290px;
    right: 10px;
    width: 150px;
    background-color: #c0cf47;
    border: 1px solid #99a637;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    font-size: 10px;
    text-align: center;
    z-index: 999;
  }

  .info-box p,
  .info-box label {
    margin: 4px 0;
    font-size: 11px;
    display: block;
  }

  .info-box2 {
  position: fixed;
  bottom: 375px;
  right: 10px;
  width: 150px;
  background-color: #d78381;
  border: 1px solid #c73735;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: Arial, sans-serif;
  font-size: 10px;
  text-align: center;
  z-index: 999;
}

.info-box2 p,
.info-box2 label {
  margin: 4px 0;
  font-size: 11px;
  display: block;
}

  .toggle-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
  }

  .toggle-label {
    font-size: 10px;
  }

  .switch {
    width: 34px;
    height: 18px;
  }

  .slider {
    height: 18px;
  }

  .slider:before {
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
  }

  input:checked+.slider:before {
    transform: translateX(14px);
  }

  .slider:after {
    content: "";
    /* optional wäre ein "✗" */
    position: absolute;
    font-size: 10px;
    color: white;
    left: 20px;
    top: 2px;
    transition: 0.4s;
    z-index: 1;
  }

  input:checked+.slider:after {
    content: "";
    /* optional wäre ein "✓" */
    left: 6px;
  }


  .dropdown-content a {
    font-size: 14px;
    padding: 4px 6px;
    /* optional für kompakteres Layout */
  }

  /* Anleitung im Modal auf kleineren Bildschirmen anpassen */
  #introPopup .custom-modal-content {
    width: 95%;
    margin: 20px auto;
  }

  .nav-link img {
    width: auto;
    height: 30px;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .navbar-center {
    justify-content: center;
    gap: 25px;
    font-size: 10px;
  }

  .intro-popup-text {
    font-size: 10px;
    padding: 12px;
    line-height: 1.4;
  }

  .intro-popup-text h2 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .intro-popup-text p,
  .intro-popup-text li {
    font-size: 12px;
  }

  .intro-popup-text ul {
    padding-left: 18px;
  }



}