@import 'bootstrap/dist/css/bootstrap.min.css';

body,
html {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

#switchMode {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 10px;
}

#container3D {
  width: 100%;
  height: 100%;
}

#menuBar {
  position: absolute;
  width: 20vw;
  height: 100vh;
  padding: 1em;
  z-index: 10;
  background-color: white;
}

#canvas3D {
  position: absolute;
  z-index: 1;
  display: block;
}

#canvas2D {
  width: 100%;
  height: 100%;
}

#container2D {
  height: 100%;
  position: relative;
}

#uploadControls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#uploadControls button {
  margin: 0;
}

.info-box {
  position: absolute;
  top: 30px;
  left: 20px;
  max-width: 350px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  z-index: 1000;
}

#info2D {
  top: 80px;
  left: 15px;
}

#info3D {
  top: 20px;
  left: 380px;
}

.shortcuts-toggle {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shortcuts-toggle h3 {
  margin: 0;
  font-size: 16px;
  border-bottom: none;
  padding-bottom: 0;
  flex-grow: 1;
}

.shortcutsArrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.shortcuts-content {
  max-height: 200px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.shortcuts-content.collapsed {
  max-height: 0;
}

#shortcutsContent ul {
  margin: 10px 0 0 0;
  padding-left: 20px;
}

#shortcutsContent li {
  margin-bottom: 8px;
}

/* loading spinner */
#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-content {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px 40px;
  border-radius: 10px;
  text-align: center;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}