/* Shared hub layout for filmtv.html and bookshelf.html — desktop-safe, mobile-friendly */

@font-face {
  font-family: "basiic";
  src: url("cinni.net/fonts/basiic.ttf") format("truetype");
}

.hub-page {
  margin: 0;
  padding: 0;
  padding-top: 3rem;
  font-size: 0.8rem;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.hub-page--filmtv {
  background-image: url("images/movie-theatre-glitch-background-opt.jpg");
  font-family: "basiic", lucida grande, verdana, arial, helvetica;
}

.hub-page--bookshelf {
  background-image: url("images/books/library-wallpaper-glitch-opt.jpg");
  font-family: lucida grande, verdana, arial, helvetica;
}

.hub-page img {
  max-width: 100%;
  height: auto;
}

.hub-page a {
  color: indigo;
}

.hub-page .outer {
  max-width: 1070px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  box-sizing: border-box;
}

.hub-page .white {
  background: #fff;
  border: 1px solid black;
  border-radius: 0 5px 5px 5px;
  padding: 24px;
  box-sizing: border-box;
}

.hub-page .nav-item {
  display: inline-block;
  border: 1px solid #000;
  border-radius: 5px 5px 0 0;
  position: relative;
  padding: 12px 24px;
  bottom: -1px;
  background-color: #fff;
  cursor: pointer;
}

.hub-page .nav-item.active {
  border-bottom: 1px solid #fff;
  background-color: white;
}

.hub-page .nav a {
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: "basiic", lucida grande, verdana, arial, helvetica;
}

.hub-page .content {
  width: 750px;
  height: auto;
  float: left;
}

.hub-page iframe {
  display: block;
  height: 630px;
  width: 100%;
  border: none;
  overflow: hidden;
}

.hub-page .side {
  width: 250px;
  float: right;
}

.hub-page .clear {
  clear: both;
}

.hub-page .side-box {
  background: #eeeeee;
  padding: 12px;
  min-height: 200px;
}

.hub-page .thumbnail > div {
  height: 85px;
  width: 145px;
  border: 1px dashed #000;
  vertical-align: middle;
  background-size: 160%;
  background-position: top;
  float: left;
  margin-right: 14px;
}

.hub-page .item {
  margin-bottom: 24px;
  min-height: 110px;
}

.hub-page .item-small {
  margin-bottom: 24px;
}

.hub-page h2 a {
  text-decoration: none;
  color: #000;
}

.hub-page .post-info {
  font-style: italic;
  margin-bottom: 12px;
}

.hub-page .nav-item.nav-top {
  border: none;
  background: #eeeeee;
}

.hub-page .site-title {
  color: #fff;
  margin-top: 40px;
  margin-left: 70px;
}

.hub-page .site-title a {
  color: #fff;
  text-decoration: none;
  font-family: "Marker Felt", "Bradley Hand", cursive;
  font-size: 45px;
}

.hub-page .update {
  display: inline;
  margin-right: 24px;
}

.hub-page .updates {
  font-size: 0.7rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

.hub-page .updates img {
  height: 20px;
}

.hub-page .yasu {
  position: absolute;
  width: 360px;
  right: 20px;
  top: 54px;
}

.hub-page .post-content img {
  max-width: 90%;
}

.hub-page .muted {
  opacity: 0.3;
}

.hub-page .recent-image img {
  width: 50px;
  border: 1px solid;
}

.hub-page .side-heading {
  font-family: "basiic", lucida grande, verdana, arial, helvetica;
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.hub-page .quote-box {
  font-family: "basiic", lucida grande, verdana, arial, helvetica;
  font-size: 1rem;
  line-height: 1.4;
}

.hub-page .quote-box p {
  margin: 0;
}

.hub-page .quote-box p + p {
  margin-top: 12px;
}

.hub-page .watch-list p,
.hub-page .side-links p {
  margin: 12px 0 0;
}

.hub-page .watch-list p:first-of-type,
.hub-page .side-links p:first-of-type {
  margin-top: 14px;
}

/* Bookshelf-only */
.hub-page--bookshelf #new-item {
  display: inline-flex;
  align-items: center;
}

.hub-page--bookshelf .new-icon {
  width: 0.9rem;
  height: auto;
  margin-left: 0.1rem;
}

.hub-page--bookshelf .current-books {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.hub-page--bookshelf .current-book {
  position: relative;
  width: 150px;
  height: 225px;
  margin: 0 auto;
}

.hub-page--bookshelf .current-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-page--bookshelf .current-book .overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: 0.5s ease;
  background-color: rgba(0, 0, 0, 0.65);
}

.hub-page--bookshelf .current-book .text {
  color: white;
  font-size: 12px;
  line-height: 1.5;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
}

@media (hover: hover) {
  .hub-page--bookshelf .current-book:hover .overlay {
    opacity: 1;
  }
}

@media (max-width: 700px), (hover: none) {
  .hub-page--bookshelf .current-book .overlay {
    display: none;
  }

  .hub-page--bookshelf .current-book .text {
    top: auto;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    font-size: 11px;
  }
}

@media (max-width: 1100px) {
  .hub-page {
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: center;
    padding-top: 0;
    padding-bottom: 2rem;
  }

  .hub-page .outer {
    width: 100%;
    max-width: 1070px;
    margin: 0 auto;
    padding: 0 max(12px, env(safe-area-inset-left, 0px)) 0 max(12px, env(safe-area-inset-right, 0px));
  }

  .hub-page .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    overflow-x: hidden;
    flex-direction: row;
  }

  .hub-page .nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    margin: 4px;
    padding: 10px 16px;
    font-size: 0.85rem;
    border: 1px solid #000;
    border-radius: 5px;
    bottom: 0;
    white-space: normal;
    box-sizing: border-box;
  }

  .hub-page .nav-item.active {
    border: 2px solid #000;
    background-color: #fff;
  }

  .hub-page .white {
    border-radius: 5px;
  }

  .hub-page .content,
  .hub-page .side {
    width: 100%;
    float: none;
    height: auto;
  }

  .hub-page .side-box {
    min-height: auto;
    margin-top: 16px;
  }

  .hub-page img,
  .hub-page .post-content img,
  .hub-page .yasu {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .hub-page .yasu {
    position: static;
    width: min(80%, 360px);
    margin-top: 10px;
  }

  .hub-page iframe {
    max-height: none;
  }
}
