/* ================= ROOT FONT SCALE ================= */

html {
  font-size: clamp(14px, 1.1vw, 16px);
}

/* ================= RESPONSIVE DESIGN ================= */

@media (max-width: 1200px) {
  .index-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 900px) {

  .index-wrapper {
    flex-direction: column;
    align-items: center;
    max-width: 90%;
  }

  .side-column{
 display: none;
  }

  .index-content {
    max-width: 90%;
  }

  .book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-info {
    text-align: center;
  }
}

@media (max-width: 600px) {

  html {
    font-size: 14px; 
  }

  header {
    flex-wrap: wrap;
    padding: 0.6em;
  }

  section {
    width: 80%;
    padding: 1.25em;
  }

  .book-img {
    width: 7.5em;
  }
}


/* ================= HEADER ================= */

header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #f5efe3;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
}

/* ================= BUTTONS ================= */

.dropbtn,
.navbtn {
  background-color: #8b6f47;
  color: white;

  font-size: 1rem;
  padding: 0.6em 0.9em;

  border: none;
  border-radius: 0.4em;
  cursor: pointer;
  text-decoration: none;

  display: flex;
  align-items: center;
  justify-content: center;
}

.dropbtn:hover,
.navbtn:hover {
  background-color: #7a5f3a;
}

/* ================= DROPDOWN ================= */

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 10rem;
  background-color: #f5efe3;
  border-radius: 0.5em;

  box-shadow: 0 0.4em 0.9em rgba(0,0,0,0.2);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.6em);

  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
}

.dropdown-content a {
  color: #3a2f1d;
  padding: 0.75em 1em;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #e6dcc8;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ================= INDEX PAGE SIDE COLUMNS ================= */

.index-wrapper {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 1.8em;
  margin-top: 1.8em;
  max-width: 1200px;
  margin: 0 auto;
}

.side-column {
  width: 35rem;
  background-color: #f5efe3;
  border-radius: 0.75em;
  padding: 1.5em;

  box-shadow: 0 0.4em 0.9em rgba(0, 0, 0, 0.15);

  text-align: center;
  color: #3a2f1d;

  display: flex;
  flex-direction: column;
  gap: 1em;
}

.index-content {
  max-width: 43.75rem;
  width: 100%;
}

.side-column h3 {
  font-size: 1.375rem;
}

.side-column p,
.side-column li {
  font-size: 1rem;
  line-height: 1.5;
}

.side-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-column hr {
  width: 70%;
  height: 0.125em;
  background: linear-gradient(
    to right,
    transparent,
    #b89f74,
    transparent
  );
  border: none;
  margin: 1.6em auto;
}

.side-column .side-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ================= BODY ================= */

body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
  background-color: #d2b48c;
  color: #3a2f1d;

  overflow-x: hidden;
}

/* ================= SECTIONS ================= */

section {
  max-width: 43.75rem;
  width: 90%;
  margin: 2em auto;
  padding: 1.8em;

  background-color: #f5efe3;
  border-radius: 0.75em;
  box-shadow: 0 0.4em 0.9em rgba(0, 0, 0, 0.15);
}

/* ================= HEADINGS ================= */

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75em;
}

/* ================= BOOKS PAGE ================= */

.book {
  display: flex;
  align-items: flex-start;
  gap: 1.25em;
  max-width: 50rem;
  margin: 2.5em auto;
  padding: 1.25em;
  width: 90%;
  max-width: 50rem;

  background-color: #f5efe3;
  border-radius: 0.75em;
  box-shadow: 0 0.4em 0.9em rgba(0,0,0,0.15);
}

.book-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}

.book-img {
  width: 9.375em;
  height: auto;
  border-radius: 0.5em;
}

.buy-btn {
  display: inline-block;
  padding: 0.6em 1.1em;
  background-color: #8b6f47;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 0.4em;
  transition: background-color 0.25s ease;
}

.buy-btn:hover {
  background-color: #7a5f3a;
}

.book-info {
  flex: 1;
  text-align: left;
}

.book-info h2 {
  font-size: 1.75rem;
}

.book-info p {
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ================= INTERVIEW LINKS ================= */

.interview-link { text-decoration: none; color: black; }
.interview-link:visited { color: black; }
.interview-link:hover { color: goldenrod; }
.interview-link:active { color: gold; }

/* ================= Suggestion ================= */
.suggestion {
  margin-left: auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= Footer ================= */
.site-footer {
  width: 100%;
  background-color: #f5efe3;
  color: #3a2f1d;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9rem;
  box-shadow: 0 -0.3em 0.6em rgba(0, 0, 0, 0.15);
}
