/* ================================
   GENERAL LAYOUT
================================ */
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  background-color: #f4f4f4;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

p {
  margin-bottom: 0;
  padding: 0;
}

/* ================================
   General Presentation
================================ */
@font-face {
    font-family: 'Tangerine';
    src: url('fonts/Tangerine-Regular.ttf') format('truetype');
}

h1,
h2,
h3 {
    font-family: "Tangerine", Arial, Helvetica, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

a:link {
  color: blue;
  background-color: transparent;
  text-decoration: none;
  cursor: pointer;
}

a:visited {
  color: purple;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  background-color: #fff;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.0rem;
}

h3 {
  font-size: 1.5rem;
}

p,
li {
  font-size: 1rem;
}

/* ================================
   HEADER & HERO
================================ */
.header {
  padding: 80px 20px;
  text-align: center;
  background-color: #555;
  color: white;
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
}

.header h1 {
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero {
  background-image: url('images/peru-jungle-trail.jpg');
  height: 350px;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.title-text h1 {
  font-size: 3rem;
  margin: 0 auto;
  color: green;
  padding: 15px;
  text-align: center; 
}

.title-text h2 {
  margin: 0 auto;
  color: green;
  padding: 15px;
  text-align: center;
}

/* ================================
   NAVIGATION
================================ */
#Nav {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

#Nav ul {
  text-align: center;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #c3c3c3;
  display: flex;
}

#Nav li {
  float: left;
}

#Nav li a,
#Nav .dropbtn {
  display: inline-block;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

#Nav li a:hover,
.dropdown:hover .dropbtn {
  background-color: red;
}

li.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

#Nav a.active {
  background-color: green;
  color: white;
  font-weight: bold;
}

.dropdown-content a.active {
  background-color: darkgreen;
}

#Nav li {
  display: inline-block;
}

#Nav a {
  color: blue;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
}

/* Hamburger menu button */
#Nav .menu-toggle {
  display: none;
  background: green;
  color: white;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 18px;
  text-align: center;
}


/* ================================
   COLUMNS
================================ */
.column {
  padding: 15px;
  box-sizing: border-box;
  flex-basis: auto;
  flex-grow: 0;
  flex-shrink: 0;
}

.leftside {
  flex-basis: 200px;
  background-color: #fefefe;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-right: 15px;
}

.middle {
  flex-basis: 0;
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-right: 15px;
}

.rightside {
  flex-basis: 200px;
  background-color: #fefefe;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ================================
   BLOG CONTENT
================================ */
.blog-block {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
}

.blog-block h2,
.blog-block h3,
.blog-block h4 {
  color: #333;
  margin-top: 20px;
  margin-bottom: 10px;
}

.blog-block em {
  color: #777;
}

.blog-block img {
  box-shadow: 1px 2px 8px 0 hsl(184deg 6% 72%);
  border-radius: 4px;
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto 15px;
}

.blog-block p {
  color: #555;
}

.blog-block a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.blog-block a:hover {
  text-decoration: underline;
}

.indents {
  line-height: 1.75;   /* a bit looser for screen readability */
  text-indent: 1.5em;
  margin: 0 0 1em 0;   /* adds space below each paragraph */
  padding: 0;
}

.ridge {
border: 10px ridge yellow;
width: 50%;
text-align: center;
margin: 0 auto;
}

/* ================================
   BOOKS LIST
================================ */
.books {
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#BooksList img {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  transition: transform 0.2s;
}

#BooksList img:hover {
  transform: scale(1.03);
}

/* ================================
   PAGINATION
================================ */
.pagination-controls {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background-color: #f0fff0;
  border-radius: 5px;
}

.pagination-controls .button {
  background-color: #4CAF50;
  border: none;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.pagination-controls .button:hover:not(.disabled) {
  background-color: #45a049;
}

.pagination-controls .button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ================================
   FORMS & SEARCH
================================ */
form input[type="text"],
form input[type="submit"] {
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

form input[type="submit"] {
  background-color: #007bff;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form input[type="submit"]:hover {
  background-color: #0056b3;
}

#searchResultsContainer {
  margin-top: 15px;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* ================================
   FOOTER
================================ */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: #f1f1f1;
}

/* ================================
   CONTACT IMAGE
================================ */
#Contact img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

/* ================================
   MAP RESPONSIVE
================================ */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

/* ================================
   RESPONSIVE DESIGN
================================ */
@media screen and (max-width: 1024px) {
  .leftside {
    flex-basis: 180px;
  }

  .rightside {
    flex-basis: 180px;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #Nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #c0c0c0;
  }

  #Nav ul.show {
    display: flex;
  }

  #Nav li {
    float: none;
    display: block;
  }

  #Nav li a,
  .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  } 

  .dropdown-content {
    position: static;
    box-shadow: none;
    min-width: 100%;
  }

  .column {
    flex-basis: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .leftside,
  .middle,
  .rightside {
    width: 100%;
    margin-right: 0;
  }

  .map-responsive {
    padding-bottom: 75%;
  }
}

@media screen and (max-width: 480px) {
  .map-responsive {
    padding-bottom: 100%;
  }
}

/* allow JS click toggle for dropdowns on tap */
.dropdown-content.show { display: block; }

  /* Button color */
  #Nav .menu-toggle{
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: green;     /* <- button */
    background-image: none;
    color: #fff;
    border: 1px solid rgba(0,0,0,.25);
  }
  
  /* Panel color (optional) */
  #Nav ul{
    background: green;     /* <- dropdown panel; remove if you only want the button green */
    background-image: none;
  }
  
  @media (max-width: 768px){
  #Nav .menu-toggle{
    display: inline-flex !important;
    align-items: center;
    gap: .5rem;
    background: #2e7d32; /* green, easy to see */
    color: #fff;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
  }
}

#google_translate_element {
  /*position: fixed;
  top: 10px;
  right: 10px;*/
  z-index: 9999;
  background: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-size: 14px;
}
.goog-te-gadget img {
  display: none; /* Hide Google branding flag icon */
}
