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

body {
  background-color: #f2f3f7;
  transition: 0.1s;
}

header {
  margin: 1rem;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 4px;
}

.hide {
  display: none;
}

.show {
  display: block;
}

.container {
  margin-top: 3rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.clock {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clock span {
  position: relative;
  width: 250px;
  height: 250px;
  overflow: hidden;
  border-radius: 50%;
}

.clock span::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  z-index: 1;
}

.clock span i {
  position: absolute;
  inset: 0;
  background: linear-gradient(#ffa742, #ff4ff3, #b73bff, #723bff);
  border-radius: 50%;
  filter: blur(4px);
  /* animation: animate 1s linear infinite;*/
}

@keyframes animate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.clock p {
  position: absolute;
  z-index: 111;
  letter-spacing: 5px;
  font-weight: bolder;
  font-size: x-large;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

body button {
  width: 60px;
  height: 40px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  transition: 0.1s;
}

.stopwatch-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.stopwatch-container .options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: 0.5s;
}

.stopwatch .lap-list {
  align-items: center;
  text-align: center;
  border: 2px solid #312f2f0d;
  border-style: dashed;
  width: 70%;
  margin: 0 auto;
  margin-bottom: 0.5rem;
}

.stopwatch .lap-list h4 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding: 0.6rem;
  color: #fff;
}

.stopwatch .lap-list-container {
  padding-bottom: 15px;
  overflow-y: auto;
  max-height: 9rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  overflow: -moz-scrollbars-none;
}

.stopwatch .lap-list-container::-webkit-scrollbar {
  display: none;
}

.stopwatch .lap-list-container::-webkit-scrollbar {
  width: 0 !important;
}

.stopwatch .lap-list ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stopwatch .lap-list li {
  width: 90%;
  list-style: none;
  padding: 0.4rem;
  border: 2px solid;
  margin: auto;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.stopwatch #lap-list-no-laps {
  color: red;
  font-weight: bolder;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: small;
}

footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  padding: 1rem;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bolder;
  color: #222;
  font-size: small;
  background-color: #f2f3f7;
}

.footer-links {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 18px;
  color: var(--icon-color);

  padding: 0.3rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  background-color: white;
  box-shadow: -2px -2px 5px rgba(255, 255, 255, 1),
    3px 3px 5px rgba(0, 0, 0, 0.07);
}

.footer-links a:hover {
    background-color: white;
    box-shadow: inset -2px -2px 5px #fff, inset 3px 3px 5px rgba(0, 0, 0, 0.07);
}

/*================ light theme================ */

body.light {
  background-color: #f2f3f7;
}

body.light button {
  background-color: #f2f3f7;
  color: black;
  box-shadow: -2px -2px 5px rgba(255, 255, 255, 1),
    3px 3px 5px rgba(0, 0, 0, 0.07);
}

body.light button:hover {
  width: 60px;
  height: 40px;
  box-shadow: inset -2px -2px 5px #fff, inset 3px 3px 5px rgba(0, 0, 0, 0.07);
}

body.light .container p {
  color: #222;
}

body.light .clock span {
  background-color: #f2f3f7;
  box-shadow: -8px -8px 15px rgba(255, 255, 255, 1),
    8px 8px 25px rgba(0, 0, 0, 0.15);
  border: 6px solid #f2f3f7;
}

body.light .clock span::before {
  background-color: #f2f3f7;
  box-shadow: -8px -8px 25px rgba(255, 255, 255, 1),
    8px 8px 25px rgba(0, 0, 0, 0.25), inset 3 3px 10px rgba(0, 0, 0, 0.1),
    inset -1 -1px 15px rgba(255, 255, 255, 1);
  border: 2px solid #f2f3f7;
}

body.light header h1 {
  color: #222;
}

body.light .stopwatch {
  border: 2px solid #312f2f0d;
  border-style: dashed;
}

body.light .reset:hover {
  color: red;
}

body.light .lap:hover {
  color: rgb(0, 110, 255);
}

body.light .start-pause:hover {
  color: green;
}

body.light .stopwatch .lap-list h4 {
  color: #222;
}

/* ================ dark theme ================ */
body.dark {
  background-color: #222;
}

body.dark button {
  color: #fff;
  background-color: #222;
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.5),
    inset 3px 3px 5px rgba(255, 255, 255, 0.07);
}

body.dark button:hover {
  width: 60px;
  height: 40px;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.5),
    3px 3px 5px rgba(255, 255, 255, 0.07);
  color: #fff;
}

body.dark .container p {
  color: #fff;
}

body.dark .clock span {
  background-color: #222;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.5),
    3px 3px 5px rgba(255, 255, 255, 0.07);
  border: 6px solid #222;
}

body.dark .clock span::before {
  background-color: #222;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.5),
    3px 3px 5px rgba(255, 255, 255, 0.07);
  border: 2px solid #222;
}

body.dark header h1 {
  color: #fff;
}

body.dark .stopwatch {
  border: 2px solid #a4a4a40d;
  border-style: dashed;
}

body.dark .reset:hover {
  color: red;
}

body.dark .lap:hover {
  color: rgb(0, 110, 255);
}

body.dark .start-pause:hover {
  color: green;
}

body.dark .stopwatch .lap-list {
  border: 2px solid #a4a4a40d;
  border-style: dashed;
}

body.dark .stopwatch .lap-list li {
  color: #fff;
}

body.dark footer {
  color: #fff;
  background-color: #222;
}

body.dark .footer-links a {
  background-color: #222;
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.5),
    inset 3px 3px 5px rgba(255, 255, 255, 0.07);
}

body.dark .footer-links a:hover {
    background-color: #222;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.5),
    3px 3px 5px rgba(255, 255, 255, 0.07);}

body.dark .footer-links a:nth-child(1) {
  color: white;
}