@import url("https://fonts.googleapis.com/css2?family=Protest+Guerrilla&display=swap");
/* font-family: 'Protest Guerrilla', sans-serif; */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.light-theme {
  --mainBgColor: #ffffff;
  --textColor: #121b27;
  --navBgColor: #badff5;
  --navTextColor: black;
  --listBgColorHover: #ffffff;
  --footerBgColor: #d6d6d6;
  --listHoverColor: #121b27;
}
body.dark-theme {
  --mainBgColor: #121b27;
  --textColor: #f5deb3;
  --navBgColor: #202834;
  --navTextColor: #f5deb3;
  --listBgColorHover: #171e28;
  --footerBgColor: #32373d;
  --listHoverColor: #121b27;
}
body,
html {
  font-family: "Ubuntu", sans-serif;
}
body {
  background-color: var(--mainBgColor);
  display: flex;
  position: relative;
  color: var(--textColor);
}
nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 260px;
  background-color: var(--navBgColor);
  color: var(--navTextColor);
  padding: 30px;
  position: fixed;
  z-index: 100;
  transform: all 0.5s ease;
}
nav .top {
  display: flex;
  flex-direction: column;
  align-items: center;
}
nav .title {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
nav img {
  width: 50px;
}
nav ul li {
  list-style: none;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding: 20px;
  cursor: pointer;
  border-radius: 10px;
}
nav ul li a {
  text-decoration: none;
  pointer-events: none;
}
nav ul li span {
  text-decoration: none;
  pointer-events: none;
}
nav ul li:hover {
  background-color: var(--listHoverColor);
  color: #e29d48;
}
.checked {
  color: orangered;
  background-color: var(--listHoverColor);
}
.checked:hover {
  color: orangered;
}
.checked a {
  color: orangered;
}
nav .nav-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}
.main {
  position: relative;
  left: 260px;
  width: calc(100% - 260px);
}
.main .container {
  padding: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 50px;
}
.main .container .text {
  text-align: center;
  margin-bottom: 20px;
  margin: 0 auto;
}
.main .container .text h1 {
  margin-bottom: 10px;
}
.main .container .text p {
  max-width: 600px;
  line-height: 30px;
  color: #9b7d58;
}
.main-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px;
  gap: 20px;
}
.main-content ul {
  display: flex;
  list-style: none;
  position: relative;
}
.main-content li {
  font-size: 100px;
  width: 130px;
  text-align: center;
  font-family: "Protest Guerrilla", sans-serif;
}
.main-content ul span {
  display: inline-block;
  font-size: 100px;
}
.main-content .miliseconds {
  font-size: 50px;
  display: flex;
  align-items: end;
  width: 60px;
}

.main-content .buttons,
.edit-pop-up button {
  display: flex;
  gap: 5px;
}
button {
  padding: 10px;
  text-transform: capitalize;
  font-size: 20px;
  width: 100px;
  cursor: pointer;
  outline: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  position: relative;
}
button::after {
  position: absolute;
  content: "";
  height: 0;
  width: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.1);
}
button:hover::after {
  animation: buttonAnimation 0.2s ease forwards;
}
@keyframes buttonAnimation {
  0% {
    height: 0;
    width: 0;
  }
  100% {
    height: 100%;
    width: 100%;
  }
}
.main-content .buttons button:first-of-type {
  background-color: #f7a708;
}
.main-content .buttons button:first-of-type:hover {
  background-color: #f7a708;
}

.main-content .buttons button:nth-of-type(2) {
  background-color: #59b87e;
}
.main-content .buttons button:nth-of-type(2):hover {
  background-color: #59b87e;
}

.main-content .buttons button:nth-of-type(3) {
  background-color: #35a1df;
}
.main-content .buttons button:nth-of-type(3):hover {
  background-color: #35a1df;
}
.main-content .buttons button:last-of-type {
  background-color: #a61c1c;
}
.main-content .buttons button:last-of-type:hover {
  background-color: #a61c1c;
}
.main-content .buttons button span {
  margin-right: 3px;
}
.main-stopwatch .lap-items table,
th,
td {
  text-align: center;
  font-size: 20px;
}
.main-stopwatch .lap-items th {
  padding: 20px;
}

.main-stopwatch .lap-items td {
  padding: 5px;
}

.main .guide {
  max-width: 1000px;
}
.main .guide p {
  line-height: 25px;
  margin-top: 10px;
  color: #9b7d58;
}
.main footer {
  width: calc(100%-300px);
  display: block;
  background-color: var(--footerBgColor);
  padding: 20px;
  text-align: center;
}
br {
  display: block; /* makes it have a width */
  content: ""; /* clears default height */
  margin-top: 10px; /* change this to whatever height you want it */
}
.small {
  position: fixed;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: #ff4400a9;
  outline: none;
  border: none;
  color: wheat;
  cursor: pointer;
  display: none;
  z-index: 200;
}
.small:hover {
  background-color: orangered;
}
.small:nth-of-type(1) {
  right: 30px;
  bottom: 30px;
}
.small:nth-of-type(2) {
  right: 30px;
  top: 30px;
}
.small:last-of-type {
  left: 30px;
  top: 30px;
}
.theme-btn {
  position: fixed;
  right: 30px;
  top: 30px;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: #ff4400a9;
  outline: none;
  border: none;
  color: wheat;
  cursor: pointer;
  z-index: 200;
}
.theme-btn:hover {
  background-color: orangered;
}

@media (max-width: 900px) {
  body .main {
    width: 100%;
    left: 0;
    top: 100px;
  }
  .main .container {
    padding: 30px;
  }

  nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 100px;
    position: fixed;
    background-color: var(--footerBgColor);
    position: fixed;
  }

  nav .nav-list {
    transition: opacity 1s, width 0.5s;
    left: 0;
    top: 120px;
    height: 600px;
    position: absolute;
    background-color: var(--navBgColor);
    border-radius: 0 10px 10px 0;
    padding: 10px;
    pointer-events: none;
    overflow: auto;
    opacity: 0;
    width: 0;
    filter: none;
  }

  .menu-btn {
    display: block;
  }
}
@media (max-width: 650px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .main .container {
    padding: 30px;
  }
}
@media (max-width: 450px) {
  nav .title h1 {
    font-size: 25px;
  }
}
@media (max-width: 450px) {
  .main-content {
    width: 300px;
  }
  .main ul li,
  .main ul span {
    font-size: 70px;
  }
  .main ul li {
    width: fit-content;
  }
}
@media (max-width: 380px) {
  nav .top .title > * {
    font-size: 20px;
    text-align: center;
  }
  nav .top .title {
    margin-bottom: 0;
  }
}
nav .nav-list.open {
  opacity: 1;
  pointer-events: all;
  width: 250px;
  filter: (5px);
}

nav .nav-list.open ul,
nav .nav-list.open .bottom {
  display: block;
}
