.container {
  position: relative;
  width: min(90vw, 700px);
  height: min(90vw, 700px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo behaves like a circle element */
#logo {
  position: absolute;
  width: clamp(80px, 20vw, 200px);
  object-fit: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  z-index: 10;
}

/* Logo becomes circle-sized and moves to radial position */
#logo.logo-small {
  width: 110px;
  height: 110px;
  transform: translate(-50%, -50%) translate(var(--x), var(--y));
}

/* Circular menu items */
.circle {
  position: absolute;
  width: clamp(80px, 12vw, 130px);
  height: clamp(80px, 12vw, 130px);
  background-color: rgba(255, 150, 0, 0.7);
  border-radius: 50%;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10px;
  cursor: pointer;
  font-weight: bold;
  --scale: 1;
  --x: 0;
  --y: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translate(0, 0) scale(var(--scale));
  transition: transform 0.3s ease;
}

.circle-content {
  display: none;
}

.circle.expanded {
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) scale(var(--scale));
}

.circle:hover {
  --scale: 1.1;
}

/* Content box */
#content {
  position: absolute;
  width: 60%;
  height: auto;
  max-height: 90vh;        /* never taller than the viewport */
  overflow-y: auto;        /* scroll internally if needed */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  padding: 20px;
  box-sizing: border-box;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ebe9e7;
  color: #4a4a4a;        /* ensures text stays readable */
  padding: 20px;       /* optional, but usually looks better */
  border-radius: 10px; /* optional */
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 10;
}

#content.visible {
  opacity: 1;
  pointer-events: auto;
}
