@font-face {
    font-family: "Poppins";
    src:    url("/assets/fonts/Poppins/poppins-regular-webfont.woff2") format("woff2"),
            url("/assets/fonts/Poppins/poppins-regular-webfont.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}



:root {
    --stopwatch-number-fontfamily: "Poppins", Arial, Helvetica, sans-serif;
    --stopwatch-bg-color: rgba(255, 255, 255, 0.5);
    --stopwatch-shadow-color: rgba(128, 128, 128, 0.3);
    --stopwatch__header-bg-color: rgba(221, 221, 221, 0.2);
    --stopwatch__btn-border-color: rgba(128, 128, 128, 0.3);
    --stopwatch__btn-border-color-hover: rgb(247,247,247);
    --stopwatch__btn-color: black;
    --lines-color: black;
}
.dark-mode {
    --stopwatch-bg-color: rgba(0, 0, 0, 0.1);
    --stopwatch-shadow-color: rgba(23, 27, 36, 0.3);
    --stopwatch__header-bg-color: rgba(0, 0, 0, 0.1);
    --stopwatch__btn-border-color: rgba(128, 128, 128, 0.1);
    --stopwatch__btn-border-color-hover: rgba(128, 128, 128, 0.05);
    --stopwatch__btn-color: white;
    --lines-color: white;
}

* {
    box-sizing: border-box;
}
h1 {
    font-family: var(--stopwatch-number-fontfamily);
}

footer {
    position: absolute;
    bottom: 0;
    z-index: -999;
}
  

.article-stopwatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1.95rem;
}
.stopwatch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 0.5fr 1fr;
    justify-items: center;
    align-items: center;
    width: 85vw;
    height: 50vh;
    background-color: var(--stopwatch-bg-color);
    box-shadow: 0 0 1px 1px var(--stopwatch-shadow-color);
    border-radius: 10px;
}
.stopwatch__header {
    grid-column: 1 / 4;
    background-color: var(--stopwatch__header-bg-color);
    border-radius: 5px;
    padding: 5px 0px;
    width: 28rem;
    display: grid;
    grid-template-columns: 0.1fr 0.2fr 0.2fr 0.5fr;
    justify-content: center;
    justify-items: center;
    align-items: baseline;
}
.stopwatch__btn {
    border-radius: 10px;
    border: 1px solid var(--stopwatch__btn-border-color);
    background-color: transparent;
    cursor: pointer;
    padding: 1rem;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
  
.stopwatch__btn:hover {
    background-color: var(--stopwatch__btn-border-color-hover);
}
.stopwatch__btn:active {
    background-color: var(--stopwatch__btn-border-color);
}
  
.stopwatch__btn-icon {
    fill: var(--stopwatch__btn-color);
    color: var(--stopwatch__btn-color);
}
.stopwatch__btn-icon-pause {
    display: none;
}
.btn-start,
.btn-reset {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.btn-start {
    grid-column: 2 / 3;
}
.line-start,
.line-pause {
    color: var(--lines-color);
    font-size: 1.6rem;
    font-family: var(--stopwatch-number-fontfamily);
}
.line-reset {
    color: var(--lines-color);
    font-size: 1.3rem;
    font-family: var(--stopwatch-number-fontfamily);
    margin-top: 5px;
}
  
.line-pause {
    display: none;
}
.line-start-none {
    display: none;
}
.line-pause-display {
    display: initial;
}
  .icon-play-none {
    display: none;
}
.icon-pause-display {
    display: initial;
}
  
.displayHour {
    color: rgb(184, 184, 184);
    font-size: 5rem;
    font-family: var(--stopwatch-number-fontfamily);
}
.displayMinutes {
    color: rgb(184, 184, 184);
    font-size: 5rem;
    font-family: var(--stopwatch-number-fontfamily);
}
.displaySeconds {
    color: #6665dd;
    font-size: 5rem;
    font-family: var(--stopwatch-number-fontfamily);
}
.displayMilliseconds {
    color: #6665dd;
    font-size: 2rem;
    font-family: var(--stopwatch-number-fontfamily);
}
.displayMinutesHourColor {
    color: #6665dd;
    font-family: var(--stopwatch-number-fontfamily);
}
  






@media screen and (min-width: 1024px) {
  .stopwatch {
    width: 25vw;
    height: 60vh;
  }
  .stopwatch__header {
    width: 23vw;
  }
}
@media screen and (min-width: 1310px) {
  .stopwatch__header {
    width: 22vw;
  }
}
@media screen and (min-width: 1650px) {
  .stopwatch {
    width: 20vw;
    height: 60vh;
  }
  .stopwatch__header {
    width: 18vw;
  }
}