body {
    background: #222;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.sunrise {
    font-size: 10rem;
    margin-right: 1rem;
}

.label {
    font-size: 2rem;
    margin-right: 1rem;
}



.container {
    width: 100%;
    margin: 0 auto;
    
  }
  
  .textarea-container {
    width: 70%;
    
  }
  
  
  
  @media (max-width: 1024px) {
    .container {
      width: 90%;
    }
  
    .textarea-container {
      width: 80%;
    }
  }
  
  
  
  @media (max-width: 768px) {
    .container {
      width: 100%;
    }
  
    .textarea-container {
      width: 90%;
    }
  }

textarea {
    font-size: 2rem;
    padding: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    background: #444;
    color: #fff;
    border: none;
    resize: none;
}

.time-slice-input-container {
    display: none;
    position: relative;
    width: 100% !important;
}

.time-slice-input-container.active-slice-input-container {
    display: block;
}

.time-slice-section {
    align-items: center;
    box-sizing: border-box;
    column-gap: 1rem;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    min-height: 0;
    padding: 0.65rem 1.25rem;
}

.time-slice-section > .header-row {
    gap: 0.55rem;
    margin: 0;
    width: auto;
}

:is(
  #dawn-section,
  #morning-section,
  #afternoon-section,
  #evening-section,
  #twilight-section,
  #night-section
) > .header-row .sunrise {
    font-size: clamp(3.25rem, 6vw, 4.75rem);
    line-height: 1;
    margin: 0;
}

.time-slice-section > .header-row .label {
    margin: 0;
}

:is(
  #dawn-section,
  #morning-section,
  #afternoon-section,
  #evening-section,
  #twilight-section,
  #night-section
) .time-slice-input {
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--time-editor-ink, #fff);
    font: inherit;
    font-size: 2rem;
    line-height: 1.35;
    margin: 0;
    min-height: 3.5rem;
    outline: 0;
    overflow: hidden;
    padding: 0.5rem 0.35rem;
    resize: none;
    white-space: pre-wrap;
}

.time-slice-input::placeholder {
    color: transparent;
    opacity: 0;
}

.time-slice-input:focus::placeholder {
    color: var(--time-editor-ink, #fff);
    opacity: 0.68;
    text-shadow: 0 0 6px currentColor;
}

.row.time-slice-content {
    --time-stamp-gutter: clamp(6.75rem, 10vw, 8.75rem);
    box-sizing: border-box;
    min-width: 0;
    margin-top: 0;
    padding: 0;
}

.time-slice-content.active-slice-content {
    align-items: start;
    display: grid;
    grid-template-columns: var(--time-stamp-gutter) minmax(0, 1fr);
}

.time-slice-output:not(:empty) {
    padding-block: 0.5rem;
}

.time-slice-countdown {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    justify-self: stretch;
    text-align: center;
    width: 100%;
}

.time-slice-countdown-output {
    flex: 0 1 auto;
    max-width: 100%;
}

.time-slice-countdown-output > .text {
    margin-inline: auto;
    max-width: 100%;
    text-align: center;
    width: fit-content;
}

:is(
  #dawn-section,
  #morning-section,
  #afternoon-section,
  #evening-section,
  #twilight-section,
  #night-section
) .time-slice-countdown-output > .text,
:is(
  #dawn-section,
  #morning-section,
  #afternoon-section,
  #evening-section,
  #twilight-section,
  #night-section
) .time-slice-countdown-output > .text > .char {
    font-size: 1rem;
}

.time-slice-countdown[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .time-slice-countdown span {
        animation: none !important;
    }
}

.active-slice-content > .active-slice-input-container {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    z-index: 2;
}

.active-slice-content > .time-slice-output.active-slice-output {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    pointer-events: none;
    z-index: 1;
}

.time-slice-output > .note-row {
    align-items: start;
    display: grid;
    grid-template-columns: var(--time-stamp-gutter) minmax(0, 1fr);
    margin: 0;
    min-height: 2.7rem;
    width: 100%;
}

:is(
  #dawn-section,
  #morning-section,
  #afternoon-section,
  #evening-section,
  #twilight-section,
  #night-section
) .time-slice-output .timestamp {
    align-items: center;
    animation: pulse 2s ease-out infinite;
    color: var(--time-editor-ink, #00ff00);
    display: flex;
    font-size: 0.8rem;
    height: 2.7rem;
    justify-content: flex-start;
    line-height: 1;
    margin: 0;
    opacity: 0.92;
    padding-right: 0.65rem;
    text-shadow: 0 0 5px currentColor;
    transform-origin: left center;
    white-space: nowrap;
    width: auto;
}

.time-slice-output .text {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    line-height: 1.35;
    min-height: 2.7rem;
    overflow-wrap: break-word;
    padding-inline: 0.35rem;
    white-space: pre-wrap;
}

.time-slice-output .text .char {
    display: inline;
}

:is(
  #dawn-input,
  #morning-input,
  #afternoon-input,
  #evening-input,
  #twilight-input,
  #night-input
).active-slice-input:focus {
    caret-color: var(--time-editor-caret, #fff);
}

:is(
  #dawn-input,
  #morning-input,
  #afternoon-input,
  #evening-input,
  #twilight-input,
  #night-input
).active-slice-input {
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    text-shadow: none !important;
}

#dawn-section {
    --time-editor-ink: #4f155f;
    --time-editor-caret: #111;
}

#morning-section {
    --time-editor-ink: #004f6d;
    --time-editor-caret: #111;
}

#afternoon-section {
    --time-editor-ink: #7b1b13;
    --time-editor-caret: #111;
}

#evening-section {
    --time-editor-ink: #fff;
    --time-editor-caret: #ffff00;
}

#twilight-section {
    --time-editor-ink: #fad4e4;
    --time-editor-caret: #00ffff;
}

#night-section {
    --time-editor-ink: #00ff00;
    --time-editor-caret: #ff66ff;
}

.time-slice-input-container.active-slice-input-empty:focus-within::after {
    animation: active-slice-caret-blink 0.8s steps(1, end) infinite;
    background: #fff;
    box-shadow:
      0 0 0 1px #111,
      0 0 9px #ff00de,
      0 0 15px #00ffff;
    content: '';
    height: 1.7rem;
    left: 0.35rem;
    pointer-events: none;
    position: absolute;
    top: 0.75rem;
    width: 4px;
}

@keyframes active-slice-caret-blink {
    0%, 45% {
        background: #fff;
        box-shadow:
          0 0 0 1px #111,
          0 0 9px #ff00de,
          0 0 15px #00ffff;
    }
    50%, 100% {
        background: #111;
        box-shadow:
          0 0 0 1px #fff,
          0 0 7px #00ffff,
          0 0 12px #ff00de;
    }
}

@media (prefers-reduced-motion: reduce) {
    .time-slice-input-container.active-slice-input-empty:focus-within::after {
        animation: none;
    }
}

@media (max-width: 768px) {
    .time-slice-section {
        align-items: start;
        gap: 0.35rem;
        grid-template-columns: minmax(0, 1fr);
        padding: 0.6rem 1rem;
    }

    .time-slice-section > .header-row {
        flex-direction: row;
    }

    :is(
      #dawn-section,
      #morning-section,
      #afternoon-section,
      #evening-section,
      #twilight-section,
      #night-section
    ) > .header-row .sunrise {
        font-size: 3rem;
    }

    .row.time-slice-content {
        --time-stamp-gutter: 5.75rem;
    }

    :is(
      #dawn-section,
      #morning-section,
      #afternoon-section,
      #evening-section,
      #twilight-section,
      #night-section
    ) .time-slice-output .timestamp {
        font-size: 0.65rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .time-slice-content.active-slice-content {
        cursor: text;
    }

    .time-slice-input-container.active-slice-input-empty:not(:focus-within)::before {
        color: var(--time-editor-ink, #fff);
        content: 'Tap to write';
        font-size: 1rem;
        left: 0.35rem;
        line-height: 1.35;
        opacity: 0.78;
        pointer-events: none;
        position: absolute;
        text-shadow: 0 0 6px currentColor;
        top: 0.75rem;
    }
}

.row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    flex: 1;
}

#information-section {
  position: relative;
  
}

#information-section .label {
    color: fuchsia;
    text-shadow: 2px 2px 2px #ffd5e5;
}

.gold-text span {
    color: transparent;
    -webkit-text-stroke: 2px gold;
    -webkit-text-fill-color: transparent;
    animation: text-gold 2s linear infinite;
}

@keyframes text-gold {
    0% {
        text-shadow: none;
        color: gold;
    }
    50% {
        text-shadow: 0 0 15px gold, 0 0 30px gold, 0 0 45px gold;
        color: gold;
    }
    100% {
        text-shadow: none;
        color: gold;
    }
}

.golden-output {
    color: #daa520;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.output-text {
    font-size: 1em; 
}


.toggle-button {
  font-size: 2rem;
  padding: 10px;
  border: none;
  background-color: #333;  
  color: #fff;  
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}


.toggle-button.disabled {
  background-color: #444; 
  color: #666; 
  box-shadow: none;
  text-shadow: none;
}


.toggle-button.enabled.green {
  background-color: #0f0; 
  color: #fff; 
  box-shadow: 0 0 8px rgba(0, 255, 0, 1), 0 0 20px rgba(0, 255, 0, 1); 
  animation: green-pulse 2s infinite alternate;
}


.toggle-button.enabled.blue {
  background-color: #00f; 
  color: #fff; 
  box-shadow: 0 0 8px rgba(0, 0, 255, 1), 0 0 20px rgba(0, 0, 255, 1); 
  animation: blue-pulse 2s infinite alternate;
}

@keyframes green-pulse {
  0%, 100% {
    background-color: #333;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.4), 0 0 10px rgba(0, 255, 0, 0.4), 0 0 15px rgba(0, 255, 0, 0.4);
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.4), 0 0 10px rgba(0, 255, 0, 0.4);
  }
  50% {
    background-color: #0f0; 
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.9), 0 0 20px rgba(0, 255, 0, 0.9), 0 0 30px rgba(0, 255, 0, 0.9);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.9), 0 0 20px rgba(0, 255, 0, 0.9);
  }
}

@keyframes blue-pulse {
  0%, 100% {
    background-color: #333;
    box-shadow: 0 0 5px rgba(0, 0, 255, 0.4), 0 0 10px rgba(0, 0, 255, 0.4), 0 0 15px rgba(0, 0, 255, 0.4);
    text-shadow: 0 0 5px rgba(0, 0, 255, 0.4), 0 0 10px rgba(0, 0, 255, 0.4);
  }
  50% {
    background-color: #00f; 
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.9), 0 0 20px rgba(0, 0, 255, 0.9), 0 0 30px rgba(0, 0, 255, 0.9);
    text-shadow: 0 0 10px rgba(0, 0, 255, 0.9), 0 0 20px rgba(0, 0, 255, 0.9);
  }
}


.toggle-button.enabled.yellow {
  background-color: #ff0; 
  color: #333; 
  box-shadow: 0 0 8px rgba(255, 255, 0, 1), 0 0 20px rgba(255, 255, 0, 1); 
  animation: yellow-pulse 2s infinite alternate;
}

@keyframes yellow-pulse {
  0%, 100% {
    background-color: #333;
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.4), 0 0 10px rgba(255, 255, 0, 0.4), 0 0 15px rgba(255, 255, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 255, 0, 0.4), 0 0 10px rgba(255, 255, 0, 0.4);
  }
  50% {
    background-color: #ff0; 
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.9), 0 0 20px rgba(255, 255, 0, 0.9), 0 0 30px rgba(255, 255, 0, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.9), 0 0 20px rgba(255, 255, 0, 0.9);
  }
}


.toggle-button.enabled.red {
  background-color: #f00; 
  color: #fff; 
  box-shadow: 0 0 8px rgba(255, 0, 0, 1), 0 0 20px rgba(255, 0, 0, 1); 
  animation: red-pulse 2s infinite alternate;
}

@keyframes red-pulse {
  0%, 100% {
    background-color: #333;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.4), 0 0 10px rgba(255, 0, 0, 0.4), 0 0 15px rgba(255, 0, 0, 0.4);
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.4), 0 0 10px rgba(255, 0, 0, 0.4);
  }
  50% {
    background-color: #f00; 
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.9), 0 0 20px rgba(255, 0, 0, 0.9), 0 0 30px rgba(255, 0, 0, 0.9);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.9), 0 0 20px rgba(255, 0, 0, 0.9);
  }
}

.green-hue {
  position: fixed; 
  left: 0;
  right: 0;
  bottom: 0; 
  height: 100px; 
  background: linear-gradient(to top, rgba(0, 255, 0, 0.3), transparent); 
  display: none; 
  z-index: 999; 
  animation: neon-green-hue 3s infinite alternate cubic-bezier(0.32, 0.64, 0.45, 1); 
}

@keyframes neon-green-hue {
  0%, 100% {
    background: linear-gradient(to top, rgba(0, 255, 0, 0.2), transparent); 
  }
  10% {
    background: linear-gradient(to top, rgba(0, 255, 0, 0.3), transparent); 
  }
  20% {
    background: linear-gradient(to top, rgba(0, 255, 0, 0.4), transparent); 
  }
  30% {
    background: linear-gradient(to top, rgba(0, 255, 0, 0.5), transparent); 
  }
  40% {
    background: linear-gradient(to top, rgba(0, 255, 0, 0.6), transparent); 
  }
  50% {
    background: linear-gradient(to top, rgba(0, 255, 0, 0.7), transparent); 
  }
  60% {
    background: linear-gradient(to top, rgba(0, 230, 0, 0.6), transparent); 
  }
  70% {
    background: linear-gradient(to top, rgba(0, 205, 0, 0.5), transparent); 
  }
  80% {
    background: linear-gradient(to top, rgba(0, 180, 0, 0.4), transparent); 
  }
  90% {
    background: linear-gradient(to top, rgba(0, 155, 0, 0.3), transparent); 
  }
}

.red-hue {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 0, 0, 0.2), transparent); 
  display: none;
  z-index: 999; 
  animation: neon-red-hue 3s infinite alternate cubic-bezier(0.32, 0.64, 0.45, 1);
}

@keyframes neon-red-hue {
  0%, 100% {
    background: linear-gradient(to top, rgba(255, 0, 0, 0.1), transparent);
  }
  50% {
    background: linear-gradient(to top, rgba(255, 0, 0, 0.6), transparent); 
  }
}

.yellow-hue {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(255, 255, 0, 0.2), transparent); 
  display: none;
  z-index: 999; 
  animation: neon-yellow-hue 3s infinite alternate cubic-bezier(0.32, 0.64, 0.45, 1);
}

@keyframes neon-yellow-hue {
  0%, 100% {
    background: linear-gradient(to top, rgba(255, 255, 0, 0.1), transparent);
  }
  50% {
    background: linear-gradient(to top, rgba(255, 255, 0, 0.6), transparent); 
  }
}

.logtrees-logo {
  color: #28a745; 
  font-weight: bold;
  animation: pulseEffect 1.5s infinite;
}

.logtrees-logo-link {
  text-decoration: none; 
  color: inherit; 
}

@keyframes pulseEffect {
  0% { 
      color: #34c924; 
      text-shadow: 0 0 5px #28a745; 
  }
  50% { 
      color: #28a745; 
      text-shadow: 0 0 10px #34c924, 0 0 15px #34c924; 
  }
  100% { 
      color: #34c924; 
      text-shadow: 0 0 5px #28a745; 
  }
}

.email-hover {
  cursor: pointer;
}
