*{
    padding: 0;
    margin:0;
}

html, body {
      display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: black;
    height: 100%;
}



#container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:10px;
    height: 60vh;
    width:90vw;
    /* background-color: aquamarine; */
}
.colon{
    width:4rem;
    color:rgb(151, 214, 68);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10rem;
    animation : blink 1s infinite;
}
.parent {
    width: 60vw;
    height: 20vw;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 1fr);   
    /* background-color: rgb(252, 252, 155); */

}
.box {

    width: 100%;
    height: 100%;
    background-color: rgb(54, 53, 53);
    border-radius: 50%;
    position: relative; 
    /* border:1px solid red; */
}




.hand1{
    position: absolute;
    height:5px;
    background-color:rgb(151, 214, 68);
    top:50%;
    left: 50%;
    width:50%;
    transform-origin: center left;
    /* translate: 0 -50%; */
    transform:rotate(-1deg);
    opacity:1;
    border-radius: 100px;
    transition: transform 1s ease,opacity 1s ease;
}
#meridian {
    color: rgba(151, 214, 68, 0.753); /* This is the stroke/fallback color */
    font-size: 7rem;
    font-family: 'Quicksand', sans-serif;

}
#timePhrase {
    color: rgba(151, 214, 68, 0.753); /* This is the stroke/fallback color */
    font-size: 1.5rem;
    font-family: 'Quicksand', sans-serif;
    animation: blink 1.5s infinite;
    text-align: center;
    margin-top: 10px;


}

img {
    width: 100px;
    height: 100px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    display: none; /* initially hidden */
    margin: 20px auto;
}

img.visible {
    display: block;       /* show in layout */
    pointer-events: auto;
    animation: jiggle 1s infinite; /* jiggle effect */
    opacity: 1;           /* fade in */
}

@keyframes jiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes blink{
    0%{
        opacity:0.5;
    }

    50%{
        opacity:1;
    }

    100%{
        opacity:0.5;
    }
}



.hand2{
    position: absolute;
    height:5px;
    background-color:rgb(151, 214, 68);
    top:50%;
    left: 50%;
    width:50%;
    opacity:1;
    /* translate: 0 -50%; */
    transform-origin: center left;
    border-radius: 100px;
    transform: rotate(135deg);
    transition: transform 1s ease,opacity 1s ease;
}
@media (max-width: 1200px) {
   #container{
    gap:1px;
   }

    .parent {
        width:60vw; /* reduce parent width */
        height:20vw;
    }

    .box {
            width: 100%;
            height: 100%;
    }

    .hand1, .hand2 {
        height: 5px; /* thinner hands */
        width: 50%;   /* keep proportion */
    }

    .colon {
        font-size: 5rem; /* smaller colon */
        width: 2.5rem;
    }

    #meridian,#timePhrase {
        font-size: 1.5rem; /* adjust AM/PM size */
    }
}
/* Media query for screens smaller than 600px (mobile) */
@media (max-width: 800px) {
   #container{
    gap:1px;
    width:98vw;
   }

    .parent {
        width:60vw; /* reduce parent width */
        height:20vw;
    }

    .box {
            width: 100%;
            height: 100%;
    }

    .hand1, .hand2 {
        height: 2px; /* thinner hands */
        width: 50%;   /* keep proportion */
    }

    .colon {
        font-size: 5rem; /* smaller colon */
        width: 2.5rem;
    }

    #meridian,#timePhrase {
        font-size: 1.5rem; /* adjust AM/PM size */
    }
}

