* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --hue: 350;
    --bg-color: hsl(var(--hue), 5%, 7%);
    --text-color: hsl(var(--hue), 40%, 98%);
    --primary-color: hsl(var(--hue), 100%, 10%);
    --controls-bg-color: hsl(var(--hue), 0%, 14%);
    --button-secondary: hsl(var(--hue), 40%, 98%);

    font-size: clamp(40%, 1% + 2vw, 62.5%);
}


html.light {
    --text-color: hsl(var(--hue), 5%, 7%);
    --bg-color: hsl(var(--hue), 40%, 98%);
    --controls-bg-color: hsl(var(--hue), 0%, 14%);
}

html.light .ph-sun,
html:not(.light) .ph-moon {
    display: none;
}

#toggle-mode {
    position: absolute;
    right: 3.2rem;
    top: 3.2rem;
    font-size: 3.2rem;
    line-height: 0;
    color: var(--text-color);
}


.sr-only {
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    margin: -1px;
    padding: 0px;
    border: 0;
    appearance: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: grid;
    height: 100vh;
    place-content: center;
    font-family: sans-serif;
}

#app {
    display: grid;
    justify-items: center;
    z-index: 10;
}

.flex {
    display: flex;
}

#timer {
    font-size: 9.6rem;
    font-weight: bold;
    color: #FFF;
    padding: 3rem;
    text-shadow: 0 0 10px var(--primary-color);
    animation: glow 5s cubic-bezier(0.3, 0.53, 0.98, 0.23) infinite alternate;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

#controls {
    margin-top: 4.6rem;
    padding: 1.2rem 3rem;
    gap: 1.6rem;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

button {
    background-color: transparent;
    border: 0;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 4.5rem;
}

.secondary {
    color: var(--button-secondary);
}


/* controls */
.running .ph-play-circle,
.running .ph-timer,
.music-on .ph-speaker-none,
html:not(.running) .ph-pause-circle,
html:not(.running) .ph-stop-circle,
html:not(.music-on) .ph-speaker-high {
    display: none;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px var(--primary-color);
    }

    100% {
        text-shadow: 0 0 0 var(--primary-color), 0 0 0.5rem var(--primary-color), 0 0 1rem var(--primary-color), 0 0 1.5rem var(--primary-color), 0 0 2rem var(--primary-color), 0 0 2.5rem var(--primary-color), 0 0 50px var(--primary-color), 0 0 3rem var(--primary-color);
    }
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#myVideo {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.video-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 1) 75%);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video-overlay-light::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(200, 200, 200, 0.5) 0%, rgba(200, 200, 200, 1) 75%);
}

.overlay-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: var(--text-color);
    text-align: center;
    font-size: 1.5rem;
    padding: 10px;
}

footer a {
    text-decoration: none;
    color: var(--text-color);
}

footer a:hover {
    /* color: var(--primary-color); */
    text-shadow: 0 0 3px var(--text-color);
}