@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap");

:root {
    --primary-bg-color: #242424;
    --primary-text-color: #46ffbe;
    --secondary-bg-color: #46ffbe;
    --secondary-text-color: #444444;
}

* {
    font-family: "Orbitron", sans-serif;
    box-sizing: border-box;
}

body,
html {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin: 0;
    height: 100dvh;
    width: 100dvw;

    &::selection {
        background: var(--secondary-bg-color);
        color: var(--secondary-text-color);
    }

    ::-moz-selection {
        background: var(--secondary-bg-color);
        color: var(--secondary-text-color);
    }
}

.countdown-container {
    width: 100%;
    height: 100%;
    position: absolute;
    background: var(--primary-bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.5s ease;

    .countdown-number {
        font-size: 202px;
        transition: all 0.5s ease;
    }

    &.odd {
        background: var(--secondary-bg-color);
        color: var(--secondary-text-color);
    }

    &.even {
        background: var(--primary-bg-color);
        color: var(--primary-text-color);
    }
}

.input-stopwatch-container {
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.5s ease;
    font-size: 112px;

    @media screen and (max-width: 768px) {
        font-size: 56px;
    }

    input {
        width: auto;
        min-width: 1px;
        max-width: 2ch;
        margin: 0;
        padding: 0;
        color: var(--primary-text-color);
        border: none;
        background: none;
        outline: none;
        text-align: center;
        font-size: inherit;
        border-radius: 5px;

        &::-webkit-outer-spin-button,
        &::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        &[type="number"] {
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: textfield;
        }
    }
}

.action-button-container {
    display: flex;
    flex-direction: row;
    gap: 32px;

    button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        height: 32px;
        width: 32px;
        background-color: transparent;
        border: 1px solid white;
        border-radius: 99px;
        color: inherit;
        cursor: pointer;
        transition: all 0.5s ease;

        img {
            max-width: 100%;
            max-height: 100%;
            display: block;
        }

        &:hover {
            background-color: rgba(255, 255, 255, 0.15);
        }

        &:active,
        &:focus,
        &:focus-visible,
        &:focus-within {
            box-shadow: 0 0 10px var(--secondary-bg-color);
            background-color: rgba(255, 255, 255, 0.15);
            outline: none;
        }
    }
}

.hide {
    display: none !important;
}
