@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap');


* {
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
    color: var(--tertiary-color);
}

.container {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    user-select: none;
}

.title {
    display: flex;
    justify-content: space-around;
    padding: 1em;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    background-color: var(--secondary-color);
}

.quote {
    font-family: "Shadows Into Light", cursive;
}

.spotify-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    position: absolute;
    top: calc(110px + 1em);
    left: 1em;
    width: 20%;
    height: 152px;
    border: 5px solid var(--secondary-color);
    border-radius: 1em;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 110.5px);
}

.phases {
    display: flex;
    flex-direction: row;
}

.phase {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.5em;
    padding: 0.25em 0.5em;
    border: 10px solid #0000;
    border-radius: 1em;
    font-size: 2rem;
    background-color: #0000;
    transition: background-color 0.1s ease-in-out, border 0.1s ease-in-out;
}

.phase:hover {
    border: 10px solid var(--tertiary-color);
    color: var(--background-color);
    background-color: var(--tertiary-color);
}

.phase-current {
    border-color: var(--tertiary-color);
}

.slider {
    position: relative;
    width: 50%;
    margin: calc(12vh - 2.7em) 0;
    border: 2em solid var(--secondary-color);
    border-radius: 10em;
    background-color: var(--background-color);
}

.slider-fill {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: var(--slider-border-color);
    transition: width 1s linear;
}

.time {
    position: relative;
    z-index: 2;
    width: 100%;
    font-size: 10rem;
    text-align: center;
}

.button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    width: 25vw;
}

button {
    cursor: pointer;
}

.pause {
    padding: 1em;
    width: 10em;
    border: 5px solid var(--secondary-color);
    border-radius: 1em;
    background-color: var(--secondary-color);
}

.pause:hover {
    background-color: #0000;
}

.pause:active {
    background-color: var(--secondary-color);
}

.restart, .settings {
    border: none;
    background-color: #0000;
    transition: transform 0.4s ease-in-out;
}

.restart:hover, .settings:hover {
    transform: rotate(360deg);
}

.restart > img, .settings > img {
    width: 50px;
    filter: brightness(var(--img-brightness));
}

img.icon {
    width: 20px;
}

.exit {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 1.5em;
    left: 1.5em;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100%;
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease-in-out;
}

.exit:hover {
    cursor: pointer;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.exit:active {
    cursor: pointer;
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.exit > .icon {
    margin: 1px 0 0 0;
}

:root {
    --background-color: #ffffff;
    --secondary-color: #ffffff;
    --slider-border-color: #ffffff;
    --tertiary-color: #ffffff;
    --img-brightness: 1;
}

[data-phase="start"] {
    --background-color: #9e0214;
    --secondary-color: #80010a;
    --slider-border-color: #8b0009;
    --tertiary-color: #ffffff;
    --img-brightness: 1;
}

[data-phase="paused"] {
    --background-color: #9e9e9e;
    --secondary-color: #808080;
    --slider-border-color: #888888;
    --tertiary-color: #ffffff;
    --img-brightness: 1;
}

[data-phase="work"] {
    --background-color: #9e4002;
    --secondary-color: #5a2600;
    --slider-border-color: #7a3100;
    --tertiary-color: #ffffff;
    --img-brightness: 1;
}

[data-phase="break"] {
    --background-color: #029e02;
    --secondary-color: #006405;
    --slider-border-color: #018007;
    --tertiary-color: #ffffff;
    --img-brightness: 1;
}

[data-phase="long-break"] {
    --background-color: #024b9e;
    --secondary-color: #002b6b;
    --slider-border-color: #013480;
    --tertiary-color: #ffffff;
    --img-brightness: 1;
}