*{
    margin: 0;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    box-sizing: border-box;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

html, body {
    background: black;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden; 
}

body {
    overflow: hidden;
}

.hero{
    width: 100%;
    min-height: 100vh;
    background: black;
    position: relative;    
}

.container{
    width: 90vw;
    height: 45vh;    
    position: absolute;
    top: 50%;
    left: 50%;    
    transform: translate(-50%,-50%);
    z-index: 1;
}

.clock{
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.257);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px); 
}

.clock span{
    font-size: 150px;
    font-family: 'Roboto Mono', monospace;
    width: 200px;
    font-weight: 700;
    display: inline-block;
    text-align: center;
    position: relative;
    color: rgb(255, 255, 255);
}

.clock span::after{
    font-size: 18px;
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto Mono', monospace;
}

#hr::after {
    content: ' HOURS ' attr(data-ampm);
    font-family: 'Roboto Mono', monospace;
}

#min::after{
    content: 'MINUTES';
    font-family: 'Roboto Mono', monospace;
}

#sec::after{
    content: 'SECONDS';
    font-family: 'Roboto Mono', monospace;
}

.date, .day {
    display: inline-block;
    padding: 0 30px; /* Adds space between them */
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
}

.date {
    margin-top: 15px;
}

.datetime-wrapper {
    text-align: center;
    margin-top: 15px;
}


@media screen and (min-width: 1920px) {
    .container{
        width: 90vw;
        height: 50vh;
    }    
    .clock span{
        font-size: 13rem;
        width: 300px;
        font-weight: 600;
    }
    .clock span::after{
        font-size: 26px;
    }        
    .date {
        margin-top: 40px;        
    }
}

@media (max-width: 768px) {    
    .container {
        transform: translate(-50%, -55%) rotate(90deg);
        height: 100%;
        width: 100%;
        background: black;
    }      
    .clock{
        width: 100%;
        height: 100%;
        background: black;
    }
    .clock span{
        font-size: 7.8rem;
        width: 300px;
        font-weight: 600;
    }
    .clock span::after{
        font-size: 18px;
        bottom: -10px;
    }  
    #hr::after {
        content: attr(data-ampm);
    }
    .date{
        display: none;
    }
             
    /* .date {
        transform: translate(-50%, -50%) rotate(360deg);
        display: block;
        font-size: 1.2rem;
        margin-top: 10px;
        text-align: center;
        color: #fff;
        font-weight: bold; 
    }*/
}