@font-face {
  font-family: 'MinecraftRegular';
  src: url('mcregular.otf') format('opentype');
}

@font-face {
  font-family: 'MinecraftLogo';
  src: url('logofont.ttf') format('truetype');
}

body {
  background-color: black;
  font-family: 'MinecraftRegular', sans-serif;
  background: url('dirt.gif') repeat;
  background-size: 80px 160px; /* Force repeat in correct tile units */
  image-rendering: crisp-edges;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 4px #000;
   margin: 0;
  padding: 0;
  overflow: hidden;       /* Prevent page scroll caused by falling shards */
  position: relative;     /* So absolutely-positioned shards align properly */
}

a {
  text-shadow: none;
}



.depthsoverlay {
      background-image: url('DEPTH.png');
      background-size: 1000px; /* Don't stretch */
      background-repeat: repeat;
      background-position: 0 0;
      opacity: 0;
      transition: opacity 10s ease-in-out;
      text-shadow: none;
      display: inline-block;
      transition-delay: 7s;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      color: transparent;
      image-rendering: pixelated;
      animation: scrollTexture 40s linear infinite;
    }

    @keyframes scrollTexture {
      from {
        background-position: 0 0;
      }
      to {
        background-position: -1000px 1000px; /* adjust speed/direction */
      }
}

.aura {
  /* no width/height, so same size as main logo */
  opacity: 0;
  pointer-events: none;
  animation-name: orbit;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  animation-play-state: paused;
  transform-origin: center center;
}

.aura:nth-child(2) {
  animation-delay: 0s;
}

.aura:nth-child(3) {
  animation-delay: 5s;
}


.aura.active {
  animation-play-state: running;
  animation-fill-mode: forwards;
  opacity: 0.1;
  animation-name: orbit, fadeInAura;
  animation-duration: 10s, 5s;
  animation-iteration-count: infinite, 1;
}

@keyframes orbit {
  0%   { transform: translate(-50%, -50%) rotate(0deg) translateX(20px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(20px) rotate(-360deg); }
}

@keyframes fadeInAura {
  from { opacity: 0; }
  to { opacity: 0.2; }
}

.shard {
  position: absolute;
  background-color: white;
  border-radius: 0;
  pointer-events: none;
  z-index: 9999;
}

.margincontainer {
  text-align: center;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  width: 100%;
  display: inline-block;
}

.container {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5);
  width: 900px;           /* wider for big numbers */
  height: 500px;   
  box-shadow: 0 0 20px #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border: 4px solid #222;
  padding: 20px 20px 40px 20px;
  position: relative; /* anchor the auras */
  transition: border-color 5s ease;
  transition-delay: 7s
}

.container.instant {
  transition: none;
}

h1 {
  font-size: 2em;
  margin-bottom: 20px;
}


.instant {
  transition: none !important;
}

.num {
  font-size: 2.5em; /* BIG numbers */
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

.time-unit {
  color: white;
  transition: color 10s ease;
  transition: opacity 5s ease;
  transition-delay: 7s;
  display: inline-block;
}

.time-unit.instant {
  transition: none;
}

.colon {
  font-size: 1.5em; /* smaller colon */
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
  margin: 0 0.2em;
  transition: color 5s ease;
  transition-delay: 3s
}

.colon.instant {
   transition: none;
}

.countdown {
  font-family: 'MinecraftLogo', monospace;
  font-size: 3em;
}

#inheader {
  transition: opacity 2s ease;
  opacity: 1; /* initial state */
}

#inheader.fade-out {
  opacity: 0;
}

#debug-buttons {
  margin-top: 20px;
}

/* #debug-buttons button {
/ font-family: 'MinecraftRegular', sans-serif;
/  margin: 0 5px;
/  padding: 5px 10px;
/  background-color: #222;
/  color: white;
/  border: 2px solid #444;
/  cursor: pointer;
/ }  */

#debug-buttons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 999; 
}

 @keyframes text-rainbow {
  0%   { color: hsl(0, 100%, 70%); }
  25%  { color: hsl(90, 100%, 70%); }
  50%  { color: hsl(180, 100%, 70%); }
  75%  { color: hsl(270, 100%, 70%); }
  100% { color: hsl(360, 100%, 70%); }
}

.rainbow {
  animation: text-rainbow 2s linear infinite;
}

@keyframes border-rainbow {
  0%   { border-color: hsl(0, 100%, 70%); }
  25%  { border-color: hsl(90, 100%, 70%); }
  50%  { border-color: hsl(180, 100%, 70%); }
  75%  { border-color: hsl(270, 100%, 70%); }
  100% { border-color: hsl(360, 100%, 70%); }
}

.container.rainbowborder {
  border: 4px solid hsl(0, 100%, 70%);
  animation: border-rainbow 2s linear infinite;
  border-radius: 8px; /* Optional */
}