/* CSS variables for theme */
:root {
  --bg: #0f0f13;
  --text: #bfc3cc;
  --btn-bg: #4a9cef;
  --btn-line: #fff;
}

/* Basic page styles */
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2vh;
  box-sizing: border-box;
}

.gif {
  width: clamp(80px, 18vw, 200px);
  height: auto;
  display: block;
  border-radius: 1vw;
  box-shadow: 0 0.8vh 2vh rgba(0,0,0,0.6);
  margin-bottom: 2vh;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1vh;
  text-align: center;
  font-size: clamp(12px, 2vw, 20px);
  color: var(--text);
  opacity: 0.9;
  user-select: none;
}

/* Hamburger button styles */
.menu-btn {
  position: fixed;
  top: 2vh;
  right: 2vw;
  height: clamp(36px, 6vh, 48px);
  width: calc(1.2 * clamp(36px, 6vh, 48px));
  background: var(--btn-bg);
  border: none;
  border-radius: 0.8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 4px 0;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn span {
  display: block;
  width: 60%;
  height: clamp(3px, 0.6vh, 4px);
  background: var(--btn-line);
  border-radius: 2px;
}

/* Dropdown menu styles */
.dropdown {
  position: fixed;
  top: calc(clamp(36px, 6vh, 48px) + 3vh);
  right: 2vw;
  background: #1b1b21;
  border-radius: 0.8vw;
  overflow: hidden;
  display: none;
  box-shadow: 0 0.8vh 2vh rgba(0,0,0,0.6);
  z-index: 1000;
  min-width: clamp(120px, 25vw, 220px);
}

.dropdown.active {
  display: block;
}

.dropdown a, .dropdown .submenu-btn {
  display: block;
  padding: clamp(8px, 1.2vh, 14px) clamp(12px, 2vw, 18px);
  color: #fff;
  text-decoration: none;
  font-size: clamp(12px, 1.6vw, 18px);
  cursor: pointer;
}

.dropdown a:hover, .dropdown .submenu-btn:hover {
  background: #2a2a33;
}

/* Submenu styles */
.submenu {
  display: none;
  background: #2a2a33;
}

.submenu.active {
  display: block;
}

/* Debug panel styles */
#debugPanel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,0,0,0.85);
  color: #fff;
  font-family: monospace;
  font-size: clamp(10px,1.5vw,16px);
  padding: 5px 10px;
  max-height: 30vh;
  overflow-y: auto;
  display: none;
  z-index: 2000;
}

#debugPanel div {
  margin-bottom: 3px;
}