

:root {
    --white: #ffffff;
    --black: #000000;
    --mutedGreen: #6baf92;
    --mutedRed: #c96b6b;
    --mutedOrange: #d9a066;
    --buttonHover: #f5e6d5;


}


@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-size: 100%;
    font-family: "Courier Prime", monospace;
 
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%; 
  }

  #myVideoMobile {
   display: none; 
  }


.stopwatch {
    position: fixed;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 90%;
    max-width: 600px;
    text-align: center;
    padding: 2.5rem 0;
    color: var(--white);
    box-shadow: 0 0.625rem 0.625rem rgba(0,0,0,0.2);
    background: linear-gradient(rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    border-radius: 16px;
}

.stopwatch h1 {
    font-size: 4rem;
    font-weight: 600;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.stopwatch h2 {
    margin-top: 1.25rem;
    font-size: 4rem;
    font-weight: 300;
    padding-bottom: 1.25rem;
}

.buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 2.5rem;

}

.buttons button {
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    background-color: var(--white);
    cursor: pointer;
    font-weight: 500;
    font-size: 1.25rem;
    margin-top: 0.625rem;
    border-style: none;
    transition: 0.20s all ease;
}

.buttons button:hover {
    animation-name: hoverIncrease;
    animation-duration: 0.5s;
}

.buttons button:first-child{
    margin-right: 1rem;

    &:hover {
        background-color: var(--mutedGreen);
    }

    &:focus {
        background-color: var(--mutedGreen);
    }
}


.buttons button:nth-child(2){
    margin-right: 1rem;
    &:hover {
        background-color: var(--mutedRed);
    }

    &:focus {
        background-color: var(--mutedRed);
    }
}


.buttons button:last-child{
    &:hover {
        background-color: var(--mutedOrange);
    }

    &:focus {
        background-color: var(--mutedOrange);
    }
 
}



@keyframes hoverIncrease {
    from {transform: scale(1);}
    to {transform: scale(1.10);}
}

/* RESPONSIVE - SCREENS BELOW 600PX */

@media screen and (max-width: 600px) {

#myVideo {
    display: none; 
}

#myVideoMobile {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%; 
  }
    
.stopwatch {
    padding: 1.25rem 0;
}

.stopwatch h1 {
    font-size: 3rem;
}

.stopwatch h2 {
    font-size: 3rem;
}

.buttons button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}


.buttons button:first-child{
    margin-right: 0.625rem;

}


.buttons button:nth-child(2){
    margin-right: 0.625rem;
}


}