@font-face {
    font-family: digital;
    src: url("RADIOLAND.TTF");
}

body {
    margin: 2px;
    padding: 10px;
    font-family: digital;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    justify-content: center;
    background: url("black.jpg");
    background-size: cover;
    overflow: hidden;
}

h2 {
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 54px;
    text-align: center;
    color: whitesmoke;
}

.clock {
    display: flex;
}

.clock div {
    margin: 5px;
    position: relative;
}




.clock span {
    z-index: 1;
    position: relative;
    font-size: inherit;
    font-family: inherit;
    color: white;
    padding: 10px;
}

.clock span::before {
    content: '';
    z-index: -1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 4px solid hsl(0, 0%, 100%);
    transform-origin: center;
    transform: scale(1);
}

.clock span:hover::before {
    transition: all 0.75s ease-in-out;
    transform-origin: center;
    transform: scale(1.75);
    opacity: 0;
}

.clock span {
    width: 200px;
    height: 160px;
    background: rgb(1, 1, 1);
    opacity: 0.8;
    color: rgb(255, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 90px;
    text-shadow: 2px 2px 4px rgba(255, 253, 253, 0.3);
}

.clock .text {
    height: 30px;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgb(0, 0, 0);
    opacity: 0.8;
}

.clock #ampm {
    bottom: 0;
    position: absolute;
    width: 80px;
    height: 80px;
    font-size: 20px;
    background: rgb(0, 0, 0);
}