/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
  }
  
  header {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: left;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: 0;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .hamburger {
    font-size: 24px;
    cursor: pointer;
    display: inline-block;
  }
  
  .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #333;
    border: 1px solid #444;
  }
  
  .menu li {
    padding: 10px 20px;
  }
  
  .menu a {
    color: #fff;
    text-decoration: none;
  }
  
  .menu-toggle:checked ~ .menu {
    display: block;
  }
  
  main {
    padding: 20px;
  }
  
  footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
  }
  
/* General Styles */
body {
  font-family: Arial, sans-serif;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-color: #f0f0f0;
}
main.app {
  display: flex;
}
main {
  text-align: center;
}

/* Level Container */
.level-container {
  width: 200px;
  height: 200px;
  background-color: #ddd;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Bubble */
.bubble {
  width: 40px;
  height: 40px;
  background-color: #4CAF50;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  /* Always center the bubble as a base */
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  /* Remove translate property, use only transform for movement */
}

/* Target Crosshairs and Circles */
.target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

.crosshair {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
}

.crosshair.vertical {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.crosshair.horizontal {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.circle {
  position: absolute;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.small-circle-1 {
  width: 80px;
  height: 80px;
}

.small-circle-2 {
  width: 120px;
  height: 120px;
}

#sensor-status {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.9em;
  color: red;
  z-index: 2;
}

#angle {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  z-index: 2;
}
