@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Courier Prime", "Courier New", Courier monospace, sans-serif;
}

body {
    background: black;
    height: 100%;
    overflow: hidden;
}

.clock {
    height: 100%;
    justify-content: center;
    place-items: center;
    margin: auto auto;
    color: red;
    font-size: 8vw;
    display: flex;

    text-shadow:
            3px 0 6px rgba(255, 0, 0, 0.5),
            -3px 0 3px rgba(0, 255, 255, 0.3); /* Subtle blue ghosting */
    letter-spacing: 5px;

    animation: pulse 0.12s infinite;
}

.clock div:not(:last-of-type):after {
    content: "";
    margin: 0 3vw;
    opacity: .8;
    font-weight: 400;
}

.clock > div {
    display: flex;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.0025); }
    100% { opacity: 0.9; transform: scale(1); }
}

@media (max-width: 1100px) {
    .clock {
        font-size: 10vw;
    }
}

@media (max-width: 600px) {
    .clock {
        font-size: 15vw;
        flex-direction: column;
    }
    .clock div {
        margin: .5vh 0;
    }
    .clock div:after {
        display: none;
    }
}

.modal {
    z-index: 1;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(min(max(1vw, 10px), 20px));
}

.modal .button {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    font-size: max(min(3vh, 3vw), 20px);
    cursor: pointer;

    /*animation: pulse 0.12s infinite;*/
}
