html {
    font-family: Arial, sans-serif;
    font-size: 16px;
    /*box-sizing: border-box;*/

    --color-running: rgb(180, 255, 180);
    --color-finished: rgb(255, 180, 180);
}

body#timer {
    margin: 0;
    background-color: aliceblue;

    display: flex;
    justify-content: center;

    & .content-wrapper {
        padding: 0.3rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    &:has(.running) {
        background-color: var(--color-running);
    }

    &:has(.timer-finished) {
        animation-duration: 4s;
        animation-name: timerFinished;
        animation-iteration-count: infinite;
    }
}

footer {
    color: rgb(180, 180, 180);
    font-size: .8rem;
}

nav {
    display: flex;
    gap: 1rem;

    a {
        text-decoration: none;
        text-transform: uppercase;

        &:hover {
            text-decoration: underline;
        }

        &.active {
            color: #00aa00;
            font-weight: bold;
        }
    }
}

main {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

button {
    /*min-width: 6rem;*/
    font-size: 1.2rem;
}

.player button {
    /*min-width: 6rem;*/
    font-size: 1.2rem;
    border: unset;
    background-color: unset;
}

.buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.4rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    & .configuration-setting {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
    }
}

.info-block {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 13rem;

    & .info-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        min-height: 1.4rem;

        & div:first-child {
            color: rgb(150 150 150);
        }

        & div:nth-child(2) {
            font-family: Menlo, Courier, monospace;
        }
    }
}

@keyframes timerFinished {
    0% {
        background-color: var(--color-running);
    }
    50% {
        background-color: var(--color-finished);
    }
    100% {
        background-color: var(--color-running);
    }
}

@keyframes timerPaused {
    0% {
        color: black;
        font-size: 3rem;
    }
    50% {
        color: white;
        font-size: 2rem;
    }
    100% {
        color: black;
        font-size: 3rem;
    }
}

.current-timer-value {
    height: 4rem;
    font-size: 3rem;
    font-family: Menlo, Courier, monospace;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    &:has(.alarm-sounds) {
        justify-content: center;
    }

    &.timer-paused {
        animation-duration: 1s;
        animation-name: timerPaused;
        animation-iteration-count: infinite;
    }
}
