html,
body {
  overflow: hidden;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: monospace;

  display: grid;

  grid-template-columns: 268px 5fr;
  gap: 32px;

  font-size: 16px;
  background-color: #eeefe9;
}

h1 {
  margin: 21px 0 21px 0;
}

nav {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  padding-top: 8px;

  padding-right: 16px;
  padding-bottom: 32px;

  background-color: #000;
  color: #fff;

  h1 {
    margin: 25.5px 0 25.5px 0;

    a {
      color: #fff;
      text-decoration: none;
    }
  }

  .topMatter {
    flex-grow: 1;
  }
}

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;

  a {
    color: #fff;

    &:hover {
      color: #ea0b4e;
    }
  }
}

.mobileMenu {
  display: none;
}

.bottom {
  display: none;
}

nav ul {
  list-style-type: none;

  &,
  & li {
    padding: 0;
    margin: 0;
  }

  li {
    margin-bottom: 1rem;
  }

  a {
    text-decoration: underline;
    color: #fff;
    padding: 0.5rem;
    width: calc(100% - 17px);
    display: inline-block;
    border: solid 1px transparent;

    &:hover {
      background-color: transparent;
      border-color: #fff;
    }
  }
}

:root {
  --current-background: #fff;
  --current-text: #000;
}

nav[data-page="about"] ul li:nth-child(1) a,
nav[data-page="gigs"] ul li:nth-child(2) a,
nav[data-page="video"] ul li:nth-child(3) a,
nav[data-page="discography"] ul li:nth-child(4) a,
nav[data-page="gallery"] ul li:nth-child(5) a {
  &,
  &:hover {
    color: var(--current-text);
    background-color: var(--current-background);
  }
}

main {
  height: 100%;
  padding-right: 32px;
  overflow: auto;

  h1 {
    margin-top: 33px;
  }
}

figure {
  margin: 0;
}

.bottomPadding {
  height: 64px;
}

.mailingList {
  border: solid 1px #fff;
  padding: 16px;
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  text-align: center;
  cursor: pointer;

  p {
    margin: 0;
    padding: 0;
  }

  a {
    color: #ea0b4e;
    text-decoration: underline;
    cursor: pointer;
  }
}

button {
  appearance: none;
  border: solid 1px #000;
  background-color: #fff;
  font-family: monospace;
  color: #000;
  padding: 8px;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 1rem;
  min-width: 150px;
}

input[type="text"],
input[type="email"] {
  appearance: none;
  border: solid 1px #000;
  background-color: #fff;
  font-family: monospace;
  color: #000;
  padding: 8px;
  box-sizing: border-box;
  font-size: 1rem;
  height: 40px;

  &:focus {
    border-width: 3px;
    padding: 6px;
    outline: none;
  }
}

.modalContainer {
  position: absolute;
}

.overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#000 1px, transparent 0);
  background-size: 3px 3px;
  background-repeat: space;
  background-position: left center;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  background-color: #fff;
  border: solid 1px #000;
  box-shadow: 16px 16px 0px 0px #000;
  box-sizing: border-box;

  .closeButton {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    min-width: 32px;
    height: 32px;
    background-color: #000;
    color: #fff;
  }
}

.mailingListModal {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 32px;

  h1,
  h2 {
    margin: 0;
    padding: 0;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    padding: 16px 0 32px 0;
  }

  form {
    width: 100%;
  }

  .mailingListFields {
    display: grid;
    grid-template-columns: max-content auto;
    gap: 20px;
    margin-bottom: 32px;
    width: 100%;
    align-items: center;
  }

  .mailingListButtons {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;

    & :last-child {
      background-color: #000;
      color: #fff;
    }
  }
}

.required {
  color: #ea0b4e;
}

.thanksCanvas {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.thanksMessage {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 32px;
  pointer-events: none;
  background-color: #fff;
  border: solid 1px #000;
  box-shadow: 8px 8px 0px 0px #000;
  font-size: 20px;
  font-weight: bold;
}

.envelopeImage {
  image-rendering: pixelated;
  width: 90px;
}

#more {
  cursor: pointer;
}

.unsubscribeModal {
  padding: 16px;
  flex-direction: column;
  align-items: center;
  text-align: center;

  button {
    background-color: #000;
    color: #fff;
  }
}

@media (max-width: 600px) {
  :root {
    --current-background: #eeefe9;
    --current-text: #000;
  }

  body {
    grid-template-columns: auto;
    grid-template-rows: min-content max-content;
    gap: 0;
    margin: 0;
  }

  body,
  html {
    overflow: auto;
  }

  main {
    overflow: hidden;
    padding-right: 0;
  }

  #links {
    margin-top: 32px;
    padding-top: 16px;
  }

  .socials a {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: center;
    color: #000;
  }

  .mailingList {
    margin: 24px;
    background-color: #eeefe9;
    border-color: #000;
    box-shadow: 8px 8px 0px 0px #000;
  }

  nav {
    padding-left: 0;
    padding-top: 0;
    height: min-content !important;
    background-color: #000;
    color: #fff;
    padding: 16px;

    & .topMatter {
      flex-grow: unset !important;
    }

    & ul a {
      width: calc(100vw - 48px) !important;
      text-align: center;
    }

    & .mobileMenu {
      display: flex;
      flex-direction: row;
      gap: 12px;

      li a {
        width: 75px !important;
        text-align: left;
        text-decoration: none;
        border: solid 1px #fff;
        color: #fff;
      }

      & .current {
        background-color: #fff;
      }

      &.morePressed {
        li a {
          background-color: #000 !important;
          color: #fff !important;
        }

        li a#more {
          background-color: #fff !important;
          color: #000 !important;
        }
      }
    }
  }

  main {
    padding: 16px;
  }

  .modal {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transform: none;
    background-color: #eeefe9;
  }

  .desktopMenu,
  .top {
    display: none !important;
  }

  .bottom {
    display: block;
    background-color: #0003;
  }

  .bottomPadding {
    height: 16px;
  }

  .mailingListFields {
    grid-template-columns: 1fr !important;
  }

  .thanksMessage {
    text-align: center;
  }

  .moreItems {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: fixed;
    padding: 32px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;

    .moreItem {
      padding: 16px;
      background-color: #fff;
      border: solid 1px #000;
      box-shadow: 8px 8px 0px 0px #000;
      font-size: 20px;
      font-weight: bold;
      width: 175px;
      text-align: center;
      color: #000;
      pointer-events: all;
    }
  }

  .closeMenu {
    position: fixed;
    top: 32px;
    right: 32px;
    width: 32px;
    height: 32px;
    background-color: #ea0b4e;
    color: #fff;
    text-align: center;
    border: solid 1px #000;
    box-shadow: 8px 8px 0px 0px #000;
    line-height: 32px;
    cursor: pointer;
  }

  nav[data-page="video"] ul li:nth-child(3) a,
  nav[data-page="discography"] ul li:nth-child(3) a,
  nav[data-page="gallery"] ul li:nth-child(3) a {
    &,
    &:hover {
      color: var(--current-text);
      background-color: var(--current-background);
    }
  }

  nav h1 a {
    color: #fff;
  }
}
