@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');

@font-face {
    font-family: 'digital-clock-font';
    src: url('./digital-7/digital-7\ \(mono\).ttf');
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Orbitron", serif;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #424242;
}

.digital-clock{
    background-color: #000;
    color: #fff;
    display: flex;
    border-radius: 2rem;
    user-select: none;
    padding: 0 0 0 2rem;
    border: 0.5rem solid #2d2d2d;
    position: relative;

}


.week{
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    justify-content: center;
    align-items: center;
    width: 4rem;
    color: #2d2d2d;
    font-weight: bold;
    font-family: 'digital-clock-font', sans-serif;

}

.week .active{
    color: white;
}

.time{
    height: 100%;
    font-family: 'digital-clock-font', sans-serif;
    /* justify-content: center;
    align-items: center;
    display: flex; */
    
}

.dot{
    z-index: -1;
    animation: flicker 1s infinite ease-in-out;
    visibility: hidden

}

.hidden{
    visibility: hidden;
}

.visible{
    visibility: visible;
}

@keyframes flicker {
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

.hour,
.min,
.dot{
    display: inline-block;
    font-size: 13rem;
    font-family: 'digital-clock-font', sans-serif;
}

.min{
    padding: 0 10px 0 0;
}

.invsible{
    visibility: hidden;
}

.on-off{
    display: flex;
    background-color: #2d2d2d;
    width: 100px;
    height: 20px;
    position: absolute;
    right: 20px;
    top: -20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

#displayed{
    display: flex;
    background-color: rgb(0, 0, 0);
    height: 100%;
    width: 96%;
    border-radius: 2rem;
    position: absolute;
    justify-content: center;
    text-align: center;
    align-items: center;
    transition: all 1s;
}

#displayed h1{
    font-size: 10rem;
}

.animate{
    animation: blink 3s ease-in-out 1s infinite;
}

@keyframes blink {
    0%{
        opacity: 1;
    }
    20%{
        opacity: 1;
    }
    50%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

button{
    background-color: #ff0000;
    color: #ffffff;
    border: none;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    height: 100%;
    font-size: 16px;
    cursor: pointer;
}


.foot{
    content: "";
    width: 50px;
    height: 10px;
    background-color: #b5b5b5;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.clock-feet{
    position: absolute;
    bottom: -18px;
    width: 100%;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    /* background-color: blanchedalmond; */
}

.timezone{
    font-size: 3rem;
    padding: 0 2rem 0 0;
}