* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;

  font-family: Arial;
}

body {
  background-color: #2e1814;
}

.bg {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transition: opacity 2s ease;
}

.bg1 {
  opacity: 1;
}

header {
  padding: 0 2rem;
}

.content {
  visibility: hidden;

  display: flex;
  flex-direction: column;
  height: 100dvh;

  position: relative;
  z-index: 1;
  color: white;
}

h1 {
  color: white;
  font-weight: 200;
}

.social-links {
  position: fixed;
  top: 2rem;
  right: 2rem;

  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  text-decoration: none;
  font-size: 1.35rem;
}

.social-links a:hover {
  text-decoration: underline;
}

.line-container {
  margin-top: -1.2rem;
  position: relative;
  width: 50%;
}

.left-hr {
  margin: 0;
  border: 0;
  height: 1px;
  background: white;
}

.square {
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: white;
  transform: translate(50%, -50%);
}

.side-nav {
  width: 220px;
  overflow-y: auto;

  background-color: rgba(254, 200, 49, 0.52);

  padding: 2rem;
  padding-right: 0;
}

.side-nav a {
  color: black;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: normal;

  display: block;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-left: 0.1rem;
}

.o {
  margin-top: 0.5rem;
  background-color: #f2c831;
}

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.5);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 300ms,
    visibility 300ms;

  z-index: 999;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

#menuBtn {
  display: none;
  padding: 2rem;
  border: none;

  background: none;

  color: white;
}

.spinner-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;

  color: white;
}

.spinner {
  width: 2.5rem;
  height: 2.5rem;

  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: white;
  border-right-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;

  animation:
    spin 0.8s linear infinite,
    glow 1.5s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glow {
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .line-container {
    width: 90%;
  }

  #menuBtn {
    display: block;
  }

  .side-nav {
    position: fixed;
    top: 0;
    left: 0;

    height: 100dvh;
    padding-top: 5rem;
    padding-bottom: 5rem;

    transform: translateX(-100%);
    transition: transform 300ms ease;

    z-index: 1000;
  }

  .side-nav.open {
    transform: translateX(0);
  }

  .social-links {
    top: auto;
    bottom: 2rem;
    right: 2rem;
  }
}
