.nav-toggle {
  display: none;
}

.icon-burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.icon-burger .line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .icon-burger {
      display: flex;
  }

  .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: rgb(60, 0, 0);
      display: flex;
      flex-direction: column;
      align-items: left;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-20px);
      transition: all 0.3s ease-in-out;
  }

  .nav-links li {
      margin: 20px 0;
  }

  .nav-toggle:checked ~ .nav-links {
      opacity: 1;
      pointer-events: all;
      transform: translateY(0);
  }

  .nav-toggle:checked + .icon-burger .line:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle:checked + .icon-burger .line:nth-child(2) {
      opacity: 0;
  }

  .nav-toggle:checked + .icon-burger .line:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
  }
}

.nav-links {
  display: flex;
}

.nav-links li {
  list-style: none;
  margin-left: 15px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s;
  transition: all 0.5s;
}

.nav-links li a:hover {
  color: rgb(255, 0, 0);
  background-color: black;
  padding: 6px;
  border-radius: 5px;
}

.nav-links li a:active {
  color: rgb(0, 0, 0);
  background-color: red;
  padding: 10px;
  border-radius: 5px;
  font-weight: bolder;
  border: solid white 2px;
  transition: all 0.5s;
}

.nav-links > li > a:focus {
  color: rgb(0, 0, 0);
  background-color: red;
  padding: 10px;
  border-radius: 5px;
  font-weight: bolder;
  transition: all 0.5s;
}

nav {
  cursor: auto;
  background-color: rgba(163, 25, 25, 0.115);
  padding: 15px;
  filter: drop-shadow(0 0 0.95rem crimson);
  border-bottom: solid 2px rgba(193, 88, 88, 0.3);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;

  backdrop-filter: blur(8px);
  box-shadow: 0 5px 50px rgba(0,0,0,0.5);
  position: sticky;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: solid;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}

@media (max-width: 650px) {
  nav {
    position: static;
  }
}

.txt {
  margin-left: auto;
}

.txt {
  display: flex;
  align-self: center;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: all 0.3s ease-out;
  background-color: rgb(51, 20, 0);
  padding: 8px;
  border-radius: 15px;
}

.txt:hover {
  cursor: pointer;
  color: rgb(255, 0, 0);
  text-shadow: 0px 0px 4px red, 0px 0px 2px red, 0px 0px 2px red;
  font-size: 18px;
  background-color: black;
  padding: 8px;
  border-radius: 15px;
}

img {
  margin-left: auto;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  transition: all 0.5s;
}

.nav-img {
  margin-left: auto;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  margin-right: auto;
  width: 60px;
  transition: all 0.5s;
}

.nav-img:hover {
  filter: drop-shadow(0 0 1rem crimson);
  background-color: rgba(68, 2, 2, 0.105);
  border-radius: 5px;
}

img:hover {
  filter: drop-shadow(0 0 1rem crimson);
  background-color: rgba(68, 2, 2, 0.105);
  border-radius: 5px;
}