@font-face {
  font-family: 'Museo';
  font-style: normal;
  font-weight: 300;
  src: local('Museo'), url('./museo300.woff') format('woff');
}
@font-face {
  font-family: 'Museo';
  font-style: normal;
  font-weight: 700;
  src: local('Museo'), url('./museo700.woff') format('woff');
}

:root {
  --image-size: 300px;

  --color-primary: #86a315;
  --color-base-invert: #fffafa;
  --color-base: #494D50;
  --color-error: #e30613;
}

body {
  margin: 0;
  color: var(--color-base); 
}

h1, h2, h3, h4 {
  font-family: Museo, serif;
  font-weight: 700;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.75em;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

main#login {
  margin: 0 auto;
  width: 70%;

  & form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 15px;

    & .password-input {
      display: flex;
      flex-direction: column;
      width: fit-content;
      position: static;
      width: 60%;

      & label {
        font-size: 0.75rem;
        color: var(--color-primary);
        font-weight: 700;
        position: relative;
        top: 0.5rem;
        margin: 0 0 0 7px;
        padding: 0 3px;
        background: var(--color-base-invert);
        width: fit-content;
        font-family: Museo;
        font-weight: 700;
      }

      & input {
        padding: 11px 10px;
        font-size: 0.75rem;
        border: 2px var(--color-primary) solid;
        border-radius: 6px;
        background: var(--color-base-invert);

        &:focus {
          outline: none;
        }
      }
    }

    & button {
      width: 60%;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 400;
      padding-top: 8px;
      padding-right: 16px;
      padding-bottom: 8px;
      padding-left: 16px;
      background-color: var(--color-primary);
      color: var(--color-base-invert);
      border: none;
      cursor: pointer;
    }
  }
}

.incorrect-password {
  width: 55%;
  background-color: color-mix(in srgb, var(--color-error) 20%, transparent);
  border: 2px solid var(--color-error);
  border-radius: 6px;
  color: var(--color-error);
  font-family: Museo;
  font-weight: 300;
  padding: 0.6em;
}

.navbar {
  background-color: var(--color-primary);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: .75em;
  padding-left: 2.5em;

  & .logos {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  & #title {
    text-align: center;
    width: 100%;
    color: var(--color-base-invert);
    font-family: Museo, serif;

    & .subtitle {
      font-size: large;
    }
  }
}

.gslide-title {
  font-family: Museo, serif !important;
  font-weight: 700 !important;
}

.gslide-desc {
  font-family: Museo, serif !important;
  font-weight: 300 !important;
}

.toc {
  position: fixed;
  top: 175px;
  left: 0;
  padding: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 170px;

  font-family: Museo, serif;
  font-weight: 300;

  & .links {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  & a {
    font-family: Museo, serif;
    color: black;
    font-size: 18px;
  }
}

.toc-mobile .links {
  display: flex;
  flex-direction: column;
  gap: 15px;

  & a {
    font-family: Museo, serif;
    color: black;
    font-size: 18px;
  }
}

.gallery {
  margin-left: 200px;
  padding: 20px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--image-size), 1fr));
  gap: 10px;
  text-align: center;
}

.photo-item {
  object-fit: cover;
  width: var(--image-size);
  height: var(--image-size);
}

.drawer {
  display: none;
}

.drawer__overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  opacity: 0;

  transition: opacity 0.3s;
  will-change: opacity;
  background-color: #000;

  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.drawer__wrapper {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 60%;
  max-width: 250px;
  z-index: 9999;
  overflow: auto;

  transition: transform 0.3s;
  will-change: transform;
  background-color: rgb(from var(--color-base-invert) r g b / .95);

  display: flex;
  flex-direction: column;

  -webkit-transform: translate3d(-103%, 0, 0);
  transform: translate3d(-103%, 0, 0); /* extra 3% because of box-shadow */

  -webkit-overflow-scrolling: touch; /* enables momentum scrolling in iOS overflow elements */

  /* Optional */
  box-shadow: 0 2px 6px #777;
}

.drawer__content {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
  flex-grow: 1;
  /* Optional */
  padding: 1.5rem;
}

.drawer.is-active {
  display: block;
}

.drawer.is-visible .drawer__wrapper {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.drawer.is-visible .drawer__overlay {
  opacity: 0.5;
}

.drawer-trigger {
  display: none;

  background-color: var(--color-primary);
  border-radius: 100%;
  width: 30px;
  height: 30px;
  color: var(--color-base-invert);
  padding: 25px;
  flex-direction: row;
  transform: translateX(-30px);
  position: fixed;
  top: 200px;

  & svg {
    transform: translateX(10px);
  }
}

footer {
  text-align: center;
  width: 100%;
  margin-bottom: 40px;
}

@media only screen and (max-width: 800px) {
  .navbar .logos {
    display: none;
  }

  .toc {
    display: none;
  }

  .drawer-trigger {
    display: flex;
  }

  .gallery {
    margin-left: 0;
  }
}
