/************************/
/* 1.) BOOK */
/* 2.) FEATURES */
/************************/

:root {
  --main-color: #114b5f;
  --main-color-light: #70939f;
  --main-color-dark: #092630;
  --secondary-color: #040404;
  --tertiary-color: yellow;
  --background-color: #e7edef;
  --text-color-light: #e7edef;
  --text-color-dark: #040404;
}

/************************/
/****** 1.) BOOK ********/
/************************/

.section-book {
  padding: 9.6rem 0;
  height: 100%;
  margin-bottom: 9.6rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;
}

.background-img {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  z-index: -10;
}

.background-img-da {
  opacity: 0.5;
}

.background-img-light {
  opacity: 0.3;
}

.wrapper--bookpage {
  max-width: 116rem;
  height: 76rem;
  /* max-height: 67.5rem; */
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

.books-container--bookpage {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 116rem;
  height: 100%;
  /* gap: 4rem; */

  overflow-x: auto;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* scroll-behavior: smooth; */
}

.books-container--bookpage.dragging {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.books-container--bookpage::-webkit-scrollbar {
  display: none;
}

.background--bookpage {
  width: 100%;
  height: 100%;

  border-radius: 20px;
}

.book-item--bookpage {
  display: grid;
  grid-template-columns: 1fr 2fr;
  /* grid-template-rows: 7fr 2fr; */
  justify-content: center;

  border-radius: 20px;
  padding: 4.8rem;

  width: 100%;
  height: 100%;

  scroll-snap-align: start;
}

.book-item--bookpage a {
  align-self: center;
  margin: 0 auto;
}

.book-img--bookpage {
  width: 24rem;
  height: 36rem;
  border-radius: 10px;
  align-self: center;
  margin: 0 auto;

  box-shadow: 0 4rem 5rem rgba(0, 0, 0, 0.2);

  transition: all 0.3s;
}

.book-img--bookpage:hover {
  transform: scale(0.9);
}

.book-text {
  color: var(--text-color-dark);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-text p {
  padding: 0.6rem 2.4rem;
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;

  /* background-color: rgba(255, 255, 255, 0.2); */
  border-radius: 20px;
}

.book-stats {
  color: var(--secondary-color);
  padding: 1.2rem;
  margin: 1.2rem;
  list-style: none;
  font-size: 1.8rem;
  line-height: 1.6;

  align-self: center;

  /* background-color: rgba(255, 255, 255, 0.2); */
  border-radius: 20px;
}

.strong {
  font-weight: 600;
}

.btn--bookpage {
  display: flex;
  padding: 2.4rem;
  align-self: center;
  margin: 0 auto;
  gap: 10rem;
}

.btn-carousel--bookpage {
  height: 40px;
  width: 40px;

  background-color: transparent;
  /* border: none; */

  border: solid 1px var(--secondary-color);
  border-radius: 50%;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
}

.btn-icon--bookpage:hover {
  transform: scale(1.2);
}

.btn-icon--bookpage {
  height: 24px;
  width: 24px;
  stroke: var(--secondary-color);
  /* background: radial-gradient(
    rgb(255, 255, 255),
    rgba(255, 255, 255, 0.219),
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0)
  ); */
  border-radius: 50%;
}

.btn-icon--bookpage:focus,
.btn--right:focus,
.btn--left:focus {
  outline: none;
  box-shadow: none;
}

/************************/
/*** 2.) FEATURES *******/
/************************/

.section-features {
  padding-bottom: 12.8rem;
}

.grid--features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 3rem;
}

.feature {
  display: flex;
  flex-direction: column;
  /* height: 24rem; */
}

.feature-icon {
  color: var(--main-color);
  height: 3.2rem;
  width: 3.2rem;
  background-color: var(--background-color);
  margin-bottom: 3.2rem;
  padding: 1.6rem;
  border-radius: 50%;

  align-self: center;
}

.feature-title {
  font-size: 2.4rem;
  color: #333;
  font-weight: 700;
  margin-bottom: 1.6rem;

  text-align: center;
}

.feature-text {
  font-size: 1.8rem;
  line-height: 1.8;
  text-align: center;
}
