/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
 
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Sorts+Mill+Goudy:ital@0;1&display=swap');

body {
    font-family: "inter", sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: normal;
    padding: 30px;
    background: #eaf0eb;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}


h1 {
  font-family: "Gentium Book Plus", serif;
  font-size: 3em;
  font-weight: normal;
  letter-spacing: 2px;
  margin-top: 0;
}

h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

hr {
  width: 100%;
}

p {
  margin-top: 0;
  line-height: 1.5;
}

a {
  color: #000 !important;
  text-decoration: none;
  font-style: italic;
}

a.logo {
    font-family: "inter", sans-serif;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    margin-bottom: 210px;
    font-style: normal;
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-4 {
  margin-bottom: 4rem;
}
.mb-5 {
  margin-bottom: 5rem;
}

.alert {
  background: #fff;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

input, textarea, select {
  border-radius: 0;
  width: 100%;
  max-width: 420px;
  background-color: #fff;
  color: #333;
}

.btn, 
button, 
.button, 
a.button, 
input[type=submit], 
input[type=reset], 
input[type=button] {
  background: rgba(0, 0, 0, .8);
  border: 1px solid #000;
  letter-spacing: 1.5px;
  color: #fff;
}

.btn:hover,
button:hover, 
.button:hover, 
a.button:hover, 
input[type=submit]:hover, 
input[type=reset]:hover, 
input[type=button]:hover {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff;
}

.content {
  min-height: calc(100vh - 520px);
}

.book {
    margin-top: 10vh;
}
.book-image {
    max-width: 320px;
}

.home-books {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem; /* Adjust spacing between items as needed */
  @media screen and (max-width: 992px) {
    grid-template-columns: repeat(3, 1fr);
  }
  @media screen and (max-width: 620) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-book {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.home-table {
  width: 100%;
  font-size: .8rem;
}

.home-table table {
  width: 100%;
  border-collapse: collapse;
}

.home-table table td, .home-table table th {
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: start;
  padding: .5rem .5rem .5rem 0;
  background: #eaf0eb;
}

.home-table table td:last-child {
  text-align: right;
}

.footer {
  margin-top: 20vh;
}

.footer-tag {
  font-size: 1.5rem;
  font-family: "Gentium Book Plus", serif;
}


/* Book Page */

.book-page hr {
  margin: 2rem auto 8rem;
}

.book-page-content {
  font-size: 1.5rem;
  margin-top: 8rem;
}

.book-page-content img {
  display: block;
  margin: 2rem 0;
  max-height: 36vh;
}

.book-page-image {
  max-width: 210px;
}

.book-page-part small {
  font-size: 1rem;
  line-height: 1;
  font-style: italic;
}

.book-sub-page h2 {
  margin-top: 1rem;
}

.book-sub-page img {
  margin-top: 3rem;
  width: 210px;
}
