html {
  font-size: 62.5%;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 16px;
  background-color: rgb(231, 231, 231) !important;
  width: 100vw;
  overflow: hidden;
}
@media (min-width: 992px) {
  body {
    cursor: none;
  }
}

.dark-mode {
  background-color: #141414 !important;
}
.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode p,
.dark-mode a,
.dark-mode span {
  color: rgb(231, 231, 231) !important;
}
.dark-mode .counter {
  color: #fff;
}
.dark-mode .progress-bar {
  background: #fff !important;
}
.dark-mode footer {
  background-color: #111 !important;
  color: #fff !important;
}
.dark-mode #toggle span {
  background-color: #fff;
}
.dark-mode #toggle span::after, .dark-mode #toggle span::before {
  background-color: #fff;
}
.dark-mode #menu {
  background-color: #fff;
  color: #333 !important;
}
.dark-mode #menu::after {
  border-bottom: 20px solid #fff;
}
.dark-mode #menu a {
  color: #333 !important;
}
.dark-mode #menu a.active {
  background: #cec2df;
}
.dark-mode #menu a:hover {
  color: #fff !important;
  background: #cec2df;
}
.dark-mode #header div:nth-child(1) .img-header {
  box-shadow: -10px 10px 20px 10px rgba(3, 3, 3, 0.404) !important;
}
.dark-mode #header div:nth-child(1) .img-header:hover {
  box-shadow: 0px 15px 15px 10px rgba(3, 3, 3, 0.404) !important;
}
.dark-mode #header div:nth-child(2) .img-header {
  box-shadow: 10px 10px 20px 10px rgba(3, 3, 3, 0.404) !important;
}
.dark-mode #header div:nth-child(2) .img-header:hover {
  box-shadow: 0px 15px 15px 10px rgba(3, 3, 3, 0.404) !important;
}
.dark-mode #header button {
  box-shadow: 10px 12px 20px 2px rgba(0, 0, 0, 0.904) !important;
}
.dark-mode .section1 .carousel-wrapper {
  box-shadow: 20px 20px 30px 0px rgba(0, 0, 0, 0.582);
}
.dark-mode .section1 .carousel-wrapper:hover {
  box-shadow: 0px 10px 20px 10px rgba(0, 0, 0, 0.555);
}
.dark-mode .section3 div:nth-child(1) .img-header {
  box-shadow: -10px 10px 30px 10px rgba(3, 3, 3, 0.404) !important;
}
.dark-mode .section3 div:nth-child(1) .img-header:hover {
  box-shadow: 0px 15px 20px 10px rgba(3, 3, 3, 0.404) !important;
}
.dark-mode .section3 div:nth-child(2) .img-header {
  box-shadow: 10px 10px 30px 10px rgba(3, 3, 3, 0.404) !important;
}
.dark-mode .section3 div:nth-child(2) .img-header:hover {
  box-shadow: 0px 15px 20px 10px rgba(3, 3, 3, 0.404) !important;
}
.dark-mode #contact button {
  border: 0.1rem solid #fff;
}
.dark-mode .modal p {
  color: #333 !important;
}
.dark-mode .modal span {
  color: #333 !important;
}
.dark-mode .toggle {
  background-color: #fff !important;
}
.dark-mode .toggle::before, .dark-mode .toggle::after {
  background-color: #333;
}

.img-loader {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  filter: saturate(0);
}

.hero {
  width: 100vw;
  height: 100vh;
  padding: 3em;
}

.pre-loader {
  width: 100%;
  height: 100%;
  padding: 2em;
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 0.5em;
  overflow: hidden;
}

.pre-loader p {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0 auto;
  place-content: center;
  padding-bottom: 20rem;
  width: max-content;
  color: #111;
  text-transform: uppercase;
  text-align: center;
  font-weight: 100;
  font-size: 60px;
  letter-spacing: 10px;
}

.counter {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  place-content: center;
  height: 100px;
  display: flex;
  color: #111;
  font-size: 90px;
  font-weight: 400;
  line-height: 150px;
  clip-path: polygon(0 0, 100% 0, 100% 100px, 0 100px);
}

.digit-1,
.digit-2,
.digit-3,
.digit-4 {
  position: relative;
  top: -15px;
}

.offset {
  position: relative;
  right: -7.5px;
}

.progress-bar {
  position: relative;
  top: 1rem;
  width: 0%;
  height: 2px;
  opacity: 1;
  background: #111 !important;
}

.hero-imgs {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: none;
  z-index: 0;
}

#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  #header {
    width: 60%;
  }
}
@media (min-width: 992px) {
  #header {
    width: 45%;
  }
}
#header .titulo {
  width: 100%;
}
#header .titulo h1 {
  text-transform: uppercase;
  text-align: end;
  letter-spacing: 0.5rem;
  font-size: 6rem;
  font-weight: 600;
  color: #f0f0f0;
  mix-blend-mode: difference;
  text-shadow: 1px 1px 2px #000;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
#header .titulo h1 span {
  position: relative;
  top: 400px;
}
#header p {
  width: 100%;
  text-align: end;
  font-size: 2rem;
  font-weight: 100;
  color: #f0f0f0;
  mix-blend-mode: difference;
  text-shadow: 1px 1px 2px #000;
}
#header button {
  margin-top: 5rem;
  position: relative;
  outline: none;
  text-decoration: none;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none;
  text-transform: uppercase;
  height: 60px;
  width: 210px;
  opacity: 1;
  background-color: transparent;
  border: 2px solid #fff;
  box-shadow: 10px 12px 15px 0px rgba(117, 117, 117, 0.493);
}
#header button a {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1rem;
}
#header button:hover {
  animation: rotate 0.7s ease-in-out both;
}
#header button:hover a {
  animation: storm 0.7s ease-in-out both;
  animation-delay: 0.06s;
}
#header .cursor {
  opacity: 0;
  position: fixed;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 999;
}
@media (min-width: 992px) {
  #header .cursor {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .pre-loader {
    padding: 1em;
    gap: 0.5em;
  }
  .counter {
    font-size: 50px;
    font-weight: 200;
  }
  .pre-loader p {
    padding-bottom: 15rem;
    font-size: 30px;
    line-height: 64px;
  }
  .progress-bar {
    height: 1px;
  }
  .offset {
    position: relative;
    right: -5px;
  }
}
@keyframes rotate {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
  25% {
    transform: rotate(3deg) translate3d(0, 0, 0);
  }
  50% {
    transform: rotate(-3deg) translate3d(0, 0, 0);
  }
  75% {
    transform: rotate(1deg) translate3d(0, 0, 0);
  }
  100% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }
}
@keyframes storm {
  0% {
    transform: translate3d(0, 0, 0) translateZ(0);
  }
  25% {
    transform: translate3d(4px, 0, 0) translateZ(0);
  }
  50% {
    transform: translate3d(-3px, 0, 0) translateZ(0);
  }
  75% {
    transform: translate3d(2px, 0, 0) translateZ(0);
  }
  100% {
    transform: translate3d(0, 0, 0) translateZ(0);
  }
}
.section1 {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
}
@media (min-width: 992px) {
  .section1 {
    width: 100%;
    height: 100vh;
    flex-direction: row;
    padding-top: 0;
  }
}
@media (min-width: 1200px) {
  .section1 {
    width: 80%;
  }
}
.section1 .me {
  flex: 1;
  display: flex;
  width: auto;
  margin: 0 !important;
}
.section1 .me img {
  width: max-content;
  object-fit: cover;
  filter: saturate(0);
  filter: grayscale(100%);
}
.section1 .me.me-1 {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.section1 .me.me-1 div {
  width: fit-content;
  height: fit-content;
  overflow: hidden;
}
.section1 .me.me-1 div img {
  max-height: 35vh;
}
@media (min-width: 768px) {
  .section1 .me.me-1 div img {
    max-height: 50vh;
  }
}
@media (min-width: 992px) {
  .section1 .me.me-1 div img {
    max-height: 70vh;
  }
}
.section1 .me.me-1 h2 {
  font-size: 3.5rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.section1 .me.me-1 p {
  width: 80%;
  margin: 0 auto;
  font-size: 2rem;
  font-weight: 300;
  text-align: center;
  margin-top: 1rem;
}
.section1 .me.me-2 {
  position: relative;
  display: block;
  height: 100vh;
}
@media (min-width: 992px) {
  .section1 .me.me-2 {
    display: flex;
    height: 100%;
  }
}
.section1 .me.me-2 div {
  position: absolute;
  overflow: hidden;
}
.section1 .me.me-2 div:nth-child(1) {
  left: -1rem;
  bottom: 22vh;
  max-width: 50vw;
  height: 15vh;
  z-index: 1;
}
@media (min-width: 480px) {
  .section1 .me.me-2 div:nth-child(1) {
    left: 0;
    height: 23vh;
    max-width: 40vw;
  }
}
@media (min-width: 992px) {
  .section1 .me.me-2 div:nth-child(1) {
    bottom: 5rem;
    max-width: 30vw;
    height: 26vh;
  }
}
.section1 .me.me-2 div:nth-child(2) {
  top: 20vh;
  right: 0;
  max-width: 50vw;
  height: 45vh;
}
@media (min-width: 480px) {
  .section1 .me.me-2 div:nth-child(2) {
    top: 2rem;
    max-width: 45vw;
    height: 60vh;
  }
}
@media (min-width: 992px) {
  .section1 .me.me-2 div:nth-child(2) {
    max-width: 35vw;
    height: 85vh;
  }
}
.section1 .me.me-2 div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#section2 {
  position: relative;
  width: 100%;
  min-height: max-content;
  overflow: hidden;
}
@media (min-width: 992px) {
  #section2 {
    height: 100vh;
  }
}
#section2 .sticky {
  width: 100%;
  height: 100vh;
  overflow: hidden !important;
}
#section2 .sticky-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
  overflow-x: hidden;
}
#section2 .sticky-header h1 {
  font-size: 3rem;
  letter-spacing: 1.5rem;
  font-weight: 100;
}
@media (min-width: 992px) {
  #section2 .sticky-header h1 {
    letter-spacing: 2rem;
  }
}
#section2 .slider-wrapper {
  width: max-content;
  padding: 0 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8rem;
}
#section2 .slider-wrapper .slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: auto;
  background: transparent;
}
#section2 .slider-wrapper .slide img {
  position: relative;
  width: 40rem;
  max-height: max-content;
  object-fit: cover !important;
  filter: opacity(0);
  filter: grayscale(100%);
}

.container6 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50rem;
  overflow: hidden;
}
@media (min-width: 992px) {
  .container6 {
    height: 80% !important;
    width: 65%;
    margin: 0 auto;
  }
}
.container6 .card {
  flex: 1;
  transition: all 1s ease-in-out;
  position: relative;
  height: 50rem;
  background: transparent;
  border: none;
  border-top-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}
@media (min-width: 992px) {
  .container6 .card {
    height: 80%;
  }
}
.container6 .card .card__head {
  color: #333;
  background-color: rgba(255, 255, 255, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em;
  transform: rotate(-90deg);
  transform-origin: 0% 0%;
  transition: all 0.5s ease-in-out;
  min-width: 100%;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 1em;
  white-space: nowrap;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}
.container6 .card:hover {
  flex-grow: 8;
}
@media (min-width: 768px) {
  .container6 .card:hover {
    flex-grow: 3;
  }
}
@media (min-width: 1200px) {
  .container6 .card:hover {
    flex-grow: 2;
  }
}
.container6 .card:hover img {
  filter: grayscale(0);
}
.container6 .card:hover .card__head {
  text-align: center;
  top: calc(100% - 2em);
  color: #fff;
  background: rgba(49, 49, 49, 0.75);
  font-size: 1.5rem;
  transform: rotate(0deg) skew(-5deg);
}
.container6 .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 1s ease-in-out;
  filter: grayscale(100%);
  border-top-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}
.container6 .card img:hover {
  border-radius: 2rem;
}
.container6 .card:not(:nth-child(5)) {
  margin-right: 1em;
}

.section3 {
  padding-top: 8rem;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 4rem;
}
@media (min-width: 992px) {
  .section3 {
    height: 100vh;
    width: 100%;
    flex-direction: row;
    padding-top: 0;
  }
}
.section3 div {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
  letter-spacing: 0.5rem;
}
@media (min-width: 992px) {
  .section3 div {
    height: 100%;
  }
}
.section3 div:nth-child(1) {
  flex-direction: column-reverse;
  align-items: center;
}
@media (min-width: 992px) {
  .section3 div:nth-child(1) {
    align-items: end;
    flex-direction: column;
  }
}
.section3 div:nth-child(1) p {
  font-size: 4rem;
  font-weight: 200;
  letter-spacing: 0.5rem;
}
@media (min-width: 1200px) {
  .section3 div:nth-child(1) p {
    font-size: 5rem;
  }
}
.section3 div:nth-child(1) .img-header {
  width: 80%;
  height: 25rem;
  margin-bottom: 2rem;
  background: url(../../../build/img/playa4.jpg);
  background-size: cover;
  background-position: center center;
  filter: grayscale(100%);
  transform: skew(5deg);
  transition: 0.5s;
  border-top-right-radius: 2rem;
  border-bottom-left-radius: 2rem;
  box-shadow: -15px 15px 10px 0px rgba(46, 61, 73, 0.2);
}
@media (min-width: 768px) {
  .section3 div:nth-child(1) .img-header {
    width: 50rem;
    height: 30rem;
    margin-bottom: 7rem;
  }
}
@media (min-width: 992px) {
  .section3 div:nth-child(1) .img-header {
    width: 40rem;
    height: 25rem;
  }
}
@media (min-width: 1200px) {
  .section3 div:nth-child(1) .img-header {
    width: 50rem;
    height: 30rem;
  }
}
.section3 div:nth-child(1) .img-header:hover {
  filter: grayscale(0%);
  transform: skew(0);
  box-shadow: 0px 15px 15px 0px rgba(46, 61, 73, 0.2);
}
.section3 div:nth-child(2) {
  align-items: center;
}
@media (min-width: 992px) {
  .section3 div:nth-child(2) {
    align-items: start;
  }
}
.section3 div:nth-child(2) .img-header {
  width: 80%;
  height: 25rem;
  background: url(../../../build/img/hojasenelpiso.jpg);
  background-size: cover;
  background-position: center bottom;
  border-top-right-radius: 2rem;
  border-bottom-left-radius: 2rem;
  filter: grayscale(100%);
  box-shadow: 15px 15px 10px 0px rgba(46, 61, 73, 0.2);
  transform: skew(-5deg);
  transition: 0.5s;
}
@media (min-width: 768px) {
  .section3 div:nth-child(2) .img-header {
    width: 50rem;
    height: 30rem;
  }
}
@media (min-width: 992px) {
  .section3 div:nth-child(2) .img-header {
    width: 40rem;
    height: 25rem;
  }
}
@media (min-width: 1200px) {
  .section3 div:nth-child(2) .img-header {
    width: 50rem;
    height: 30rem;
  }
}
.section3 div:nth-child(2) .img-header:hover {
  filter: grayscale(0%);
  transform: skew(0);
  box-shadow: 0px 15px 15px 0px rgba(46, 61, 73, 0.2);
}
.section3 div:nth-child(2) p {
  justify-content: center;
  font-weight: 300;
  font-size: 4rem;
}
@media (min-width: 1200px) {
  .section3 div:nth-child(2) p {
    font-size: 5rem;
  }
}
@media (min-width: 992px) {
  .section3 div:nth-child(2) p:nth-child(2) {
    margin-bottom: 7rem;
  }
}

.gallery {
  position: relative;
  width: 100vw;
  height: 100vh !important;
  overflow: hidden;
}
.gallery button {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  outline: none;
  text-decoration: none;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none !important;
  text-transform: uppercase;
  height: 60px;
  width: 210px;
  opacity: 1;
  background-color: transparent;
  border: 1px solid #262626;
}
.gallery button a {
  text-decoration: none;
  color: rgb(231, 231, 231);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2rem;
  cursor: none;
}
.gallery button:hover {
  animation: rotate 0.7s ease-in-out both;
}
.gallery button:hover a {
  animation: storm 0.7s ease-in-out both;
  animation-delay: 0.06s;
}
.gallery .item {
  position: absolute;
  width: 8rem;
  height: 11rem;
}
@media (min-width: 480px) {
  .gallery .item {
    width: 10rem;
    height: 13rem;
  }
}
@media (min-width: 992px) {
  .gallery .item {
    width: 200px;
    height: 275px;
  }
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: saturate(0%);
  filter: grayscale(100%);
}
.gallery .link {
  position: absolute;
  bottom: 0;
  right: 0;
  margin: 5px;
  width: 20px;
  height: 20px;
  background: #000;
  align-items: center;
  display: flex;
  justify-content: center;
  border-radius: 5px;
}
@media (min-width: 768px) {
  .gallery .link {
    margin: 10px;
    width: 30px !important;
    height: 30px !important;
  }
}
.gallery .link a {
  text-decoration: none;
  color: #ffffff !important;
  cursor: none;
}
.gallery i {
  position: relative;
  top: 1.5px;
  z-index: 1;
}

footer {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  background: rgb(255, 255, 255);
  z-index: 2;
}
footer span {
  margin: 0 1rem;
  font-weight: 600;
}
footer span:nth-child(2) {
  margin: 0;
  font-weight: normal;
  width: 10ch;
  animation: typing 2s steps(10) infinite alternate, blink 0.5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 1px solid;
}
@keyframes typing {
  from {
    width: 0;
  }
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.overlay {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5803921569);
  transition: all 0.5s;
}
.overlay.active {
  width: 100%;
  transition: all 1s;
}

.modal {
  position: fixed;
  display: flex !important;
  justify-content: space-evenly;
  align-items: center;
  cursor: default;
  transform: translateY(100%);
  transition: transform 0.5s;
}
.modal form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 auto;
  width: 80%;
  max-width: 800px;
  max-height: 80%;
  background: rgb(231, 231, 231);
  border-radius: 2rem;
  padding: 4rem 2rem;
}
.modal form .cerrarModal {
  position: absolute;
  top: 0;
  right: 0;
  margin: 2rem 2rem 0 0;
  font-size: 3rem;
  border: none;
  background: transparent;
  font-weight: 800;
  color: rgb(157, 111, 243);
  transition: 0.3s;
}
.modal form .cerrarModal:hover {
  transform: scale(1.3);
  color: rgb(240, 0, 0);
}
.modal form p {
  font-size: 3rem;
  font-weight: 200;
  letter-spacing: 0.3rem;
}
.modal form ul {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.modal form ul div {
  position: relative;
}
.modal form ul div input {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 4rem;
  border: none;
  border-bottom: 0.1rem solid #333;
  background: transparent;
  font-size: 1.5rem;
  font-weight: 600;
  padding-left: 1rem;
  outline: 0px;
  color: #333;
  transition: 0.3s;
}
.modal form ul div input:focus {
  border-bottom: 0.1rem solid rgb(161, 102, 228);
}
.modal form ul div textarea {
  width: 100%;
  height: 8rem !important;
  border: none;
  border-bottom: 0.1rem solid #333;
  background: transparent;
  font-size: 1.5rem;
  font-weight: 600;
  padding-left: 1rem;
  outline: 0px;
  color: #333;
  transition: 0.3s;
}
.modal form ul div textarea:focus {
  border-bottom: 0.1rem solid rgb(161, 102, 228);
}
.modal form .enviar {
  margin: 0 auto;
  margin-top: 5rem;
  position: relative;
  outline: none;
  text-decoration: none;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  height: 60px;
  width: 210px;
  opacity: 1;
  background-color: transparent;
  border: 1px solid #333;
}
.modal form .enviar span {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1rem;
}
.modal form .enviar:hover {
  animation: rotate 0.7s ease-in-out both;
}
.modal form .enviar:hover span {
  animation: storm 0.7s ease-in-out both;
  animation-delay: 0.06s;
}
.modal.modal-show {
  transform: translateY(0);
  transition: transform 0.5s;
  transition-delay: 0.5s;
}

.caja-menu {
  width: 100% !important;
  position: fixed;
  z-index: 100;
}

/* Important styles */
#toggle {
  position: absolute;
  display: block;
  top: 2.5rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  padding: 3rem 0;
  margin: 0 auto;
  cursor: none;
  mix-blend-mode: difference;
}
@media (min-width: 768px) {
  #toggle {
    top: 3rem;
    right: 9rem;
    height: 1rem;
    width: 4rem;
  }
}
#toggle.active span {
  background-color: transparent;
}
#toggle.active span:before {
  transform: rotate(45deg) translate(5px, 5px);
}
#toggle.active span:after {
  transform: rotate(-45deg) translate(10px, -10px);
}
#toggle.active + #menu {
  display: block;
  visibility: visible;
}

#toggle span:after,
#toggle span:before {
  content: "";
  position: absolute;
  left: 0;
  top: -10px;
}

#toggle span:after {
  top: 10px;
}

#toggle span {
  position: relative;
  display: block;
}

#toggle span,
#toggle span:after,
#toggle span:before {
  width: 100%;
  height: 3px;
  background-color: #000;
  transition: all 0.3s;
  backface-visibility: hidden;
  border-radius: 2px;
  mix-blend-mode: difference !important;
}

/* menu appearance*/
#menu {
  position: absolute;
  top: 2rem;
  right: 5rem;
  color: #fff;
  width: fit-content;
  padding: 10px;
  margin: 0 auto;
  font-family: "Segoe UI", Candara, "Bitstream Vera Sans", "DejaVu Sans", "Bitstream Vera Sans", "Trebuchet MS", Verdana, "Verdana Ref", sans-serif;
  text-align: center;
  border-radius: 4px;
  background: #333;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  /* just for this demo */
  display: none;
  visibility: hidden;
  transition: all 0.4s;
}
@media (min-width: 768px) {
  #menu {
    top: 9rem;
    right: 1rem;
    width: 200px;
  }
}

#menu:after {
  position: absolute;
  top: 2.3rem;
  right: -2rem;
  content: "";
  display: block;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 20px solid #333;
  transform: rotate(90deg);
  transition: all 0.4s;
}
@media (min-width: 768px) {
  #menu:after {
    top: -15px;
    left: 85px;
    right: auto;
    transform: rotate(0deg);
  }
}

ul,
li,
li a {
  list-style: none;
  display: block;
  margin: 0 !important;
  padding: 0.2rem 0 !important;
}
@media (min-width: 768px) {
  ul,
  li,
  li a {
    padding: 1rem 0 !important;
  }
}

#menu ul {
  display: flex;
  gap: 1rem;
}
@media (min-width: 768px) {
  #menu ul {
    flex-direction: column;
    gap: 0;
  }
}

#menu ul li a {
  padding: 0.5rem 1rem !important;
  color: #fff;
  font-size: 1.5rem;
  text-decoration: none;
  text-align: center;
  cursor: none;
  border-radius: 0.8rem;
  transition: all 0.3s;
}
#menu ul li a.active {
  background: #222;
  transition: all 0.3s;
}

li a:hover,
li a:focus {
  background: #222;
  color: #fff;
}

.toggle:before,
.toggle:after {
  background: #fff;
}

.toggle {
  position: relative;
  top: 4.5rem;
  left: 2rem;
  cursor: none !important;
  background-color: #000;
  mix-blend-mode: difference;
}
@media (min-width: 768px) {
  .toggle {
    top: 5rem;
    left: 5.5rem;
  }
}

.sr,
.toggle:before,
.toggle:after {
  position: absolute;
}

.toggle:before,
.toggle:after {
  transition: transform 0.3s;
}

.toggle:before,
.toggle:checked:after {
  transition-timing-function: ease-out;
}

.sr {
  top: 0;
  left: 0;
}

.sr,
.toggle {
  overflow: hidden;
}

.sr {
  clip: rect(1px, 1px, 1px, 1px);
  color: transparent;
  width: 1px;
  height: 1px;
}

.toggle {
  border-radius: 1.3rem;
  cursor: pointer;
  width: 5rem !important;
  height: 2.5rem !important;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.toggle:before,
.toggle:after {
  border-radius: 50%;
  content: "";
  display: block;
  top: 0.5rem;
  left: 0.25em;
  width: 1.5rem;
  height: 1.5rem;
}

.toggle:before,
.toggle:checked:after {
  transition-delay: 0s;
}

.toggle:checked:before,
.toggle:after {
  transition-delay: 0.3s;
  transition-timing-function: cubic-bezier(0.3, 1.6, 0.5, 0.7);
}

.toggle:before {
  transform: translateX(-2em);
}

.toggle:checked:before {
  transform: translateX(3em);
}

.toggle:checked:after {
  transform: translateX(6em);
}

.toggle:focus {
  outline: transparent;
}