 /* 
  Octarule Project
  Author: Keith (Arc.Keith)
  Created: July 2025
  License: Creative Commons Attribution 4.0 International (CC BY 4.0)
  https://creativecommons.org/licenses/by/4.0/
*/

.clock-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  color: white;
  font-family: monospace;
  
}

.clock {
  width: 90vmin;
  height: 90vmin;
  min-height: 90vmin;
  border: 8px solid #fff;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  background: radial-gradient(circle, #111 70%, #1a1a1a);
  margin-bottom: 0.5rem;
}

.clock::after {
  content: "";
  display: block;
  height: 2rem;
}

.mark {
  width: 2px;
  height: 5vmin;
  background: #fff;
  position: absolute;
  top: 0%;
  left: 50%;
  transform-origin: center calc(45vmin);
  box-shadow: 0 0 2px #fff;
}

.dot {
  width: 4px;
  height: 4px;
  background: #aaa;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(0deg) translateY(-44vmin);
  opacity: 0.6;
}

.dot.blue {
  background: #3b82f6;
  opacity: 0.9;
  box-shadow: 0 0 6px #3b82f6;
}

.hand {
  width: 4px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: bottom center;
}

.hour {
  height: 28.125vmin;
  background: #b76e79;
  box-shadow: 0 0 8px #b76e79;
}

.minute {
  height: 34.53125vmin;
  background: #c0c0c0;
  box-shadow: 0 0 6px #c0c0c0;
}

.second {
  height: 37.1875vmin;
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
}

#period {
  position: absolute;
  top: 50%;
  left: 80%;
  transform: translate(-50%, -50%);
  color: crimson;
  font-size: 5vmin;
  user-select: none;
  text-shadow: 0 0 5px crimson;
  pointer-events: none;
}

#secondBeat {
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border-radius: 50%;
  margin-top: 0.5rem;
  transition: transform 0.15s ease-in-out;
  box-shadow: 0 0 6px #3b82f6;
}

#toggle {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 10px #3b82f6;
}

#binaryInfo,
#smartBreakdown {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.bit {
  display: block;
  font-family: monospace;
  font-size: 0.75em;
  white-space: nowrap;
}

/*binary chart*/
.tick-conversion-table {
  width: 100%;
  border-collapse: collapse;
  font-family: monospace;
  font-size: 0.95em;
  margin-top: 1rem;
  border: 1px solid #333;
}

.tick-conversion-table th,
.tick-conversion-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #444;
  text-align: left;
}

.tick-conversion-table th {
  background-color: #222;
  color: #fff;
}

.tick-conversion-table td {
  color: #ccc;
}

.tick-conversion-table .note {
  color: #888;
  font-style: italic;
}
