* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #07130f;
    color: #f7f7f2;
    font-family: Georgia, "Times New Roman", serif;
      user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body > canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#headphone-splash-skip {
    position: absolute;
    right: 24px;
    bottom: 20px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    background: transparent;
    color: white;
    font: inherit;
    cursor: pointer;
}

#headphone-splash-skip:hover,
#headphone-splash-skip:focus-visible {
    background: rgba(255, 255, 255, 0.15);
}

/* center box */
.container {
    position: relative;
    z-index: 1;
    width: min(90vw, 680px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-shadow: 0 2px 18px rgba(245, 0, 0, 1);
}
.center-box {
    width: 100%;
    min-width: 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
}
.container p {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

button {
    margin: 4px;
}

.buttonrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 7px;
    flex-wrap: nowrap;
}

.session-controls {
    margin-bottom: 12px;
}

.session-button[aria-pressed="true"] {
    outline: 2px solid white;
    outline-offset: 2px;
}

#session-progress,
#session-message {
    min-height: 1.4em;
    margin: 8px 0;
}

#session-message {
    font-weight: bold;
}

/* normal button styles */
.normalbtn {
    color: white;
    background-color: #4CAF50;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}
/* normal button when hovering styles */
.normalbtn:hover {
    color: white;
    background-color: #4caf4fba;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}
/* normal button when clicked styles */
.normalbtn:active {
    color: white;
    background-color: #4caf4f69;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}
#timedisplay {
    font-size: 48px;
    margin-top: 20px;
    text-shadow: 0 2px 18px rgba(245, 0, 0, 1);
}
#subminutebutton {
    background-color: #f44336;
}
#subminutebutton:hover {
    background-color: #f44336b1;
}
#subminutebutton:active {
    background-color: #f4433656;
}

#addminutebutton {
    background-color: #00e5ffda;
}
#addminutebutton:hover {
    background-color: #00e5ffa2;
}
#addminutebutton:active {
    background-color: #00e5ff35;
}

#task-list {
    width: 100%;
    max-width: 520px;
    max-height: min(35vh, 280px);
    margin: 12px auto 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.task-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
    cursor: pointer;
    text-align: left;
}

.task-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.task-checkbox {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    cursor: pointer;
}

.task-item.completed .task-text {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: line-through;
}

.delete-task-button {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: rgba(244, 67, 54, 0.82);
    color: white;
    font: inherit;
    cursor: pointer;
}

.delete-task-button:hover,
.delete-task-button:focus-visible {
    background: rgba(244, 67, 54, 1);
}

#task-input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    outline: none;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font: inherit;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

#task-input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

#task-input:focus {
    border-color: #98F5E1;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(152, 245, 225, 0.18);
}

#task-form {
    flex-wrap: wrap;
}

#task-form label {
    flex-basis: 100%;
}

