* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 50px;
    width: 100%;
    min-height: 100vh;
    background-color: rgb(33, 33, 34);
     font-family: cursive;
}

.stopwatch_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
}


.heading {
    color: white;
    font-size: 35px;
    margin-top: -100px;
    margin-bottom: 10px;
}

.box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stopwatch {
    position: relative;
    font-size: 45px;
    color: white;
    font-weight: 700;
    background-color: rgb(0, 0, 0);
    padding: 30px;
    padding-inline: 120px;
    border-radius: 20px;
    box-shadow: 0 0 8px white;
    outline: 3px solid white;
    outline-offset: -3px;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transition: .3s;
   
}

.stopwatch.active {
    transition: .3s;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.circle_stopWatch_container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
}

.circle_stopWatch_container.active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
    transition: .3s;
    position: relative;
}

.circle_stopwatch span {
    font-size: 23px;
}

.circle {
    height: 170px;
    width: 170px;
    border: 10px solid var(--clr);
    outline: 5px solid white;
    box-shadow: 0 0 8px white;
    outline-offset: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
}

.circle_stopwatch {
    font-size: 40px;
    color: white;
    font-weight: 700;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.stopwatch_button_container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-direction: column;
}

.stopwatchButton {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-inline: 20px;
}

.btn {
    background-color: var(--clr);
    color: white;
    font-size: 25px;
    box-shadow: 0 2px 4px 0 var(--clr), 0 1px 1px 0 var(--clr);
    font-weight: 900;
    font-family: cursive;
    padding: 8px;
    padding-inline: 30px;
    border: 4px solid white;
    border-radius: 15px;
}

.btn.active {
    box-shadow: inset 0px 0px 10px rgb(230, 220, 220);
}


@media (max-width: 425px) {
    .stopwatch {
        font-size: 25px;
        padding: 30px;
        padding-inline: 50px;
    }

    .btn {
        font-size: 20px;
        padding: 5px;
        padding-inline: 15px;
    }

    .heading {
        font-size: 20px;
    }

    .circle_stopwatch {
        grid-template-columns: 1fr 1fr;
        font-size: 25px;
    }

    .circle_stopWatch_container{
        margin-top: -40px;
    }

    .circle_stopwatch span {
        font-size: 18px;
    }

    .circle {
        height: 130px;
        width: 130px;
    }
}

@media (min-width: 1450px) {
    .stopwatch {
        font-size: 80px;
        padding: 50px;
        padding-inline: 200px;
    }

    .btn {
        font-size: 50px;
        padding: 20px;
        border-radius: 25px;
    }

    .heading {
        font-size: 90px;
    }

    .stopwatch_container {
        gap: 50px;
    }

    .circle_stopwatch {
        font-size: 55px;
    }

    .circle_stopwatch span {
        font-size: 38px;
    }

    .circle {
        height: 280px;
        width: 280px;
        outline: 10px solid white;
        border: 20px solid var(--clr)
    }
}
