/* Adjust these colors to fit your theme */

:root {
  --black: #000000;
  --white: #ffffff;
  --red: #e5332a;
  --blue: #1f86bd;
  --sun: #fec031;
  --forest: #464d33;
  --green: #806d3e;
  --lightgreen: #d2e4e5;
  --orange: #ff8729;
  --wood: #663d16;
  --navy: #2e4883;
  --lightnavy: #27338c;
  --offwhite: #fbefe0;
  --lightgrey: #d5d4d4;
  --radius: 0;
  --margin: 80px;
  --rowGap: 0;
  --colGap: 16px;
  --padding: 50px;
  --margin: 50px;
}

@font-face {
  font-family: "Nay Aug Black";
  src: url("https://cdn.glitch.me/78fef0f1-d981-456b-90ad-b0b36ab297e0%2FNayAug-Black.ttf?v=1637275873509")
    format("truetype");
}

@font-face {
  font-family: "Nay Aug Regular";
  src: url("https://cdn.glitch.me/78fef0f1-d981-456b-90ad-b0b36ab297e0%2FNayAug-Regular.ttf?v=1637275873623")
    format("truetype");
}

/* @font-face{font-family:"Whirly Birdie";src:url("https://cdn.glitch.me/78fef0f1-d981-456b-90ad-b0b36ab297e0%2F1711052e-ea5e-4036-9c61-dd3ef6782855_WhirlyBirdieGX%20(2).ttf?v=1637236796248")
      format("truetype")} */

@font-face {
  font-family: "Whirlybats";
  src: url("https://cdn.glitch.me/78fef0f1-d981-456b-90ad-b0b36ab297e0%2F1711052e-ea5e-4036-9c61-dd3ef6782855_WhirlybatsGX%20(1).ttf?v=1637236823114")
    format("truetype");
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  margin: var(--margin);
  background-color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  box-sizing: border-box;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes shelfshake {
  0% {
    transform: rotate(345deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.shelfshake {
  animation: shelfshake 0.5s cubic-bezier(0.1, 0.65, 0.65, 0.93);
}

.spin {
  animation: spin 0.5s;
}

.viewtoggle {
  width: 40px;
  height: 40px;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--offwhite);
  border-radius: 10px;
  color: var(--black);
  font-size: 30px;
  cursor: pointer;
  /*   box-shadow: inset 0px -1px 0px 0px rgb(0 0 0 / 15%); */
}

h1,
.viewtoggle {
  user-select: none;
  -webkit-user-select: none;
}

a {
  text-decoration: inherit;
  display: inherit;
  color: inherit;
}

.linkbooks {
  font-family: "Nay Aug Black";
  display: flex;
  align-self: flex-end;
  justify-content: center;
}

h1 {
  font-family: "Nay Aug Black";
  font-weight: normal;
  /*   font-variation-settings: "wght" 50, "wdth" 50; */
  line-height: 0.9;
  font-size: 65px;
  margin: 0;
  width: 100%;
}

.linkbooks li,
.linkbooks {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

hr {
  opacity: 0;
  height: 5vh;
}

.linkbooks li {
  background-color: var(--forest);
  writing-mode: vertical-rl;
  color: var(--offwhite);
  padding: 10px;
  padding-top: 30px;
  height: 300px;
  margin-right: 2px;
  margin-bottom: 3px;
  margin-left: 2px;
  font-size: 30px;
  align-self: flex-end;
  transition: 0.25s;
  transition-property: transform;
  cursor: pointer;
  text-align: left;
  vertical-align: middle;
  position: relative;
  box-shadow: inset 0px -5px 0px 0px rgb(0 0 0 / 15%);
  border-radius: 4px;
  border-bottom-left-radius: 50% 4px;
  border-bottom-right-radius: 50% 4px;
}

.linkbooks li:before {
  width: calc(100% - 6px);
  height: 2px;
  margin: 0px;
  position: absolute;
  top: 0px;
  left: 3px;
  background-color: var(--offwhite);
  content: "";
  border-bottom-left-radius: 50% 2px;
  border-bottom-right-radius: 50% 2px;
  border-top: 0.2px solid black;
  box-shadow: -5px 0px 0px 0px rgb(0 0 0 / 15%);

}


.linkbooksstack {
  display: block !important;
  max-width: 400px;
  margin: auto;
}
.linkbooksstack li {
  writing-mode: horizontal-tb !important;
  height: auto !important;
  padding-top: 10px !important;
  box-shadow: inset -5px -1px 0px 0px rgb(0 0 0 / 15%);
  padding-left: 15px !important;
  border-radius: 4px;
  border-top-right-radius: 4px 50%;
  border-bottom-right-radius: 4px 50%;
}

.linkbooksstack li:before {
  height: calc(100% - 6px);
  width: 2px;
  margin: 0px;
  position: absolute;
  top: 3px;
  left: 0px;
  background-color: var(--offwhite);
  content: "";
  border-top-right-radius: 2px 50%;
  border-bottom-right-radius: 2px 50%;
  border-left: 0.2px solid black;
}

.linkbooks li:nth-child(3n + 0) {
  background-color: var(--blue);
  /*   font-variation-settings: "wght" 60, "wdth" 50; */
}

.linkbooks li:nth-child(5n + 0) {
  background-color: var(--red);
  /* font-variation-settings: "wght" 50, "wdth" 50; */
}

.linkbooks li:nth-child(2n + 0) {
  background-color: var(--navy);
}

.linkbooks li:nth-child(even) {
  height: 320px;
}

.linkbooks li:nth-child(4n + 0) {
  height: 350px;
}

.linkbooks li:last-child {
  transform: rotate(-4deg) translateX(8px);
}

.linkbooksstack li:last-child {
  transform: rotate(0deg) translateX(0px) !important;
}

h1 .wb-icon {
  background-color: var(--sun);
  width: 80px;
  height: 80px;
  font-size: 45px;
  border-radius: 50%;
  line-height: 1.74;
  padding: 5px;
  text-align: center;
  margin-bottom: 12px;
}

.bookshelfoverflow {
  display: block;
  overflow: auto;
  padding-bottom: 1px;
  transition: 0.5s;
  padding-top: 10px;
}

.linkbooks .wb-icon {
  /*   transform: rotate(-90deg) scale(.7); */
 	/*   transform: rotate(-90deg) scale(.7); */
	float: right;
/* 	position: absolute; */
	bottom: 10px;
	writing-mode: vertical-rl;
	text-orientation: upright;
	transform: scale(0.9) translate(-2px, 0px);
}

.linkbooksstack .wb-icon {
  position: initial !important;
}

footer {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 30vh;
  background-color: var(--forest);
  color: var(--offwhite);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0px -5px 0px 0px rgb(0 0 0 / 15%);
}

li:hover {
  transform: translateY(-3px) !important;
}

.wb-icon {
  font-family: "Whirlybats";
  font-weight: normal;
  font-style: normal;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-variation-settings: "anim" 100;
  transition: 0.5s;
}

.wb-icon:hover {
  font-variation-settings: "anim" 200;
}

.headercircle {
  transform: translateY(-4px);
}

.disable {
  opacity: 0.3;
  pointer-events: none;
}

@media screen and (max-width: 600px) {
  :root {
    --margin: 10px;
  }

  h1 {
    max-width: 340px;
    margin: auto;
    padding-top: 50px;
  }

  .linkbooks {
    justify-content: flex-start;
  }

  .bookshelfoverflow {
    margin-left: calc(-1 * var(--margin));
    width: calc(100% + var(--margin) * 2);
  }
}
