:root {
    color-scheme: light dark;
}

body {
    display: grid;
    grid-template-columns: minmax(2rem, 1fr) minmax(auto, 540px) minmax(2rem, 1fr);
    grid-template-rows: 1fr auto 1fr auto 1fr;
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: 100dvw;
    overflow: hidden;
}

.progress-circle-container {
    grid-column: 2 / 3;
    justify-self: center;
    grid-row: 4 / 5;
    width: 48px;
    height: 48px;
    position: relative;
}

.progress-circle {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
}

.progress-circle-indeterminate {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
    animation: dashboard 1.5s ease-in-out infinite;
    stroke-linecap: round;
}

iframe {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    z-index: 100;
    display: none;
    height: 100dvh;
    width: 100dvw;
    border: none;
}

#logo {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

@media (prefers-color-scheme: light) {
    body {
        background-color: rgb(245, 245, 245);
    }

    #logo > .mono {
        fill: #000;
    }

    #logo > .color {
        fill: #00685B;
    }

    .progress-circle-track {
        stroke: #ccc;
    }

    .progress-circle-indeterminate {
        stroke: #00685B;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: rgb(33, 33, 33);
    }

    #logo > .mono {
        fill: #fff;
    }

    #logo > .color {
        fill: #12b5a0;
    }

    .progress-circle-track {
        stroke: #444;
    }

    .progress-circle-indeterminate {
        stroke: #12b5a0;
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dashboard {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }
    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}