@font-face {
  font-family: H2;
  src: url(0-typefaces/Cinzel/static/Cinzel-Regular.ttf);
}

@font-face {
  font-family: H1;
  src: url(0-typefaces/Besley/static/Besley-Regular.ttf);
}

@font-face {
  font-family: body;
  src: url(0-typefaces/Andada/static/AndadaPro-Regular.ttf);
}

:root {
  --blue: #035aa6;
  --brown: #8c5c32;
  --white: #ffffff;
  --lightblue: #60b5ff;
  /* plum: #4A235A 
  yellow: #FFC300 */
}

body {
  font-family: body;
  background-color: var(--white);
  padding: 2rem;
  margin-left: 10rem;
  margin-bottom: 0rem;
}

.container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  padding: 0;
}

.info {
  grid-column: 2;
  text-align: center;
}

.footer {
  font-family: H1;
  font-size: 0.9rem;
  color: var(--blue);
  margin-top: 5rem;
  margin-bottom: 3rem;
  line-height: 1.4;
  text-align: center;
}

a {
  color: var(--lightblue);
  text-decoration: none;
}

.button-chapter {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  z-index: 1000;
  background-color: var(--white);
  /* overflow-y: auto; */
  overflow: visible;
}

.button-chapter a {
  display: inline-block;
  position: relative;
  transition: transform 0.2s ease-in-out;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 80%;
  background-color: var(--white);
  margin-left: 1rem;
  color: var(--blue);
  text-align: left;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: body;
  white-space: nowrap;
  z-index: 100;
  transition: opacity 0.2s ease-in-out, visibility 0.2s;
}

.button-chapter a:hover {
  transform: scale(1.1);
}

.button-chapter a:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.door {
  width: auto;
  height: 5.5rem;
  display: block;
}

button {
  background-color: var(--white);
  border: 2px solid var(--lightblue);
  padding: 0.5rem;
  margin: 0.2rem;
  cursor: pointer;
}

button:hover {
  background-color: var(--blue);
}

h1 {
  font-family: H1;
  font-size: 1.2rem;
  color: var(--lightblue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-align: center;
}

h2 {
  font-family: H2;
  font-size: 4rem;
  color: var(--blue);
  font-weight: normal;
  line-height: 1.2;
  text-align: center;
  margin: 0;
  padding: 0;
}

h3 {
  font-family: H1;
  font-size: 2.3rem;
  line-height: 1.2;
  color: var(--blue);
  font-weight: normal;
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: left;
}

p {
  font-family: body;
  font-size: 0.9rem;
  color: var(--blue);
  line-height: 1.4;
  text-align: left;
}

strong {
  font-family: H1;
  color: var(--lightblue);
}

.quote {
  text-align: right;
  font-style: italic;
  margin-top: -1.25rem;
}

.long-quote {
  border-left: 0.125rem solid var(--lightblue);
  padding-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: 5rem;
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }
  .info {
    grid-column: 1;
  }
  h2 {
    font-size: 3.5rem;
  }
}

/* pezzo in fondo */

.next-chapter {
  padding-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.next-chapter a {
  display: inline-block;
  position: relative;
  transition: transform 0.2s ease-in-out;
}

.next-chapter a:hover {
  transform: scale(1.1);
}

.next-chapter a:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.next {
  width: auto;
  height: 11rem;
  align-items: center;
}
