:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --nav-bg: #ffffff;
  --nav-text: #000000;
  --footer-text: #000000;
  --logo-border: #000000;
}

[data-theme="dark"] {
  --bg-color: #0a0a0a;
  --text-color: #ffffff;
  --nav-bg: #0a0a0a;
  --nav-text: #ffffff;
  --footer-text: #ffffff;
  --logo-border: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

p {
  font-family: "Source Code Pro", monospace;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  text-decoration:none;
  font-size: 1.4em;
}

h1 {
  font-family: "Abel", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  text-decoration:none;
  font-size: 4em;
}

.container {
  margin-top:20vh;
  width: 100vw;
}

body {
  overflow-x: hidden;
  font-family: Sans-Serif;
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
}

a {
  font-family: "Source Code Pro", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.menu-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 20px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
  box-sizing: border-box;
}

.menu-logo {
  line-height: 0;
  margin: 0 20px;
}

.menu-logo img {
  max-height: 70px;
  max-width: 70px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid var(--logo-border);
  transition: border-color 0.3s ease;
  object-fit: cover;
}

.menu-container a {
  text-decoration: none;
  color: var(--nav-text);
  transition: color 0.3s ease;
}

.menu-container a:hover {
  color: var(--nav-text);
  opacity: 0.7;
}

.menu-container input {
  display: block;
  width: 35px;
  height: 25px;
  margin: 0;
  position: absolute;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */
  -webkit-touch-callout: none;
}

/* Burger menu */
.menu-container span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: var(--nav-text);
  border-radius: 3px;
  z-index: 1;
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

.menu-container span:first-child {
  transform-origin: 0% 0%;
}

.menu-container span:nth-child(3) {
  transform-origin: 0% 100%;
}

.menu-container input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(3px,-1px);
  background: var(--nav-text);
}

.menu-container input:checked ~ span:nth-child(4) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

.menu-container input:checked ~ span:nth-child(3) {
  transform: rotate(-45deg) translate(-5px,11px);
}

.menu ul {
  list-style: none;
}

.menu li {
  padding: 10px 0;
  font-size: 22px;
}

/* mobile styles */
@media only screen and (max-width: 806px) { 
  .menu-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .menu-logo {
    line-height: 0;
    margin: 0 20px;
    order: 1;
  }

  .menu-container input {
    order: 2;
    position: absolute;
    right: 20px;
    top: 25px;
  }

  .menu-container span {
    order: 2;
    position: absolute;
    right: 20px;
  }

  .menu-container span:nth-child(2) {
    top: 25px;
  }

  .menu-container span:nth-child(3) {
    top: 34px;
  }

  .menu-container span:nth-child(4) {
    top: 43px;
  }

.menu-logo img {
  max-height: 50px;
  max-width: 50px;
  flex-shrink: 0;
}

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    padding: 100px 50px 50px;
    background: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0), background-color 0.3s ease;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .menu ul {
    width: 100%;
    text-align: center;
  }

  .menu li {
    padding: 20px 0;
    font-size: 28px;
  }

  .menu-container input:checked ~ .menu {
    transform: translateX(0%);
  }

  /* Keep hamburger X visible above menu */
  .menu-container input:checked ~ span {
    position: fixed;
    z-index: 10000;
  }

  .menu-container input:checked {
    position: fixed;
    z-index: 10001;
  }
}

/* desktop styles */
@media only screen and (min-width: 800px) { 
  .menu-container {
    width: 100%;
  }

  .menu-container input {
    display: none;
  }

  /* Burger menu */
  .menu-container span {
    display: none;
  }

  .menu {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }

  .menu ul {
    display: flex;
    padding: 0;
  }

  .menu li {
    padding: 0 20px;
  }
}

.menu li a:hover {
  color:#bbb;
}
.footer {
  bottom:0;
  font-family: "Source Code Pro", monospace;
  font-weight: 400;
  font-style: normal;
  padding:130px 0 100px 0;
  text-align:center;
  color: var(--footer-text);
}
