/**
 *  Stáj-Komarice z.s. - Web
 *
 *  Tento soubor byl navržen speciálně pro použití při vývoji
 *  stránek pro Stáj-Komarice z.s.
 *  Veškerá práva vyhrazena.
 *
 *  @copyright Staj-Komarice z.s. (c) 2022
 *  @author Filip Vacek <filipvacek67@gmail.com> <filipvacek67@gmail.com>
 */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap');

/* CSS Variables */

:root {
  --button-hover: #0573da;
  --button-background: #87ceeb;
  --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  --outline: 0.1rem solid rgba(0, 0, 0, 0.1);
  --outline-hover: 0.2rem solid #130f40;

  --main-background: #ece1e1;
  --body-background: #e5dada;
  --element-background: #f3ebeb;
  --font-color: #130f40;
  --image-filter: none;
}

/* General stuff */

* {
  font-family: 'Open Sans', sans-serif;
  color: var(--font-color);
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--font-color);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-top: 10em;
  background: var(--body-background);
}

section {
  padding: 2rem 9%;
}

.heading {
  text-align: center;
  font-weight: bold;
  padding-bottom: 3rem;
  font-size: 3.5rem;
  color: var(--font-color);
}

.subheading {
  padding-top: 5rem;
  font-weight: bold;
  font-size: 2.5rem;
  color: var(--font-color);
}

.btn {
  margin-top: 1rem;
  padding: 10px 20px;
  background: var(--button-background);
  transition: all 0.3s ease-in-out;
  color: var(--font-color);
  font-size: 16px;
  font-weight: bold;
  border: none;
  outline: none;
  border-radius: 5px;
}

.form-control {
  font-size: 18px;
  border-radius: 15px;
}

.contact-form input {
  width: 40rem;
}

.contact-form textarea {
  height: 20rem;
}

.btn:hover {
  background: var(--button-hover);
  color: #fff;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 9%;
  background: var(--main-background);
  box-shadow: var(--box-shadow);
}

.header .logo img {
  max-width: 25em;
  filter: var(--image-filter);
}

.password-reveal {
  width: 35px;
  height: 35px;
  border-radius: 15%;
  border: solid 1px var(--element-background);
}

.password-group .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.form-group .invalid-feedback {
  color: #c50000;
  font-size: 16px;
}

.header .navbar {
  background-color: var(--main-background);
  padding: 0 10% 0 0;
}

.header .navbar a {
  text-decoration: none;
  display: inline;
  font-size: 2rem;
  margin: 0 2rem;
  color: var(--font-color);
}

.header .dropdown button {
  display: inline;
  text-decoration: none;
  outline: none;
  border: none;
  font-size: 2rem;
  margin: 0 2rem;
  color: var(--font-color);
  background-color: transparent;
}

.header .dropdown .dropdown-menu {
  background-color: var(--main-background);
  border-radius: 0;
}

.attachment {
  color: blue;
}

.attachment:hover {
  text-decoration: underline !important;
}

.header .navbar a {
  background: linear-gradient(to right, var(--font-color), var(--font-color));
  background-size: 0 0.1em;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 400ms;
}

.header .navbar a:hover,
.navbar a:focus {
  background-size: 100% 0.1em;
}

.header .navbar .active {
  font-weight: bold;
}

.img-thumbnail {
  max-width: 20rem;
  max-height: 20rem;
  object-fit: cover;
}

.header .icons span {
  height: 4.5rem;
  width: 4.5rem;
  line-height: 4.5rem;
  border-radius: 0.5rem;
  background-color: var(--main-background);
  box-shadow: var(--box-shadow);
  color: var(--font-color);
  font-size: 2rem;
  margin-left: 0.3rem;
  cursor: pointer;
  text-align: center;
  display: inline-block;
}
/* Pagiantion */

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.pagination .page-item a {
  background-color: var(--element-background);
  color: var(--font-color);
}

.pagination .page-item a:hover {
  background-color: var(--button-background);
}
.page-item.active .page-link {
  color: #fff;
  background-color: var(--button-hover);
}

.page-item.active .page-link:hover {
  color: #fff;
  background-color: var(--button-hover);
}

/*
* Carousel Section
*/

.carousel {
  z-index: 5;
  background-size: cover;
}

.carousel-indicators button {
  background-color: var(--main-background);
  height: 15px !important;
  width: 15px !important;
  border-radius: 50%;
}

.carousel .carousel-next-button,
.carousel .carousel-prev-button {
  display: inline-block;
  padding: 3px;
}

.carousel-next-button {
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
  border: solid var(--main-background);
  border-width: 0 3px 3px 0;
  right: 0;
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

.carousel-prev-button {
  width: 2rem;
  height: 2rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
  border: solid var(--main-background);
  border-width: 0 3px 3px 0;
  left: 0;
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.carousel.carousel-fade .carousel-item {
  display: block;
  opacity: 0;
  transition: opacity ease-out 0.5s;
}

.carousel.carousel-fade .carousel-item.active {
  opacity: 1;
}

.header .icons span:hover {
  background-color: var(--button-hover);
  color: var(--font-color);
}

#menu-btn {
  display: none;
}

.turnus-table {
  width: 40rem;
  text-align: center;
}

.turnus-table thead,
tbody,
th,
tr,
td {
  border: 1px solid black;
}

/*
* Main Text page
*/

.main_text {
  font-size: 2rem;
}

.main_text .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
}

.main_text .box-container p {
  font-size: 2rem;
  line-height: 1.8;
  color: var(--font-color);
  padding: 1rem 0;
}

/*
* Footer styling
*/

.footer {
  height: 40rem;
  background: var(--main-background);
  font-size: 1.6rem;
  bottom: 0;
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2em;
}

.footer .box-container .box h3 {
  font-size: 2.5rem;
  color: var(--font-color);
  padding: 1rem 0;
}

.footer .box-container .box .links {
  display: block;
  color: var(--font-color);
  padding: 1rem 0;
  transition: margin 0.5s ease;
}

.footer .box-container .box .links span {
  padding-right: 0.5rem;
}

.footer .box-container .box .links:hover {
  font-weight: bold;
  margin-left: 2rem;
}

.footer .box-container .box p {
  line-height: 1.8;
  font-size: 1.5rem;
  color: var(--font-color);
  padding: 1rem 0;
}

.footer .box-container .box .socials img {
  height: 35px;
  width: 35px;
  filter: var(--image-filter);
  transition: opacity 0.5s ease;
}

.socials {
  display: flex;
  gap: 1em;
}

.footer .box-container .box .socials img:hover {
  opacity: 0.3;
}

.footer .box-container .box .weather-box {
  display: flex;
  /*align-items: center;*/
  justify-content: center;
  flex-direction: column;
}

.weather-box img {
  height: 12rem;
  width: 12rem;
}

.box-container .box .weather-box span {
  padding: 10px 0;
}

.weather-box #weather-status {
  font-weight: bold;
  text-transform: capitalize;
}

/* Cookie box */
.cookie-wrapper {
  float: left;
  position: fixed;
  z-index: 100;
  bottom: 15px;
  left: 15px;
  background: var(--element-background);
  box-shadow: var(--box-shadow);
  max-width: 365px;
  border-radius: 15px;
  text-align: center;
  padding: 25px 25px 30px 25px;
}

#markdown-text h1,
h2,
h3,
h4,
h5,
h6 {
  padding-top: 1rem;
}

.cookie-wrapper img {
  max-width: 90px;
}

.cookie-wrapper .content {
  margin-top: 10px;
}

.cookie-wrapper .content header {
  font-size: 25px;
  font-weight: 600;
}

.cookie-wrapper .content p {
  font-size: 15px;
  color: var(--font-color);
  margin: 5px 0 20px 0;
}

.cookie-wrapper .content .buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-wrapper .content .buttons .item {
  font-size: 15px;
  margin: 0 10px;
}

.cookie-wrapper .content .buttons button {
  padding: 10px 20px;
  background: var(--button-background);
  transition: all 0.3s ease-in-out;
  color: var(--font-color);
  font-size: 16px;
  font-weight: bold;
  border: none;
  outline: none;
  border-radius: 5px;
}

.content .buttons button:hover {
  background: var(--button-hover);
  color: #fff;
}

/* Posts boxex */
.post-box {
  background: var(--element-background);
  border-radius: 15px;
  width: 100%;
  margin-top: 1rem;
}

.post-box .content {
  padding: 15px;
}

.post-box .content h3 {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

.post-box .content .icons {
  font-size: 15px;
}

.post-box .content p {
  text-align: left;
  font-size: 18px;
}

.post-box .content img {
  width: 60%;
  display: flex;
  height: auto;
}

/* Gallery */

.main_text .gallery {
  display: flex;
  flex-wrap: wrap;
}

.gallery .image {
  width: calc(100% / 4);
  padding: 7px;
}

.gallery span {
  display: flex;
  width: 100%;
  height: 30rem;
  overflow: hidden;
}

.gallery .image img {
  object-fit: cover;
  height: 15em;
  width: 100%;
  vertical-align: middle;
  background-blend-mode: normal;
  transition: all 0.3s ease;
}

.gallery .image:hover img {
  transform: scale(1.05);
}

.lb-caption {
  color: #fff;
  font-weight: bolder;
}

.carousel-control-prev,
.carousel-control-next {
  height: 80%;
  width: 10rem;
  z-index: 100;
}

.toast {
  font-size: 1rem;
  width: 300px;
  height: 90px;
  background-color: rgba(255, 255, 255);
}

.toast-body {
  font-size: 15px;
}

.toast-header {
  font-size: 20px;
  font-weight: 600;
}
/* Media queries */

@media (max-width: 840px) {
  #menu-btn {
    display: inline-block;
  }

  .header .navbar {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: var(--box-shadow);
    border-radius: 0.5rem;
    background: var(--element-background);
    z-index: 50;
  }

  .header .navbar.active {
    display: block;
  }

  .header .navbar a {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 2.5rem;
    display: block;
  }

  .header .navbar .dropdown {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 2.5rem;
    display: block;
  }

  .header .navbar .dropdown-menu {
    animation: none;
    background: transparent;
    border: none;
    transition: none;
    position: relative;
  }

  .gallery .image {
    width: calc(100% / 2);
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .socials {
    justify-content: center;
  }

  .carousel-item img {
    height: 25em;
  }

  p {
    font-size: 2rem;
  }

  .heading {
    font-size: 2.5rem;
  }

  .footer {
    z-index: 1;
    text-align: center;
  }

  .footer .box-container .box {
    margin: 2rem auto;
  }

  .gallery .image {
    width: 100%;
  }
}
