:root {
    --theme-color: #4d4d4d;
}

* {
    margin: 0;
    padding: 0;
    --scrollbarBG: var(--scrollbarBG);
    --thumbBG: var(--theme-color);
    --foreground-text: #f9f9f6;
    --background-color: #4d4d4d;
    --clock-face-color: black;
    font-family: Lato, sans-serif;
}

@media (prefers-color-scheme: dark) {
    * {
        --foreground-text: #f9f9f6;
        --background-color: #4d4d4d;
    }
}

html, body {
    min-height: 100% !important;
    height: 100%;
    width: 100%;
    overflow: hidden;
    color: var(--foreground-text);
    background-color: var(--background-color);
}

.transitions-off * {
    -webkit-transition: none !important;
    transition: none !important;
}

time {
    position: absolute;
    top: 150px;
    left: 0;
    right: 0;
    margin: 0;
    display: block;
    text-align: center;
}

.dial-container {
    display: inline-block;
    position: relative;
    text-align: center;
    margin: auto;
    -webkit-perspective: 1000;
    perspective: 1000;
    height: 100px;
    width: 65px;
    cursor: default;
}

.dial-container.dial-container--hh {
    width: 120px;
}

span {
    width: 65px;
    height: 50px;
}

.dial {
    top: 0;
    height: 25px;
    /* overflow: hidden */
    -webkit-transition: all 0.6s;
    transition: all 0.6s;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    position: absolute;
    z-index: 3;
    -webkit-transform-origin: 50px 50px;
    transform-origin: 50px 50px;
}

span {
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    overflow: hidden;
    background: var(--clock-face-color);
    color: #fff;
    text-align: center;
    line-height: 100px;
    font-size: 80px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
}

.dial-container--ss span,
.dial-container--mm span {
    text-align: right;
    padding-right: 2px;
    border-radius: 10px 0 0 0;
}

.dial-container--hh span {
    text-align: center;
    min-width: 120px;
}

.dial-container--s span,
.dial-container--m span {
    text-align: left;
    padding-left: 2px;
    border-radius: 0 10px 0 0;
}

span:first-child {
    z-index: 2;
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg);
    background-color: var(--clock-face-color);
    color: #ccc;
}

span:first-child:after {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    content: ' ';
    position: absolute;
    bottom: 0;
    left: 0;
}

span:last-child {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    border-radius: 0 0 10px 10px;
    line-height: 0;
    -webkit-transform: rotateX(180deg);
    transform: rotateX(180deg);
}

.dial-container--ss span:last-child,
.dial-container--mm span:last-child {
    border-radius: 0 0 0 10px;
}

.dial-container--s span:last-child,
.dial-container--m span:last-child {
    border-radius: 0 0 10px 0;
}

.dial--static,
.dial--next {
    -webkit-transform: rotateX(0deg) !important;
    transform: rotateX(0deg) !important;
}

.dial--flipped {
    z-index: 2;
    -webkit-transform: rotateX(180deg) !important;
    transform: rotateX(180deg) !important;
}

.dial--next {
    z-index: 2;
}

.dial--later {
    z-index: 1;
}

.say-container {
    margin-top: 10px;
    height: 50px;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    font-weight: bold;
}

.say-button {
    border-radius: 10px 10px 10px 10px;
    background-color: var(--clock-face-color);
    color: var(--foreground-text);
    width: 360px;
    margin: auto;
    cursor: pointer;
}

.say-button:hover {
    color: var(--clock-face-color);
    background-color: var(--foreground-text);
}