*,
*::after,
*::before{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root{
    --first-color:#fa1406;
    --second-color: #d2c7be;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background-color: #333; 
}

.wrapper{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 50px;
    width: 800px;
    background-image: radial-gradient(circle, rgb(43,44,46) 0%, rgb(25,25,25) 93%);
    border-radius: 8px;
    box-sizing: 5px 5px 10px black;
    color: #fff;
}

.info{
    position: absolute;
    top: 6px;
    right: 14px;
    padding: 20px;
    font-size: 24px;
    color: var(--second-color);
    cursor: pointer;
    transition: color .3s;
}

.info:hover{
    color: var(--first-color);
}
h1{
    margin-bottom: 20px;font-size: 50px;font-weight: lighter;
}
.stopwatch{
    font-size: 72px;
    color: var(--first-color);
}
.time{
    visibility: hidden;
    color: var(--second-color);

}
.buttons{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 30px;
}
button{
    margin: 10px;
    padding: 10px 20px;
    width: 20%;
    font-size: 22px;
    background-color: transparent;
    color: var(--second-color);
    border: 1px solid var(--first-color);
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .3s;

}
.history{
    flex-grow: 1;
}
button:hover, button:focus{
    background-color: var(--first-color);
    outline: none;
}
.time-list li{
    display: flex;
    justify-content: space-between;
    width: 300px;
    font-size: 22px;;
    color: var(--second-color)
}
.time-list span{
    font-weight: bold;
}
.modal-shadow{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.65);
}

.modal{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 600px;
    height: 360px;
    padding: 30px 60px;
    border-radius: 15px;
    background-color: rgb(245,245,245);

}
.modal h3{
    margin-bottom: 20px;
    font-size: 30px;
    text-transform: uppercase;
}
.modal p{
    margin-bottom: 10px;
    margin-left: 20px;
    font-size: 20px;
}
.modal .close{
    display: block;
    margin: 40px auto 0;
    width: 200px;
    background-color: var(--first-color);
    transition: background-color .3s;
}
.modal .close:hover{
    background-color: rgb(226, 36, 36);
}

.modal-animation {
    animation: show-modal .5s;
}
@keyframes show-modal {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}