@font-face {
  font-family: "Open Sans";
  src: url(assets/fonts/OpenSans-Regular.ttf);
}

:root {
  --focus-color: #4f4faa;
  --width: 1500px;
  --visited: #80ff9a;

  font-family: "Open Sans", sans-serif;
}

a,
a:visited {
  color: var(--visited);
}

body {
  background: black;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 95vh;
}

header {
  width: var(--width);
  margin: auto;
  text-align: center;
}

footer {
  width: var(--width);
  margin: auto;
  text-align: center;
  font-size: 1.25em;
  padding: 2em 0;
}

.clear-button {
  background: transparent;
  border: none;
  padding: 0;
}

main {
  flex-grow: 1;
}

.about-page {
  width: 60ch;
  max-width: 60ch;
  margin: auto;
  font-size: 1.5em;
}

#wrapper {
  display: flex;
  flex-direction: row;
  max-width: var(--width);
  margin: auto;
  gap: 10px;
  padding-top: 70px;
}

#prev-page,
#next-page {
  min-height: 100%;
  min-width: 50px;

  button {
    background: transparent;
    border: none;
    height: 100%;
    width: 100%;
    font-size: 3em;
    color: #afafc9;

    &[disabled] {
      color: #656464;
    }

    &:focus {
      outline: 1px solid var(--focus-color);
      border-radius: 5px;
    }
  }
}

#page-display {
  max-width: var(--width);
  text-align: center;
  margin: auto;
  margin-top: 2em;
}

#binder {
  display: flex;
  max-width: var(--width);
  width: var(--width);
  outline: 2px dashed #979797;
  outline-offset: -10px;
  border-radius: 15px;

  img {
    max-width: 100%;
  }

  #left-page,
  #right-page {
    min-width: 50%;
    min-height: 800px;
    background: #111125;
  }

  #left-page {
    padding-top: 50px;
    #left-main-image {
      max-width: 340px;
      margin: auto;

      img {
        &:hover {
          transition: 1s;
          left: 0;
        }
      }
    }

    #left-metadata {
      width: 400px;
      margin: auto;

      table {
        width: 100%;
      }
    }

    #left-set-logo {
      width: 400px;
      margin: 1em auto;
      display: flex;
      justify-content: center;
      min-height: 70px;
      img {
        max-height: 70px;
      }
    }

    #left-note {
      width: 400px;
      background-color: #3c3c6a;
      color: white;
      margin: auto;
      height: 120px;
      margin-top: 2em;
      border-radius: 2px;

      .text-box {
        padding: 0.75em 0.5em;

        p {
          margin: 0;
        }
      }
    }
  }

  #right-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    border-left: 2px solid #979797;

    .card-slot {
      width: 175px;

      button {
        height: 100%;
        width: 100%;

        &:focus {
          outline: 3px solid var(--focus-color);
        }
      }
    }
  }
}

#message {
  color: red;
  font-style: italic;
  max-width: var(--width);
  text-align: center;
  margin: auto;
  min-height: 30px;
  transition: opacity 1s;

  p {
    margin: 0;
  }
}

.removed {
  opacity: 0;
}
