@font-face {
  font-family: routed-gothic;
  src: url(routed-gothic/routed-gothic.ttf);
}

@font-face {
  font-family: routed-gothic-wide;
  src: url(routed-gothic/routed-gothic-wide.ttf);
}

:root {
  --header-footer-size: 51px;
  --border-padding: 15px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: routed-gothic;
  color: black;
  background-color: white;
  font-size: 16px;
}

a {
  color: black;
}

#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--border-padding);
  height: var(--header-footer-size);
}

#title {
  font-family: routed-gothic-wide;
  /*font-weight: bold;*/
}

#page-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 2 * var(--header-footer-size));
}

#about-text {
  height: calc(100vh - 2 * var(--header-footer-size));
  padding-left: var(--border-padding);
  padding-right: var(--border-padding);
}

p {
  margin-bottom: 0.5em;
  line-height: 1.1;
}

#left-arrow,
#right-arrow {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 25px;
  min-width: 50px;
  font-family: routed-gothic;
}

#left-arrow:disabled,
#right-arrow:disabled {
  color: white;
  cursor: default;
}

#page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 80%;
  height: 100%;
}

#page {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  max-height: 90vh;
}

#comic-page {
  max-height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--border-padding);
  height: var(--header-footer-size);
  position: relative;
}

#number {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 300px;
}

.gallery-item p {
  margin-top: 8px;
}
