:root {
    --hours-rotate: 90deg;
    --minutes-rotate: 180deg;
    --seconds-rotate: 0deg;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #111;
    font-family: cursive;
    color: rgb(13, 126, 225);
}

.main-clocks {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
    padding: 1rem;
    height: 100vh;
    padding: 2rem;
    border: 1px solid white;
}

@media screen and (width >=768px) {
    .main-clocks {
        flex-direction: row;
        max-width: 800px;
        margin-inline: auto;
        height: 50vh;
    }
}

.digital-clock {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.time {
    font-size: 4rem;
    font-weight: 900;
}

.date {
    margin: 0;
    font-size: 1.4rem;
    text-align: center;
}

.analogic-clock {
    position: relative;
    width: 300px;
    height: 300px;
    padding: 0.8rem;
    outline: 7px solid #282828;
    border-radius: 50%;
    box-shadow: -4px -4px 10px rgba(67, 67, 67, 0.5), inset 4px 4px 10px rgba(0, 0, 0, 0.5),
        inset -4px -4px 10px rgba(67, 67, 67, 0.5), 4px 4px 10px rgba(0, 0, 0, 0.3);
}

.outer-clock-face {
    position: relative;
    background: #282828;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 100%;
}

.outer-clock-face::after {
    transform: rotate(90deg);
}

.outer-clock-face::after,
.outer-clock-face::before,
.marking {
    content: '';
    position: absolute;
    width: 5px;
    height: 100%;
    background: #fff;
    z-index: 0;
    left: 49%;
}

.marking {
    background: #bdbdcb;
    width: 3px;
}

.marking-one {
    transform: rotate(30deg);
}

.marking-two {
    transform: rotate(60deg);
}

.marking-three {
    transform: rotate(120deg);
}

.marking-four {
    transform: rotate(150deg);
}

.inner-clock-face {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: #282828;
    border-radius: 100%;
    z-index: 1;
}

.inner-clock-face::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 18px;
    margin-left: -9px;
    margin-top: -6px;
    background: #4d4b63;
    z-index: 11;
}

.hand {
    position: absolute;
    bottom: 50%;
    width: 2px;
    left: calc(50% - 2px);
    background: #fff;
    border-radius: 6px;
    transform-origin: bottom;
    transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}

.hour-hand {
    height: 100px;
    width: 8px;
    rotate: var(--hours-rotate);
}

.min-hand {
    height: 120px;
    width: 4px;
    rotate: var(--minutes-rotate);
}

.second-hand {
    background: #ee1a1a;
    width: 2px;
    height: 150px;
    rotate: var(--seconds-rotate);
}