* {
  -webkit-tap-highlight-color: transparent;
}
  
        body {
            font-family: 'Roboto', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f0f0f0;
            margin: 0;
            transition: background-color 0.4s, color 0.4s;
        }
        .stopwatch {
            background: #ffffff;
            border-radius: 41px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            padding: 37px 20px 0px 20px;
            text-align: center;
            height: 80%;
            display: flex;
            align-items: center;
            flex-direction: column;
            width: 80%;
            position: relative;
            justify-content: flex-start;
            transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
        }
        .time {
            font-size: 50px;
            font-weight: 700;
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .digit {
            position: relative;
            width: 30px;
            height: 60px;
            display: inline-block;
            overflow: hidden;
        }
        .digit span {
            display: block;
            position: absolute;
            width: 100%;
            top: 0;
            left: 0;
        }
        .buttons {
    display: flex; 
    justify-content: flex-start;
    margin-bottom: 20px;
    width: 304px;
    position: absolute;
    bottom: 14px;
    height: 24%;
    align-items: center;
            transition: background-color 0.4s, color 0.4s;
        }
        .buttons button {
    background: #007BFF;
    border: none;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 105px;
    cursor: pointer;
    position: absolute;
    height: 60px;
    width: 60px;
    transition: background 0.3s, background-color 0.4s, color 0.4s;
        }
        .buttons button:active {
            background: #0056b3;
        }

        .laps {
        /*    max-height: 150px; */
            height: 50%;
            min-height: 10px;
            overflow-y: auto;
            text-align: left;
            width: 82%;
            padding-left: 0px;
            overflow-x: hidden;
            overflow: hidden;
            border-radius: 20px;
            box-shadow: 0 0 2px 0 black;
            opacity: 1;
            transition: opacity 0.4s;
            position: relative;
            transition: background-color 0.4s, color 0.4s, box-shadow 0.4s;
        }
        .lap {
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
    padding: 5px;
    font-size: 16px;
    animation: flyIn 0.3s;
    padding-left: 10px;
    display: flex;
    justify-content: space-around;
            transition: background-color 0.4s, color 0.4s;
        }
        @keyframes flyIn {
            0% {
                opacity: 0;
                translate: 0 -10px;
            }
            100% {
                opacity: 1;
                translate: 0;
            }
        }
        @keyframes blink {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
            100% {
                opacity: 1;
            }
        }
        .blink {
            animation: blink 1s infinite;
        }
        button#startStopBtn {
    height: 90px;
    width: 90px;
    border-radius: 100px;
    background: #009d00;
    /* margin-left: 19px; */
    margin-right: 19px;
    transition: transform 0.2s, background-color 0.2s, width 0.5s ease-in-out, border-radius 0.5s, left 0.5s;
 /*   left: 92px; */
        }

      
      button#startStopBtn:active {
          background-color: #09c500;
      }
        #startStopBtn:hover + #staricon {
            transform: scale(0.9);
        }
        #lapscroll {
            position: absolute;
            height: 100%;
            width: 100%;
            overflow-y: scroll;
            display: flex;
            flex-direction: column;
            transition: background-color 0.4s, color 0.4s;
        }
    
  #lapscroll::-webkit-scrollbar { /* Chrome, Safari, etc. */
  width: 7px; /* Scrollbar width */
  background-color: transparent; /* Track color */
  border-radius: 5px; /* Rounded corners */
    opacity: 0;
}
  
  #lapscroll::-webkit-scrollbar-thumb {
    /* background-color: #757575; */
    background: grey;
    border-radius: 5px;
    transition: all 1s;
    opacity: 0.6;
}
  
#lapscroll::-webkit-scrollbar-thumb:active {
    background: lightgrey;
    /* background-color: blue; */
}
      
      #lapicon {
        position: relative;
        left: -10px;
        top: -1px
      }
      
      #reseticon {
        position: relative;
        left: -11px;
      }
      
          #resetBtn {
            animation: flyInLeft 0.5s;
            display: none;
            transition: background-color 0.4s, color 0.4s;
         }
      
      #lapBtn {
            animation: flyInRight 0.5s;
            display: none;
            right: 0;
            transition: background-color 0.4s, color 0.4s;
      }
      
      @keyframes flyInLeft {
        0% {
          opacity: 0;
          translate: 100% 0;
        }
        100% {
          opacity: 1;
          translate: 0 0;
        }
      }
      
      @keyframes flyOutLeft {
        0% {
          opacity: 1;
          translate: 0 0;
        }
        100% {
          opacity: 0;
          translate: 100% 0;
        }
      }
      
      @keyframes flyInRight {
        0% {
          opacity: 0;
          translate: -100%;
        }
        100% {
          opacity: 1;
          translate: 0 0;
        }
      }
      
      @keyframes flyOutRight {
        0% {
          opacity: 1;
          translate: 0 0;
        }
        100% {
          opacity: 0;
          translate: -100%;
        }
      }
              .theme {
            position: absolute;
            height: 70px;
            width: 70px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #009b7c;
            border-radius: 50%;
            font-size: 3vh;
            bottom: 20px;
            left: 20px;
            color: white;
            opacity: 60%;
            transition: opacity 0.3s;
            user-select: none;
            box-shadow: none;
            z-index: 15;
            transition: box-shadow 0.2s, translate 0.2s, scale 0.2s, opacity 0.2s;
        }
        .theme:hover {
            box-shadow: 5px 4px 2px 0 #000000cc;
            opacity: 1;
        }
        .theme:active {
            box-shadow: 0px 0px 2px 0 #000000cc;
            translate: 5px 4px;
            scale: 0.95;
        }
