@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Open+Sans&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    height: 100vh;
    display: flex;
    align-items: center;
    font-family: "Montserrat", sans-serif;
    justify-content: center;

}

.hero {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    border-radius: 1.2rem;
    box-shadow: -0.3125rem -0.3125rem 0.9375rem rgba(132, 132, 132, 0.656), 0.3125rem 0.3125rem 0.9375rem rgba(0, 0, 0, 0.065); /* -5px, -5px, 15px, 5px, 5px, 15px */
}

h1 {
    font-size: 5rem; 
    font-family: "Montserrat", sans-serif;
    height: 6.25rem; 
    display: flex;
    border-radius: 1.25rem; 
    justify-content: center;
    letter-spacing: 0.5rem; 
    margin: 1rem; 
    color: #5e6168;
}

#clock {
    font-family: 'Times New Roman', Times, serif;
    font-size: 11.25rem; 
    text-align: center;
    width: 100%;
    border: 0.1875rem solid #373A40; 
    border-radius: 1.125rem; 
    color: rgb(231, 254, 254);
    padding: 1.75rem; 
    background: linear-gradient(160deg, #4D869C, #6fa8a8);
}

#date {
    margin-top: 0.9375rem; 
    font-family: 'Times New Roman', Times, serif;
    font-size: 3.75rem; 
    text-align: center;
    border: 0.1875rem solid #373A40; 
    border-radius: 0.75rem; 
    width: 100%;
    color: rgb(231, 254, 254);
    padding: 0.9375rem; 
    background: linear-gradient(160deg, #4D869C, #6fa8a8);
}

img {
    display: flex;
    padding: 0.5625rem; 
    transition: flex 0.6s ease-in-out;
    border-radius: 50%;
    margin-left: 1.875rem; 
}


@media only screen and (max-width: 1125px) {
    h1 {
        font-size: 3.875rem; 
        height: 5.125rem;    
        margin: 0.625rem;    
    }
    #clock {
        font-size: 9.0625rem;
        border-radius: 1.1rem; 
    }
    #date {
        font-size: 2.5rem;
        margin-top: 0.7rem;
        padding: 0.8rem;;  
    }
    img {
        margin-left: 1.25rem;
        padding: 0.5rem;     
      }
}

@media only screen and (max-width: 920px) {
    h1 {
        font-size: 2.5rem;
        height: 3.75rem;  
        margin: 0.375rem; 
    }
    #clock {
        font-size: 6rem; 
        padding: 0.9rem;
        border-radius: 1rem; 
    }
    #date {
        font-size: 1.875rem; 
        margin-top: 0.6rem;
        padding: 0.5rem;
        border-radius: 0.68rem; 
    }
    img {
        margin-left: 0.625rem; 
        margin-bottom: 0.5rem; 
        padding: 0.375rem;     
    }
    .hero{
        border-radius: 1rem;
    }
}

@media only screen and (max-width: 630px) {
    h1 {
        font-size: 1.375rem;       
        height: 2.375rem;          
        letter-spacing: 0.3125rem; 
        margin: 0.0625rem;         
    }
    #clock {
        font-size: 3.25rem;
        padding: 0.9rem; 
        border-radius: 0.8rem;
    }
    #date {
        font-size: 1.25rem;
        margin-top: 0.3rem; 
        padding: 0.1rem; 
        border-radius: 0.52rem;
    }
    img {
        margin-left: 0.25rem;
        padding: 0.1875rem; 
    }
    .hero {
        border-radius: 0.04rem; 
        box-shadow: -0.125rem -0.125rem 1.1875rem rgba(132, 132, 132, 0.656), 0.125rem 0.125rem 0.625rem rgba(0, 0, 0, 0.065); /* -2px, -2px, 19px, 2px, 2px, 10px */
    }
}

@media only screen and (max-width: 352px) {
    h1 {
        font-size: 1.175rem;       
        height: 2rem;          
        letter-spacing: 0.28rem; 
        margin: 0.06rem;         
    }
    #clock {
        font-size: 3rem;
        padding: 0.7rem;
        border-radius: 0.6rem; 
    }
    #date {
        font-size: 1.25rem; 
        padding: 0.15rem; 
        border-radius: 0.4rem;
    }
    img {
        margin-left: 0.25rem;
        padding: 0.1875rem; 
    }
    .hero {
        border-radius: 0.1rem; 
        box-shadow: -0.125rem -0.125rem 1.1875rem rgba(132, 132, 132, 0.656), 0.125rem 0.125rem 0.625rem rgba(0, 0, 0, 0.065); /* -2px, -2px, 19px, 2px, 2px, 10px */
    }
}

