/* Kontener Three.js - dopasuje się do wrappera */
#three-container {
    width: 100%;
    height: 100%;
	min-height: 500px; /* Minimalna wysokość 200 pikseli */
    position: relative;
}

#controls {
    width: 100%;
    padding: 10px;
    text-align: center;
    background-color: #f4f4f4;
    border-top: 2px solid #ccc;
}

#controls button, 
#controls input {
    font-size: 16px;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#controls button {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

#controls button:hover {
    background-color: #0056b3;
}

#controls input {
    width: 220px;
    text-align: center;
}

#rotateMessage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 20px;
    font-weight: bold;
    display: none; /* Domyślnie ukryty */
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
}

/* Style dla wizualizacji trujkątów */


.canvas-container {
    position: relative;
    width: 100vw;
    height: 50vh;
}
#canvas_tlo_laboratorium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.page-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem !important;
    color: white !important;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 10;
}
/* okno informacji pomocy */
/* Ukrycie okna domyślnie */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-height: 80vh; /* Maksymalnie 80% wysokości ekranu */
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  overflow-y: auto; /* Pasek przewijania */

}


/* Przycisk zamykania */
.zamknij {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  cursor: pointer;
z-index: 11; /* Krzyżyk nad resztą */
}