@font-face {
    font-family: 'digital-7';
    src: url('./digital-7.ttf');
}
* {
    margin: 0;
    padding: 0;
}
.clock {
    background-color: #82461C;
    box-shadow: 20 20 20 20;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('./background.webp') no-repeat center center / cover;
}
.top {
    position: relative;
}
.time {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    display: inline-block;
    justify-content: center;
    margin: auto;
    color: white;
    font-size: 8em;
    text-align: center;
    background: rgba(0,0,0,0.5);
    width: 500px;
    font-family: 'digital-7';
}
#time {
    color: white;
    z-index: 2;
}
#time2 {
    color: rgba(200,200,200, 0.1);
    z-index: 1;
}
.top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
sub {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    font-size: 0.3em;
}
#time,#time2 {
    display: flex;
}
@media only screen and (max-width: 576px) {
    .time {
        width: auto;
    }
    body > *{
        background-color: red;
        font-size: 0.8em !important;
    }
    .clock > img {
        height: 100vh !important;
        object-fit:cover;
    }
    sub {
        bottom: 16px;
    }
    
}
@media only screen and (min-width: 786px) {
    .clock > img {
        height: 100vh !important;
        width: auto !important;
        object-fit: contain;
    }
}