@font-face {
    font-family: 'payton';
    src: url('../font/Payton-KVnwA.otf') format('opentype'),
         url('../font/Payton-2vRYl.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Azonix';
    src: url('../font/Azonix-1VB0.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*{
    font-family: 'payton';
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style-type: none;
    font-weight: bold;
}

html, body{
    width: 100%;
    height: 100%;
    background-color: gray;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

body{
    position: relative;
}

main{
    width: 100%;
    height: 50%;
    /* background-color: gray; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

#clock{
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 75rem;
    height: 20rem;
    font-size: 15em;
    color: rgb(139, 139, 139);
    text-shadow: 3px 3px 10px rgb(100, 100, 100);
    transition: all 0.5s ease;
    position: relative;
}

#month{
    width: 80%;
    position: absolute;
    top: 0px;
    left: 0px;
    display: flex;
    justify-content: space-between;
    font-size: .1em;
    text-shadow: none;
    color: rgb(170, 170, 170);
}

#mil-seconds{
    position: absolute;
    top: -5%;
    right: 0px;
    font-size: 0.3em;
    color: white;
    text-shadow: 0px 0px 5px black;
}

#week{
    padding-bottom: 2%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 10rem;
    font-size: 1.7rem;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: rgb(170, 170, 170);
    text-shadow: none;
    transition: all 0.5s ease;
}

#dot{
    margin: 0px 8px;
}

#clock2{
    width: 100%;
    height: 20rem;
    position: absolute;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 75rem;
    padding: 0px auto;
    font-size: 15em;
    color: gray;
    text-shadow: -3px -3px 10px rgb(146, 146, 146);
    transition: all 0.5s ease;
}

#year-cont{
    user-select: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    width: 75rem;
    color: gray;
    text-shadow: 0px 0px 3px black;
}

@keyframes fadeBlink {
    0%{
        color: gray;
        text-shadow: none;
    }
    50%{
        text-shadow: 3px 3px 10px black;
    }
    100%{
        color: gray;
        text-shadow: none;
    }
}

#am, #pm{
    font-size: 5em;
}

@keyframes blink {
    0%{
        color: gray;
        
    }
    50%{
        color: white;
    }
    100%{
        color: gray;
    }
}           

#year{
    font-size: 10em;
}

.y1{
    animation: fadeBlink 2s ease-in-out infinite both 0.9s;
    animation-fill-mode: both;
}
.y2{
animation: fadeBlink 2s ease-in-out infinite both 1.4s;
    animation-fill-mode: both;
}
.y3{
animation: fadeBlink 2s ease-in-out infinite both 1.9s;
    animation-fill-mode: both;
}
.y4{
animation: fadeBlink 2s ease-in-out infinite both 2.4s;
    animation-fill-mode: both;
}

.date-cont{
    padding-bottom: 2%;
    font-size: 4em;
}

#date{
    color: white;    
}

@media (max-width: 1024px) {
    html{
        font-size: 13px;
    }

#clock{
    margin-top: 2%;
    width: 74rem;
}

#clock2{
    margin-top: 2%;
    width: 74rem;
}

#year-cont{
width: 74rem;
}
}

@media (max-width: 768px) {
    html{
        font-size: 10px;
    }

#clock{
    width: 74rem;
}

#clock2{
    width: 74rem;
}

#year-cont{
width: 74rem;
}
}

@media (max-width: 450px) {
    html{
    font-size: 6px;
    /* width: 70vh; */
    }

#month{
    font-weight: bold;
    font-size: .1.2em;
}

#clock{
    width: 0rem;
    width: 90%;
    font-size: 70px;
}

#clock2{
    width: 0rem;
    width: 90%;
    font-size: 70px;
}

#year-cont{
width: 0rem;
width: 95%;
}
}

@media (max-width: 375px) {
    html{
    font-size: 5px;
    width: 54vh;
    }
    
#month{
    font-weight: bold;
    font-size: .1.1em;
}

#clock{
    width: 0rem;
    width: 90%;
    font-size: 50px;
}

#clock2{
    width: 0rem;
    width: 90%;
    font-size: 50px;
}

#year-cont{
width: 0rem;
width: 95%;
}
}









