html {
  background-color: #2a2a2a;
}

body {
  margin: 0;
  background-color: #2a2a2a;
  color: #f2f2f2;
  font-family: Verdana, sans-serif;
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.2s ease;
}

html[data-page-ready="false"] body {
  opacity: 0;
}

html[data-page-ready="true"] body {
  opacity: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background-color: #2a2a2a;
}

.navbar-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 40px;
  padding: 5px 20px;
  background-color: #2a2a2a;
}

.logo {
  display: block;
  flex: 0 0 auto;
  width: 80px;
  max-width: 80px;
  height: auto;
  aspect-ratio: 63.19614 / 28.080055;
  object-fit: contain;
}

h1 {
  margin: 0;
  font-size: 2em;
  white-space: nowrap;
  color: #007bf0;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 0 auto;
  padding: 0;
}

.nav-item {
  margin-left: 25px;
}

.nav-link {
  color: #f2f2f2;
  text-decoration: none;
  margin-right: 1rem;
  font-size: 18px;
  font-weight: 500;
}

.nav-link i,
.resize-text > i,
.invisible-text > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  min-width: 1.25em;
  margin-right: 0.35rem;
}

.menu-icon {
  display: none;
}

main {
  max-width: 1900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

@media screen and (max-width: 1230px) {
  h1 {
    font-size: calc(1.2em + 0.8vw);
    white-space: normal;
    word-wrap: break-word;
  }
}

@media screen and (max-width: 860px) {
  .logo {
    width: 48px;
    max-width: 48px;
  }

  .resize-text,
  .invisible-text {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .navbar-container {
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
  }

  h1 {
    order: 1;
    flex-basis: 100%;
    max-width: calc(100% - 40px);
    margin-bottom: 10px;
  }

  .menu-icon {
    display: flex;
    order: 2;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    margin-left: auto;
  }

  .menu-icon .bar {
    width: 100%;
    height: 4px;
    background-color: #f2f2f2;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 10px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    background-color: #2a2a2a;
    box-shadow:
      inset 1px 1px 0 rgba(255, 255, 255, 0.1),
      inset -1px -1px 0 rgba(0, 0, 0, 0.3),
      0 2px 4px rgba(0, 0, 0, 0.2);
  }

  main {
    margin: 1rem auto 1.5rem;
    padding: 0 0.875rem;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.2em;
  }

  main {
    padding: 0 0.75rem;
  }
}
