/*
BASELINE v0.2 — DO NOT MODIFY WITHOUT EXPLICIT INSTRUCTION
*/

@font-face {
  font-family: "Digital-7";
  src: url("digital-7.woff") format("woff");
}

@font-face {
  font-family: "Digital-7 Mono";
  src: url("digital-7mono.woff") format("woff");
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: black;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}

#app, #display {
  width: 100%;
  height: 100%;
}

#mainLayout {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6vmin;
}

#clockArea { position: relative; }

#sideArea {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 2vmin;
}

body.show-side #sideArea { display: flex; }

#roundClock {
  width: 90vmin;
  height: 90vmin;
}

#digitalInside {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#digitalHM {
  font-size: 18vmin;
  display: flex;
  line-height: 1; /* ensures consistent baseline across browsers */
}

#digitalHMMain {
  font-family: "Digital-7";
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
}

#digitalHMLast {
  font-family: "Digital-7 Mono";
  display: inline-block;
  line-height: 1;
  vertical-align: baseline;
}

#digitalS {
  font-family: "Digital-7 Mono";
  font-size: 14vmin;
  line-height: 1;
}

#timer,
#countdown {
  font-family: "Digital-7 Mono";
  font-size: 14vmin;
  line-height: 1;
}

.hidden { display: none; }

/* TOP BAR */
#colorControls {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-evenly;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #111;
  color: #fff;
  z-index: 10;
}

#colorControls.autohide { display: none; }

/* BOTTOM BAR */
#controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #111;
  color: #fff;
  z-index: 10;
}

#controls.autohide { display: none; }

button, input {
  font-size: 1rem;
}
