body{
    margin: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    justify-content: center;
    background: url("https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=1064&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
    background-size: cover;
    overflow: hidden;
}

h2{
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 16px;
    text-align: center;
}

.clock{
    display: flex;
}

.clock div{
    margin: 5px;
    position: relative;
}

.clock span{
    display: flex;
    width: 100px;
    height: 80px;
    background: slateblue;
    opacity: .8;
    color: white;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    text-shadow: 2px 2px 4px rgba(0,0,0,.3);
    border-radius: 10px 10px 0px 0px;
}

.clock .text{
    height: 30px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: darkblue;
    opacity: .8;
    border-radius: 0px 0px 10px 10px;
}

.clock #AmPm{
    bottom: -45px;
    position: absolute;
    left: -220px;
    height: 30px;
    font-size: 20px;
    background: plum;
    opacity: .9;
    border-radius: 5px;
}

.toggle{
    position: absolute;
    bottom: 200px;
    left:50vw;
}

.toggle .input{
    visibility: hidden;
}

.toggle .label{
    position: absolute;
    transform: translateX(-82%);
    width: 80px;
    height: 40px;
    background-color: lightgrey;
    border-radius: 20px;
    cursor: pointer;
}

.toggle .circle{
    width: 34px;
    height: 34px;
    background-color: white;
    border-radius: 50%;
    top: 3px;
    position: absolute;
    left: 3px;
    animation: toggleOff .4s linear forwards;
}

.toggle .input:checked + .label{
    background-color: rgb(240,148,148);
}

.toggle .input:checked + .label .circle{
    animation: toggleOn .4s linear  forwards;
    background-color: grey;
}

@keyframes toggleOn {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(40px);
    }
}

@keyframes toggleOff {
    0%{
        transform: translateX(40px);
    }
    100%{
        transform: translateX(0);
    }
}

.calender-container{
    position: absolute;
    top: 150px;
    left: 50vw;
    background-color: white;
    width: 100px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    transform: translateX(-55%);
}

.month-name{
    margin:  0px;
    background-color: orangered;
    color: white;
    padding:  10px;
    font-size: 10px;
    font-weight: bold;
}

.day-name{
    font-size: 10px;
    color: darkgray;
    margin: 7px;
}

.day-number {
    font-size: 30px;
    margin: 0;
    font-weight: bold;
}

.year{
    margin: 5px 0px;
    font-size: 10px;
    color: darkgray;
    font-weight: 500;
}