@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Fira Code", monospace;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #464545;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    flex-direction: column;
    gap: 20px;

    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 100px 100px;

    
    background-position: 0 0; 

    
}

h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 3px;
    box-shadow: 0px 0px 4px;
    border-radius: 10px;
    border-bottom: 4px solid #5C6BC0;

    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.212);
    padding: 10px;
    background-color: rgba(63, 81, 181, 0.2);
   
}


.container {
    background-color: rgba(51, 51, 51, 0.596);
    padding: 30px 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    

  
}

.container.animated {
    animation: acender-apagar 2.5s infinite ease-in-out;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3), 0px 0px 15px rgba(92, 107, 192, 0.6);
}


@keyframes acender-apagar {
    0% {
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3), 0px 0px 15px rgba(92, 107, 192, 0.6);
    }
    50% {
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3), 0px 0px 15px rgba(92, 107, 192, 0);
    }
    100% {
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3), 0px 0px 15px rgba(92, 107, 192, 0.6);
    }
}

.stopwatch {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #444;
    border-radius: 10px;
    box-shadow: 0px 0px 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px; 
    height: 80px; 

}


#minutes-seconds {
    font-size: 3rem; 
}

#milliseconds {
    font-size: 1.5rem; 
    margin-left: 8px;   
    color: #bbb;       
}

.stopwatch-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

button {
    background-color: #5C6BC0;
    border: none;
    padding: 12px 20px;
    font-size: 2rem;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #3f51b5;
    transform: scale(1.1);
}

button:focus {
    outline: none;
}

button:active {
    transform: scale(0.95);
}

#resetBtn {
    display: none;
    
}

span#res{
    margin-left: -5px;
}


@media (max-width: 400px){
    h1{
        font-size: 2rem;
    }
}