* {
    font-family: "Google Sans", ui-sans-serif, sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings: "GRAD" 0;
}

html {
    color: black;
    background-color: #edf9ff;
    filter: invert(1);
    font-size: 24px;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
}

body {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-size: 24px;
    box-sizing: border-box;
    overflow: hidden;
    height: 100%;
}

a {
    color: #315f85;
}

p {
    margin-bottom: 2.5em;
}

span {
    font-weight: 800;
    filter: invert(1) saturate(0.7) brightness(0.8) contrast(1.35);
    color: #caa;
}

span.kim { color: #fa0; }
span.grey { color: #0f7; }
span.wheeler { color: #a0f; filter: invert(1) saturate(1.1) brightness(0.7) contrast(1.35); }

header {
    margin: 0;
    flex-shrink: 0;
    padding-top: clamp(1rem, 2.5vh, 1.75rem);
    padding-bottom: clamp(0.8rem, 2vh, 1.5rem);
    color: #315f85;
    background-color: #ccdfe8;
    background: linear-gradient(to bottom, transparent, #ccdfe8e9, #b4cbd6a0, #b4cbd6ff, #b4cbd6a0, #ccdfe866, transparent);
    cursor: default;
    user-select: none;
}

header h2 {
    text-align: center;
    margin: 0;
    font-size: clamp(1.6rem, 2.8vw + 1.2vh, 2.4rem);
}

header h4 {
    margin: 0.25rem 0 0 0;
    font-size: clamp(1.5rem, 2.3vw, 1.9rem);
}

header .hr-line {
    margin: clamp(0.8em, 2vh, 2em) 0;
}

article h2 {
    margin-top: 3rem;
}

li {
    margin: .6rem 0;
}

.empty {
    color: #666;
    font-style: italic;
}

hr {
    border: none;
    border-bottom: 1px groove #315f8566;
    border-top: 1px inset #315f8544;
    margin-top: 3em;
    margin-bottom: 3em;
}

hr.thin {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.centered {
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.hr-line {
    display: flex;
    align-items: center;
    text-align: center;
    color: #202220;
    margin: 3.5em 0;
    opacity: 0.75;
}

.hr-line::before,
.hr-line::after {
    content: "";
    flex: 1;
    height: 1px;
}

.hr-line::before {
    background: linear-gradient(to right, transparent, #818078);
    margin-right: 0.75em;
}

.hr-line::after {
    background: linear-gradient(to left, transparent, #818078);
    margin-left: 0.75em;
}

div.main-container {
    line-height: 1.65;
    margin: 0 auto;
    max-width: min(92vw, 42rem);
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 0 1.5rem;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 1) 120px);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 1) 120px);
    transform: translateZ(0);
}

#prompter-content {
    position: relative;
    width: 100%;
    will-change: transform;
    transform: translateY(0px);
    padding-top: 120px;
    padding-bottom: 60vh;
}

#teleprompter-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: #ccdfe8;
    border-top: 2px groove #315f8588;
    display: grid;
    grid-template-columns: 0.1fr 0.5fr 0.5fr 1fr 0.5fr 0.5fr 0.1fr;
    grid-template-rows: auto auto;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    container-type: normal;
    container-name: controls;
    gap: 0.35em;
    padding: 0.4em;
    font-size: 0.65em;
}

@container controls (min-aspect-ratio: 1/1) {
    #teleprompter-controls {
        --fluid-multiplier: calc(0.8 * min(1.3, max(0.9, (100vw / 100vh))));
        font-size: calc(0.9rem * var(--fluid-multiplier));
        gap: calc(0.4em * var(--fluid-multiplier));
        padding: calc(0.5em * var(--fluid-multiplier));
    }
}

@media (min-width: 1200px) {
    #teleprompter-controls {
        font-size: 0.75em;
        gap: 0.4em;
        padding: 0.5em;
    }
}

#teleprompter-controls button {
    background-color: #edf9ff;
    color: #315f85;
    border: 1px solid #315f8566;
    padding: 10px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

#teleprompter-controls button:hover {
    background-color: #b4cbd6;
}

#teleprompter-controls button.primary {
    background-color: #315f85;
    color: #edf9ff;
}

#teleprompter-controls button.primary:hover {
    background-color: #163149;
}

#btn-skip-back { grid-column: 2; grid-row: 1; }
#btn-play { grid-column: 4; grid-row: 1; }
#btn-skip-fwd { grid-column: 6; grid-row: 1; }

#speed-slider {
    grid-column: 2 / -2;
    grid-row: 2;
    width: 100%;
    margin: 0;
    cursor: pointer;
    accent-color: #315f85;
}