/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

:root {
  --primary-color: #29665d;
  --primary-color-rgb: 41, 102, 93; /* RGB varianta pro průhlednost */
  --secondary-color: #876d26;
  --secondary-color-rgb: 135, 109, 38; /* RGB varianta pro průhlednost */
  --accent-color: #406a80;
  --background-color: #f5f5f5;
  --text-color: #233540;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}


/* Vzhled celé stránky */
body {
  font-family: Arial, sans-serif;
  color: var(--text-color);
  background: linear-gradient(
    to bottom,
    rgba(var(--secondary-color-rgb), 0.8) 0%,
    rgba(var(--primary-color-rgb), 0.8) 100%
  ),
  url('/img/book-1835799_1920.jpg') center/cover no-repeat;
  background-attachment: fixed; /* Fixní pozadí pro hezčí efekt při scrollování */
}

/* Černý toggler */
.navbar-toggler {
  border-color: black;
}
.navbar-toggler-icon {
  background-color: black;
  width: 20px;
  height: 2px;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  background-color: black;
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
}

/* Navigace */
.navbar {
  background-color: #e3f4ee;
}
.navbar a {
  color: black !important;
}
.navbar a:hover {
  color: var(--secondary-color) !important;
}



/* Sekce */
section {
  padding: 50px 20px;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-color);
}
#vykup {
  background-color: #e3f4ee;
}
#komise {
  background-color: #f9ece3;
}
#noveknihy {
  background-color: #edf6fa;
}

/* Patička */
footer {
  background-color: var(--secondary-color);
  color: white;
}
footer a {
  color: #c6dbbf;
  text-decoration: none;
}
footer a:hover {
  color: white;
}

/* Tlačítka */
.btn-custom {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  transition: 0.3s;
}
.btn-custom:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Zaoblený obrázek a gradient */
.image-wrapper {
  position: relative;
  display: inline-block;
  margin-right: 20px; /* Mezera mezi obrázkem a textem */
}

.rounded-image {
  width: 250px; /* Nastavení velikosti obrázku */
  height: auto;
  border-radius: 15px; /* Zaoblené rohy */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); /* Jemný stín */
}

/* Gradient okolo obrázku */
.image-wrapper::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(
    to bottom right,
    rgba(41, 102, 93, 0.5),
    rgba(135, 109, 38, 0.5)
  ); /* Gradient s blendovanými barvami */
  border-radius: 20px; /* Zaoblené rohy gradientu */
  z-index: -1; /* Gradient pod obrázkem */
}

/* Textová část */
.text-wrapper {
  flex: 1; /* Zajišťuje rovnoměrné rozložení prostoru */
}

/* Globální text nad sekcemi */
.global-header {
  color: #ffffff; /* Bílá barva textu */
  font-size: 2.5rem; /* Velikost písma */
  font-weight: bold; /* Tučné písmo */
  text-align: center; /* Zarovnání textu na střed */
  padding: 15px 20px; /* Vnitřní odsazení textu */
  margin-bottom: 30px; /* Mezera mezi globálním textem a sekcemi */
}

/* Sekce Ekologie */
#ekologie {
  background:
    linear-gradient(135deg, rgba(245, 245, 245, 0.9), rgba(250, 250, 250, 0.6));
  background-attachment: fixed; /* Fixní pozadí pro hezčí efekt při scrollování */
  background-color: #f5f5f5; /* Jemné šedé pozadí */
  padding: 40px 20px; /* Vnitřní odsazení */
  margin: 30px 0; /* Mezera kolem sekce */
  border-radius: 15px; /* Zaoblené rohy */
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1); /* Jemný stín */
}

#ekologie h2 {
  font-size: 1.8rem; /* Větší nadpis */
  color: #2c3e50; /* Lehce tmavší text */
  font-weight: bold; /* Tučný text pro zdůraznění */
  margin-bottom: 20px; /* Mezera pod nadpisem */
}

#ekologie p {
  font-size: 1.1rem; /* Mírně větší písmo pro čitelnost */
  color: #444; /* Středně tmavý text */
  margin-bottom: 20px; /* Spodní odsazení pro přehlednost */
}

#ekologie .eco-stats {
  list-style-type: none; /* Odstranění puntíků */
  padding: 0; /* Odstranění výchozích odsazení */
  margin: 20px 0; /* Vertikální odsazení */
}

#ekologie .eco-stats li {
  font-size: 1.2rem; /* Zvýrazněný text seznamu */
  color: #27ae60; /* Zelená barva pro ekologické zaměření */
  margin: 10px 0; /* Mezera mezi položkami seznamu */
}

/* Sekce odeslat foto */
#odeslat-foto {
  background-color: var(--background-color); /* Použití základní barvy pozadí */
  padding: 3rem 1rem; /* Dostatečné odsazení */
  border: 1px solid var(--primary-color); /* Jemný rámeček pro oddělení sekce */
  border-radius: 10px; /* Kulaté rohy */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Decentní stín */
}

#odeslat-foto h2 {
  color: var(--primary-color); /* Primární barva pro nadpis */
  font-weight: 600;
  margin-bottom: 1rem;
}

#odeslat-foto p {
  color: var(--text-color); /* Konzistentní barva textu */
  font-size: 1rem;
  margin-bottom: 2rem;
}

#odeslat-foto form {
  max-width: 600px; /* Šířka formuláře omezena */
  margin: 0 auto; /* Zarovnání na střed */
  text-align: left; /* Text formulářů zarovnán vlevo */
}

#odeslat-foto .form-label {
  font-weight: 500; /* Zvýraznění popisků polí */
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

#odeslat-foto .form-control {
  border: 1px solid var(--primary-color); /* Obarvení okrajů polí */
  border-radius: 5px; /* Kulaté rohy pro pole */
  padding: 0.5rem;
  font-size: 1rem;
}

#odeslat-foto .form-control:focus {
  border-color: var(--secondary-color); /* Barva okrajů při fokusu */
  box-shadow: 0 0 0 0.2rem rgba(var(--secondary-color-rgb), 0.25); /* Barevný efekt při zaostření */
}

#odeslat-foto button {
  background-color: var(--primary-color); /* Tlačítko v primární barvě */
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

#odeslat-foto button:hover {
  background-color: var(--secondary-color); /* Barva tlačítka při hoveru */
  color: #fff;
  cursor: pointer;
}

#odeslat-foto small.form-text {
  color: var(--text-color); /* Konzistentní barva pomocného textu */
  font-size: 0.875rem;
  display: block;
  margin-top: 0.25rem;
}

