@keyframes working {
    0%{
        transform: translate(-100%);
    }
    100%{
        transform: translate(100%);
    }    
}

:root{
    font-size: 100%;
}

*,
::before,
::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    height: 100vh;
    background-color: #fb7e7e;
    color: #000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-align: center;
    padding: 10px;
}

main{
    max-width: 800px;
    margin: auto;
}

h1{
    margin: 2rem auto;
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: underline 1px;
    text-underline-offset: 4px;
    font-size: 2.5rem;
}

h2{
    font-size: 2rem;
    font-weight: 600;
}

.timer-group{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.timer{
    background-color: #f1f1f1;
    padding: 2rem 1rem;
    border-radius: 5px;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
}

.timer.active{
    background-color: #badbcc;
}

.timer p{
    font-size: 1.5rem;
}

.timer h2{
    overflow: hidden;
}

.timer h2::after{
    content: "";
    display: block;
    background-color: #666;
    height: 5px;
    width: 100%;
    transform: translate(-100%);
}

.timer.active h2::after{
    animation: working 2500ms infinite linear;
}

.btn-group{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

button{
    height: 4rem;
    margin: 2rem 0.5rem;
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items:center;
    background-color: #f1f1f1;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

img{
    width: 80%;
}

.cycle{
    font-size: 1.5rem;
    font-weight: 600;
}