@font-face {
  font-family: omorifont;
  src: url(font/OMORI_GAME2.ttf);
  /* url of the font */
}

.photo {
  width: 220px;
  padding: 10px 10px 35px 10px;
  /* extra padding on bottom */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-align: center;
  border-radius: 4px;
  border: 1px solid lightgray;

  background-image: linear-gradient(to bottom right, white, rgb(236, 236, 236));

  position: relative;
}

h1 {
  margin-bottom: 10px;
}



.omorifont {
  font-family: omorifont, Arial;
}

button.tableofcontents {
  border-radius: 50px 0 0 50px;
  border: 0;
  padding: 12px;
  padding-left: 16px;

  font-size: 24px;
  padding-right: 24px;

  background-image: linear-gradient(to right, rgba(0, 128, 128, 0.2), 
   rgba(0, 128, 128, 0.4), teal);
  cursor: pointer;
  transition: 0.25s ease-in-out;

  color: rgb(0, 63, 63);
}

button.tableofcontents:hover {
  transform: translateX(-10px);
}


.blog-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: monospace;
}

.blog-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed #aaa;

  min-height: 28px;
}

.date {
  color: #555;
}

a.topic {
  line-height: unset;

  font-weight: bold;
  cursor: pointer;

  display: inline-block;

  width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  text-align: center;
  text-decoration: none;

  color: black;
}

a.topic:hover {
  color: brown;
}

a:visited {
  color: inherit;
}


.photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.photo div {
  overflow: scroll;
  max-height: 300px;
}

.desc {
  padding: 10px 10px 10px 10px;
  /* extraaaa padding on bottom */
  margin-bottom: 10px;
  margin-left: 10px;
}

.photo span {
  font-size: 14px;
  display: block;
}

.photo span.sub {
  font-size: 14px;
  margin-top: 4px;

  word-break: break-word;
  height: 40px;
}

/*
.photo::before {
  content: "";
  position: absolute;
  width: 50px;
  height: 15px;

  top: -16px;
  transform: translateX(-25px);
  z-index: 999;

  border-radius: 10px 10px 0 0;
  border: 1px solid #d3d3d3;
  background: #f9f9f9;
  border-bottom: none;
}


.photo::after {
  content: "";
  position: absolute;
  width: 26px;
  height:8px;
  background: white;
  border: 1px solid #d3d3d3;

  top: -10px;
  transform: translateX(-13px);
  z-index: 999;

  border-radius: 5px;
}
  */

.photo span.date {
  margin-top: -4px;
  margin-bottom: 2px;
}

.book>div {
  box-sizing: border-box;
}



.book {
  border: 2px solid lightblue;
  height: 800px;
  width: 1200px;
  left: 10%;

  display: flex;
  flex-direction: row;

  z-index: 11000;
  position: relative;
}

#page1 {
  border-right: 1px dashed lightblue;
  background: rgb(244, 248, 250);
}

#page1, #page2 {
  width: 50%;
  padding: 20px 40px;
  z-index: 9;
}

.tabs {
  height: 400px;
  width: 40px;

  position: absolute;
  left: calc(10% - 40px);
  top: calc(10% + 70px);
  z-index: 0;

  padding: 0;
  margin: 0;
  padding: 0;

}

.omoributton {
  position: relative;
  /* needed so ::before can be positioned relative to this */
  background: black;
  color: white;
  border: none;
  font-family: sans-serif;
  cursor: pointer;

  padding: 4px 8px;

  padding-top: 5px;

  margin: 4px;
  position: relative;
}

.squori {
  width: 50px;
  height: 50px;

  font-family: Arial;
  font-size: 20px;
  font-weight: bold;
}

.omoributton::before {
  content: "";
  /* makes it render */
  position: absolute;
  top: -4px;
  /* offset to peek out behind */
  left: -4px;
  right: -4px;
  /* expands behind */
  bottom: -4px;
  background: white;
  border: 1px solid black;
  z-index: -1;
  /* ensures it's behind the button */
}

.page-index-marker {
  margin-right: 16px;
  margin-bottom: 4px;

  font-size: 28px;
  font-family: omorifont, Arial;
}