@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,500;1,600&display=swap');
*{
    margin: 0px;
    padding: 0px;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #f25278;
    transition: 0.2s linear;
}
/* this is for dark mode */
body.dark {
    background-color: #292c35;
}

#heading{
    text-align: center;
    margin-bottom: 6px;
    font-size: 60px;
    font-family: Montserrat;
    font-style: italic;
    color: #ffffff;
    transition: 0.3s;
}
#stopwatch{
    padding: 20px 10px 2px 40px;
    background: linear-gradient(rgba(0,0,0,0.9) , rgba(0,0,0,0.9));
    text-align: right;
    border: none;
    border-radius: 6px;
  
}
.btns{
   margin-top: 20px;
   display: flex;
   justify-content: space-between;
}
button{
    border: none;
    border-radius: 10px;
    font-size: 20px;
    padding: 10px 30px;
    cursor: pointer;
    box-shadow: 2px 2px 2px 2px #d03156 ,-1px -2px 2px 2px #d03156 ;
}
button:hover{
    transition: 0.3s;
    box-shadow: none;
    transform: scale(0.95);
}


span{
    font-size: 20px;
    color: #ffffff;
   
}
.same{
    font-size: 60px;
}


.box {
    position: fixed;
    top: 5%;
    right: 5%;
}

.label {
    padding: 5px;
    background-color: #e11584;
    border-radius: 40px;
    width: 42px;
    height: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ball {
    background-color: #ffff;
    border-radius: 50%;
    position: absolute;
    height: 20px;
    width: 20px;
    transition: 0.1s linear;
}

#sun {
    color: #f39c12;
}

#moon {
    color: #f1c40f;
}

#check {
    position: absolute;
    opacity: 0;
}

#check:checked+.label .ball {
    transform: translateX(24px);
}


@media screen and (max-width:400px) {
    .btns{
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    button{
        width: 100px;
    }
    span{
        font-size: 15px;
        color: #ffffff;
       
    }
    .same{
        font-size: 40px;
    }
    #stopwatch{
        padding: 15px 15px 10px 20px;    
    }
    .heading{
        font-size: 50px;
    }
}