@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200;400&display=swap');

:root {
  --textColor: #555;
  --color2: rgb(255, 196, 87);
  --bgColor: white;
  --color3: #555;
  --color4: #ddd;
}

html {
  font-family: 'Raleway', sans-serif;
  color: var(--textColor);
  height: 99%;
}

body {
  margin: 0px;
  padding: 0px;
  background-color: var(--bgColor);
  height: 100%;
  transition: 0.5s;
}

#holder {
  min-height: 100%;
  position: relative;

}

#body {
  padding-bottom: 80px;
}

footer {
  z-index: 100;
  height: 80px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
}

/* SEARCH BAR MAIN */
#searchButton {
  position: absolute;
  top: 10px;
  right: 70px;
}

#toggleSearch {
  width: 30px;
  color: var(--textColor);
  cursor: pointer;
  transition: 0.5s;
}

#toggleSearch:hover {
  color: var(--color2);
}

.search-container {
  width: 100%;
  position: absolute;
  top: 60;
  left: -100%;
  /* Start hidden off-screen */
  background-color: var(--bgColor);
  z-index: 10000;
  transition: 0.5s;
  transition: left 0.5s ease;
}

.search-container.show {
  left: 0;
  transition: 0.5s;
  /* Move on-screen */
}

#searchForm.hidden {
  display: none;
}

#searchInput {
  width: 97%;
  height: 26px;
  background-color: var(--bgColor);
  color: var(--textColor);
  background-image: url('search.png');
  background-position: 10px 12.5px;
  background-repeat: no-repeat;
  background-size: 25px 25px;
  font-size: 16px;
  padding: 12px 0 12px 40px;
  border: 0;
  margin-left: 0px;
  outline: none;
  overflow-x: hidden;
  transition: 0.5s;
}

.autocomplete-results {
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  border-bottom: var(--color2) 1px solid;
}

.autocomplete-item {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-item:hover {
  color: var(--color2)
}

.autocomplete-item mark {
  font-weight: bold;
  background-color: var(--bgColor);
  color: var(--color2);

}

.fa-close {
  position: absolute;
  top: 12px;
  right: 10px;
  color: var(--color4);
  cursor: pointer;
  transition: 0.5s;
}

.fa-close:hover {
  color: var(--color2);
}

/*O NÁS*/

#oNas {
  border-left: var(--color2) 3px solid;
  border-right: var(--color2) 3px solid;
  border-top: 0;
  border-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 25px;
  width: 50%;
  height: 70vh;
  overflow: auto;
}

@media screen and (max-width: 1000px) {
  #oNas {
    width: 90%;
  }
}

#textONas {
  padding-left: 20px;
  padding-right: 20px;
  overflow: auto;

}

.odstavec {
  padding-bottom: 20px;
  margin-top: -15px;
}

h1 {
  color: var(--color2);
}

.accordion {
  background-color: var(--bgColor);
  color: var(--textColor);
  cursor: pointer;
  padding-bottom: 18px;
  padding-top: 18px;
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: var(--color2) 1px solid;
  text-align: left;
  font-size: 16px;
  font-weight: bold;
  transition: 0.5s; /* sladěno se zbytkem stránky (viz body { transition: 0.5s }) --
                        stejný důvod jako u .yearSelectBtn / .vyhodnoceniSwitchBtn. */
}

.activeFAQ,
.accordion:hover {
  color: var(--color2);
}

.panel {
  padding: 0 5px;
  margin-top: -20px;
  display: none;
  overflow: hidden;
  font-size: 16px;
}

.firstAccordion {
  margin-top: -20px;
  border: 0;
}

.accordion:after {
  content: '\002B';
  color: var(--textColor);
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.accordion:hover::after {
  color: var(--color2);
}

.activeFAQ:after {
  content: "\2212";
  color: var(--color2);
}

.columns {
  display: flex;
}

@media screen and (max-width: 1000px) {
  .columns {
    display: block;
    width: 100%;
  }
}

.column {
  flex: 1;
  margin: 5px;
  border: 0;
  border-collapse: collapse;
}

.column tr:hover {
  color: var(--color2);
  text-decoration: underline;
  cursor: pointer;
}

#searchInputObec {
  width: 97%;
  height: 26px;
  background-color: var(--bgColor);
  color: var(--textColor);
  background-image: url('search.png');
  background-position: 10px 12.5px;
  background-repeat: no-repeat;
  background-size: 25px 25px;
  font-size: 16px;
  padding: 12px 0 12px 40px;
  border: 0;
  border-bottom: var(--color2) 1px solid;
  margin-left: 0px;
  outline: none;
  overflow-x: hidden;
  transition: 0.5s;
}

.hidden {
  display: none;
}

/*VYHODNOCENI*/

#vyhodnoceni {
  display: none;
  cursor: default;
  text-align: center;
}

.vyhodnoceniLayout {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
}

.vyhodnoceniPrehled {
  position: relative;
  z-index: 2;
  display: block;
  width: 70vh;
  height: 70vh;
  max-width: 1000px;
  max-height: 1000px;
  margin: 0;
  box-shadow: 0px 0px 25px var(--color4);
  border-radius: 3%;
  /*padding: 15px;*/
  padding: 1%;
  font-size: 1.75vh;

}

/*@media screen and (max-height: 900px) and (orientation: landscape) {
  .vyhodnoceniPrehled {
    font-size: 11px;
  }
}*/

@media screen and (max-width: 750px) and (orientation: portrait) {
  .vyhodnoceniPrehled {
    width: 90vw;
    height: 90vw;
  }
}

/*@media screen and (max-width: 700px) and (orientation: portrait) {
  .vyhodnoceniPrehled {
    font-size: 11px;
  }
}*/

.tabulkyVyhodnoceni-container {
  display: flex;
  height: 92%;
  width: 100%;
}

.vyhodnoceniTitle {
  text-align: center;
  color: var(--color2);
  font-size: 1.4em;
  font-weight: bold;
}

/* Výběr ročníku uvnitř nadpisu "Piva - <rok>" by měl vypadat jako plynulé
   pokračování textu (jako v původním webu), ne jako samostatné tlačítko
   s vlastním pozadím a širokým min-width - jinak to vypadá rozhozeně. */
.vyhodnoceniTitle .yearSelectBtn {
  min-width: 0;
  background-color: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  padding: 0 2px;
  gap: 6px;
}

.vyhodnoceniTitle .yearSelectBtn:hover,
.vyhodnoceniTitle .yearSelect.open .yearSelectBtn {
  background-color: transparent;
}

.vyhodnoceniTitle .yearSelectBtn i {
  font-size: 0.55em;
}


/* Přepínač Piva / Pivovarské hospody - pilulka zaoblená jen nahoře, jejíž
   spodek mírně zajíždí pod čtverec s vyhodnocením (schovaný za jeho horní
   hranou), takže to vypadá jako by z něj pilulka vyrůstala. Výška zůstává
   stejná jako u předchozí "prostý text" varianty. */
.vyhodnoceniSwitch {
  display: flex;
  gap: 2px;
  width: fit-content;
  background-color: transparent;
  border-radius: 14px 14px 0 0;
  padding: 3px 3px 0 3px;
  position: relative;
  z-index: 1;
  margin-bottom: 6px;
}

.vyhodnoceniSwitchBtn {
  box-sizing: border-box;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 11px 11px 0 0;
  background-color: transparent;
  color: var(--textColor);
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: bold;
  padding: 0 14px;
  /* Obě tlačítka mají stejnou (pevnou) šířku podle toho delšího textu, aby
     přepínač jako celek vypadal symetricky a pěkně vycentrovaně. */
  min-width: 158px;
  cursor: pointer;
  transition: 0.5s; /* sladěno se zbytkem stránky (viz body { transition: 0.5s }) --
                        jinak přepínač piva/pivovarské hospody při nightmode
                        přepnutí zbarví dřív, než doběhne fade zbytku stránky. */
  white-space: nowrap;
  opacity: 0.55;
}

.vyhodnoceniSwitchBtn:hover {
  color: var(--color2);
  opacity: 0.85;
}

.vyhodnoceniSwitchBtn.active {
  background-color: var(--bgColor);
  color: var(--color2);
  opacity: 1;
}

@media screen and (max-width: 500px) {
  .vyhodnoceniSwitchBtn {
    padding: 0 10px;
    font-size: 12px;
    min-width: 132px;
  }
}

.tabulkaVyhodnoceni-container {
  flex: 1;
  margin: 1%;
}

.divider {
  width: 3px;
  background-color: var(--color2);
  margin: 2% 0 10% 0;
}

.tabulkaVyhodnoceni {
  width: 100%;
  border-collapse: collapse;
  height: 100%;
}

.tabulkaVyhodnoceni td {

  padding-left: 5px;
  padding-right: 5px;
}

.vyhodnoceniImg {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 10%;
}

#vyhodnoceniPrehledPivo {
  display: block;
}


#tabulkaVyhodnoceniPivo1 td {
  text-align: left;
}

#tabulkaVyhodnoceniPivo1 tbody {
  counter-reset: rowNumber;
}

#tabulkaVyhodnoceniPivo1 tbody tr {
  counter-increment: rowNumber;
}

#tabulkaVyhodnoceniPivo1 tbody tr td:first-child::before {
  content: counter(rowNumber)".     ";
  font-size: 1.8em;
  min-width: 0.5em;
}

#tabulkaVyhodnoceniPivo1 tbody tr td:first-child {
  width: 0.5em;
  white-space: nowrap;
}


#tabulkaVyhodnoceniPivo2 td {
  text-align: center;
}

#tabulkaVyhodnoceniPivo2 p {
  font-size: 0.5em;
}

#tabulkaVyhodnoceniPivo2 tr:not(:first-child) {
  border-top: 1px solid var(--color4);
}

/*--------------------*/
#vyhodnoceniPrehledPivovar {
  display: none;
}

#tabulkaVyhodnoceniPivovar1 td {
  text-align: left;
}

#tabulkaVyhodnoceniPivovar1 tbody {
  counter-reset: rowNumber;
}

#tabulkaVyhodnoceniPivovar1 tbody tr {
  counter-increment: rowNumber;
}

#tabulkaVyhodnoceniPivovar1 tbody tr td:first-child::before {
  content: counter(rowNumber)".";
  font-size: 1.8em;
  min-width: 0.5em;
}

#tabulkaVyhodnoceniPivovar1 tbody tr td:first-child {
  width: 0.5em;
  white-space: nowrap;
}

#tabulkaVyhodnoceniPivovar2 td {
  text-align: center;
}

#tabulkaVyhodnoceniPivovar2 p {
  font-size: 0.5em;
}

#tabulkaVyhodnoceniPivovar2 tr:not(:first-child) {
  border-top: 1px solid var(--color4);
}

.pre-data {
  /*font-size: 20px;*/
  font-size: 0.9em;
}

.first-data {
  /*font-size: 20px;*/
  font-size: 1em;
  cursor: pointer;
}

.second-data {
  font-size: 0.7em;
}

.dropbtnRok {
  font-size: 1em;
  border: none;
  cursor: pointer;
}

.dropdownRok {
  position: relative;
  display: inline-block;
}



.dropdown-contentRok {
  display: none;
  position: absolute;
  background-color: var(--bgColor);
  font-size: 0.7em;
  color: var(--textColor);
  min-width: 160px;
  z-index: 1000;
  cursor: pointer;
  border-bottom: 1px solid var(--color4);
  ;
}

.dropdown-contentRok span {
  padding: 12px 16px;
  text-align: left;
  text-decoration: none;
  display: block;
}

.dropdown-contentRok span:hover {
  color: var(--color2);
}

.showDropdown {
  display: block;
}

/*.dropdownRok:hover .dropdown-contentRok {
  display: block;
}
*/
/*PIVO*/

#Pivo {
  display: none;
}

/*PIVOVAR*/

#Pivovar {
  display: none;
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* LOGO & HOMESCREEN */
.wrapper {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--bgColor);
  clip-path: circle(0px at 50% 50%);
  transition: all 0.5s ease-in-out;
}

#activeLogo:checked~.wrapper {
  clip-path: circle(75%);
}

#activeLogo {
  display: none;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 2000px;
  max-height: 2000px;
}

@media screen and (orientation: landscape) {
  .logo {
    height: 70%;
  }
}

@media screen and (orientation: portrait) {
  .logo {
    width: 70%;
  }
}

.logoSmall {
  position: absolute;
  top: 0px;
  left: 10px;
  width: 50px;
  cursor: pointer;
}



.menuIconContainer {
  position: absolute;
  top: 0px;
  left: 60px;
  width: 50px;
  height: 50px;
  display: inline-block;
  cursor: pointer;
}

.bar1,
.bar2,
.bar3 {
  width: 35px;
  height: 5px;
  background-color: var(--textColor);
  margin-left: auto;
  margin-right: auto;
  margin-top: 8.75px;
  border-radius: 2.5px;
  transition: 0.5s;
}

.menuIconContainer:hover .bar1,
.menuIconContainer:hover .bar2,
.menuIconContainer:hover .bar3 {
  background-color: var(--color2);
}

.change .bar1 {
  transform: translate(0, 13px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -13px) rotate(45deg);
}



/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* OVERLAY MENU */

.overlay {
  height: calc(100% - 61px);
  width: 0;
  position: absolute;
  z-index: 10;
  top: 60px;
  left: 0;
  background-color: var(--bgColor);
  overflow-x: hidden;
  transition: 0.5s;
  border-top: var(--color2) 1px solid;
}

.overlay-content {
  position: relative;
  top: 25%;
  width: 100%;
  text-align: center;
  margin-top: 30px;
}

.overlay a {
  display: block;
}

.overlay span {
  padding-top: 10px;
  text-decoration: none;
  font-size: 36px;
  color: var(--textColor);
  white-space: nowrap;
  transition: 0.5s; /* sladěno se zbytkem stránky (viz body { transition: 0.5s }) --
                        stejný důvod jako u .yearSelectBtn / .vyhodnoceniSwitchBtn. */
  cursor: pointer;
}

.overlay span:hover,
.overlay span:focus {
  color: var(--color2);
}

@media screen and (max-height: 450px) {
  .overlay span {
    font-size: 20px
  }
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* HEADER BUTTONS */

.header {
  display: flex;
  margin-top: 10px;
  width: 100%;
  height: 50px;
}

.tableSwitch {
  width: calc(100% - 140px);
  height: 100%;
  display: flex;
  border-collapse: collapse;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
}

.title {
  height: 50px;
  width: 100%;
  line-height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

@media screen and (min-width: 550px) {
  .title::after {
    content: " - Sedm Pivních Dobrodruhů";
  }
}

.buttonSwitch {
  height: 50px;
  width: 50%;
  line-height: 50px;
  text-align: center;
  transition: 0.5s;
  border-right: var(--color2) 1px solid;
  border-left: var(--color2) 1px solid;
}

.buttonSwitch:hover {
  color: var(--color2);
  font-size: 25px;
  font-weight: bolder;
}

.activePage {
  color: var(--color2);
  font-size: 25px;
  font-weight: bolder;
  width: 200%;
}

span {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* NIGHTMODE SWITCH */

#nightMode {
  position: absolute;
  top: 0px;
  right: 10px;
}

.switchMode {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 34px;
}

.switchMode .switchSlider {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color4);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--bgColor);
  /* Krygl světlého piva - v kruhu přepínače pro světlý režim (podle piva.png). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5,9 a3.4,3.6 0 0 1 0,8' fill='none' stroke='%23f5c14d' stroke-width='1.8' stroke-linecap='round'/%3E%3Crect x='4' y='8' width='11.5' height='12.5' rx='1.3' fill='%23f5c14d'/%3E%3Crect x='6.2' y='10.3' width='1.2' height='8.2' rx='0.6' fill='%23fdf6e3' opacity='0.55'/%3E%3Cpath d='M4.6,7.6 Q4.2,5.3 6.3,5 Q6.6,3.3 8.6,3.7 Q9.6,2.6 11,3.4 Q12.3,2.5 13.4,3.7 Q15.3,3.4 15.6,5.3 Q17,5.7 16.6,7.7 Q16.6,8.3 15.7,8.3 L5.4,8.3 Q4.6,8.3 4.6,7.6 Z' fill='%23fdf6e3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 19px 19px;
  -webkit-transition: .4s;
  transition: .4s;
}

.switchSlider:checked+.slider {
  background-color: var(--color4);
}

.switchSlider:checked+.slider:before {
  -webkit-transform: translateX(16px);
  -ms-transform: translateX(16px);
  transform: translateX(16px);
  /* Krygl tmavého piva - v kruhu přepínače pro tmavý (night) režim (podle piva.png). */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5,9 a3.4,3.6 0 0 1 0,8' fill='none' stroke='%235c3a21' stroke-width='1.8' stroke-linecap='round'/%3E%3Crect x='4' y='8' width='11.5' height='12.5' rx='1.3' fill='%235c3a21'/%3E%3Crect x='6.2' y='10.3' width='1.2' height='8.2' rx='0.6' fill='%238a5a35' opacity='0.55'/%3E%3Cpath d='M4.6,7.6 Q4.2,5.3 6.3,5 Q6.6,3.3 8.6,3.7 Q9.6,2.6 11,3.4 Q12.3,2.5 13.4,3.7 Q15.3,3.4 15.6,5.3 Q17,5.7 16.6,7.7 Q16.6,8.3 15.7,8.3 L5.4,8.3 Q4.6,8.3 4.6,7.6 Z' fill='%23fdf6e3'/%3E%3C/svg%3E");
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* Tooltip*/
.tooltipTextBoxWrap {
  position: relative;
  margin-top: -20px;
  margin-bottom: 40px;
}

.tooltipTextBox {
  visibility: hidden;
  overflow-x: hidden;
  background-color: var(--color3);
  border-radius: 5px;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  text-align: center;

  position: absolute;
  z-index: 1;
  top: 100%;
  left: 25%;
}

@media screen and (max-width: 1000px) {
  .tooltipTextBox {
    width: 90%;
    left: 5%;
  }
}

@media screen and (max-width: 600px) {
  .tooltipTextBox {
    display: flex;
    flex-wrap: wrap;
  }
}

.tooltipText {
  padding: 5px;
  color: var(--bgColor);
}



/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* Filtry*/

.divFiltry {
  display: block;
  overflow: visible;
  border-left: var(--color2) 3px solid;
  border-right: var(--color2) 3px solid;
  border-top: 0;
  border-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 25px;
  width: 50%;
}

#divFiltryPivo,
#divFiltryPivovar {
  display: flex;
  align-items: stretch;
}

@media screen and (max-width: 1000px) {
  .divFiltry {
    width: 90%;
  }
}

@media screen and (max-width: 600px) {
  .divFiltry {
    display: flex;
    flex-wrap: wrap;
  }
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* SEARCH BOX */
.divFiltry .form {
  position: relative;
  flex: 1;
  min-width: 0;
}

@media screen and (max-width: 600px) {
  .divFiltry .form {
    flex: 1 1 100%;
  }
}

.searchBox {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  background-color: var(--bgColor);
  color: var(--textColor);
  background-image: url('search.png');
  background-position: 10px 12.5px;
  background-repeat: no-repeat;
  background-size: 25px 25px;
  font-size: 16px;
  padding: 12px 36px 12px 40px;
  border-left: 0;
  border-right: var(--color2) 1px solid;
  border-top: 0;
  border-bottom: 0;
  margin-left: 0px;
  outline: none;
  overflow-x: hidden;
  transition: 0.5s;
}

@media screen and (max-width: 600px) {
  .searchBox {
    width: calc(100% - 40px);
    overflow-x: hidden;
    border-right: 0;
  }
}

.searchClear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--textColor);
  font-size: 22px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.searchClear.visible {
  opacity: 0.55;
  visibility: visible;
}

.searchClear:hover {
  opacity: 1;
}

.searchBox select,
textarea {
  color: var(--textColor);
}

textarea:focus,
input:focus {
  color: var(--textColor);
}

::placeholder {
  color: var(--textColor);
  opacity: 1;
  /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--textColor);
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--textColor);
}

.searchBox-search-input {
  color: var(--textColor);
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* Navigation / rocnik (year) selector */
.yearBar {
  display: flex;
  align-items: center;
  margin-left: auto;
}

@media screen and (max-width: 600px) {
  .yearBar {
    width: 100%;
    margin-top: 10px;
    padding-left: 0;
  }
}

.yearSelect {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.yearBar .yearSelect {
  width: 100%;
  height: 100%;
}

.yearBar .yearSelectBtn {
  width: 100%;
  height: 100%;
}

.yearSelectBtn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 170px;
  background-color: var(--bgColor);
  color: var(--color2);
  border: none;
  border-radius: 0;
  padding: 10px 18px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s; /* sladěno se zbytkem stránky (viz body { transition: 0.5s }) --
                        jinak přepínač ročníku při nightmode přepnutí zbarví
                        dřív, než doběhne fade zbytku stránky. */
  white-space: nowrap;
}

.yearSelectBtn:hover,
.yearSelectBtn:focus-visible,
.yearSelect.open .yearSelectBtn {
  background-color: var(--bgColor);
  color: var(--color2);
  opacity: 0.75;
  outline: none;
}

.yearSelectBtn i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.yearSelect.open .yearSelectBtn i {
  transform: rotate(180deg);
}

.yearSelectList {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  max-height: 320px;
  overflow-y: auto;
  background-color: var(--bgColor);
  border: 1px solid var(--color4);
  border-radius: 0;
  box-shadow: 0px 5px 25px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.2s ease;
}

@media screen and (max-width: 600px) {
  .yearSelectList {
    left: 0;
    right: 0;
    min-width: 0;
  }
}

.yearSelect.open .yearSelectList {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.yearSelectList li {
  padding: 10px 14px;
  border-radius: 0;
  cursor: pointer;
  font-size: 15px;
  white-space: nowrap;
  transition: 0.15s;
}

.yearSelectList li:hover,
.yearSelectList li.active {
  background-color: var(--color2);
  color: var(--bgColor);
}

.yearSelectList li.yearSelectExtra {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--color4);
}

.trasaBar {
  width: 50%;
  margin: -15px auto 20px auto;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: 0.65;
  font-style: italic;
  padding: 0 5px;
}

@media screen and (max-width: 1000px) {
  .trasaBar {
    width: 90%;
  }
}

/* Full table column toggle (replaces inline-style based show/hide) */
table.tabulkaPivo.fullTable td:nth-child(5),
table.tabulkaPivo.fullTable td:nth-child(6),
table.tabulkaPivo.fullTable td:nth-child(7),
table.tabulkaPivo.fullTable td:nth-child(8),
table.tabulkaPivo.fullTable th:nth-child(5),
table.tabulkaPivo.fullTable th:nth-child(6),
table.tabulkaPivo.fullTable th:nth-child(7),
table.tabulkaPivo.fullTable th:nth-child(8) {
  display: table-cell;
}

table.tabulkaPivovar.fullTable td:nth-child(4),
table.tabulkaPivovar.fullTable td:nth-child(5),
table.tabulkaPivovar.fullTable td:nth-child(6),
table.tabulkaPivovar.fullTable td:nth-child(7),
table.tabulkaPivovar.fullTable td:nth-child(8),
table.tabulkaPivovar.fullTable th:nth-child(4),
table.tabulkaPivovar.fullTable th:nth-child(5),
table.tabulkaPivovar.fullTable th:nth-child(6),
table.tabulkaPivovar.fullTable th:nth-child(7),
table.tabulkaPivovar.fullTable th:nth-child(8) {
  display: table-cell;
}

/* Loading state while the SQLite database is being fetched */
.loadingState {
  text-align: center;
  padding: 60px 15px;
  color: var(--color4);
  font-style: italic;
  font-size: 15px;
}

.loadingState i {
  display: block;
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--color2);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* ADVANCED SETTINGS */

.advanced {
  display: none;
  margin-bottom: 5px;
  border-left: 0;
  border-right: 0;
}

.filtryAdvanced {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  justify-content: center;
}

.filterCheckbox {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 15.8px;
  padding-bottom: 15.8px;
  cursor: pointer;
}

.showFiltry {
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  text-align: center;
}

#zobrazitFiltryPivo {
  display: block;
  cursor: pointer;
}

#schovatFiltryPivo {
  display: none;
  cursor: pointer;
}

#zobrazitFiltryPivovar {
  display: block;
  cursor: pointer;
}

#schovatFiltryPivovar {
  display: none;
  cursor: pointer;
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* CHECKBOXY */

.checkboxLabel {
  font-size: 16px;
  line-height: 1;
  display: grid;
  grid-template-columns: 15px auto;
  gap: 15px;
}

input[type="checkbox"] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  appearance: none;
  /* For iOS < 15 */
  background-color: var(--form-background);
  /* Not removed via appearance */
  margin: 0;

  font: inherit;
  color: var(--color2);
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  background-color: var(--color2);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:disabled {
  --form-control-color: var(--form-control-disabled);

  color: var(--form-control-disabled);
  cursor: not-allowed;
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* MAIN TABLE */

.divTabulkaHlavni {
  border-left: var(--color2) 3px solid;
  border-right: var(--color2) 3px solid;
  border-top: 0;
  border-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  margin-top: 25px;
  margin-bottom: 25px;
  width: 50%;
  display: none;
}

@media screen and (max-width: 1000px) {
  .divTabulkaHlavni {
    width: 90%;
  }
}

.hlavniTabulka {
  text-align: left;
  display: block;
  overflow: auto;
  height: 60vh;
  border-collapse: collapse;
  margin-left: 5px;
  margin-right: 5px;
}

table.hlavniTabulka thead tr th {
  width: 100%;
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--color2);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--bgColor);
  padding: 15px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.5s;
  /* Spodní linka hlavičky přes box-shadow (ne border/::before overlay) -
     box-shadow se vždy vykreslí spolu s boxem samotným, takže u sticky
     buněk nemůže dojít k tomu, že Chrome po velké změně v tbody (např.
     řazení "Všechny" tabulky) překreslí box, ale zapomene na oddělenou
     absolutně pozicovanou vrstvu s linkou. */
  box-shadow: inset 0 -1px 0 0 var(--color2);
}

table.hlavniTabulka tbody tr:not(:first-child) {
  font-size: 15px;

  border-top: 1px solid var(--color4);

}

table.hlavniTabulka tbody tr:hover {
  color: var(--color2);
}

table.hlavniTabulka td:not(.clickableTd) {
  padding: 15px;
  cursor: default;
}

.clickableTd {
  padding: 15px;
}

.clickableTd:hover {
  text-decoration: underline;
  cursor: pointer;
}

.clickableSpan:hover {
  text-decoration: underline;
  cursor: pointer;
}

table.tabulkaPivo td:nth-child(5),
table.tabulkaPivo td:nth-child(6),
table.tabulkaPivo td:nth-child(7),
table.tabulkaPivo td:nth-child(8) {
  display: none
}

table.tabulkaPivo th:nth-child(5),
table.tabulkaPivo th:nth-child(6),
table.tabulkaPivo th:nth-child(7),
table.tabulkaPivo th:nth-child(8) {
  display: none
}

table.tabulkaPivovar td:nth-child(4),
table.tabulkaPivovar td:nth-child(5),
table.tabulkaPivovar td:nth-child(6),
table.tabulkaPivovar td:nth-child(7),
table.tabulkaPivovar td:nth-child(8) {
  display: none
}

table.tabulkaPivovar th:nth-child(4),
table.tabulkaPivovar th:nth-child(5),
table.tabulkaPivovar th:nth-child(6),
table.tabulkaPivovar th:nth-child(7),
table.tabulkaPivovar th:nth-child(8) {
  display: none
}

table.hlavniTabulka tbody {
  counter-reset: rowNumber;
}

table.hlavniTabulka tbody tr {
  counter-increment: rowNumber;
}

table.hlavniTabulka tbody tr td:first-child::before {
  content: counter(rowNumber)".";
  min-width: 1em;
  margin-right: 0.5em;
}

/* DISKVALIFIKOVANO */
.DNF {
  background: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(255, 0, 0, 0.15) 8px, rgba(255, 0, 0, 0.15) 15px);
  /*background-color: rgba(255, 0, 0, 0.1);*/
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* SCROLLBAR */

/* width */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: rgba(255, 196, 87, 0);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--color4);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--color3);
}

/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* SOCIAL MEDIA */

#instagram {
  color: var(--color2);
  height: 50px;
  width: 50px;
  font-size: 50px;
  vertical-align: middle;
}

#facebook {
  color: var(--color2);
  height: 50px;
  width: 50px;
  font-size: 50px;
  vertical-align: middle;
}

#instagram:hover {

  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -moz-background-clip: text;
  -moz-text-fill-color: transparent;

}

@media screen and (max-width: 1000px) {
  #instagram:hover {
    color: var(--color2);
  }
}

#facebook:hover {
  color: #1877f2;
}

@media screen and (max-width: 1000px) {
  #facebook:hover {
    color: var(--color2);
  }
}

#socialMedia {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.tabulkaSocial {
  margin-left: auto;
  margin-right: auto;
}

.tabulkaSocial td {
  padding-left: 20px;
  padding-right: 20px;
}


/*------------------------------------------------------------------------------------------------------------------------------------------------*/
/* SLIDE UP & FADE IN */
.slide-up-fade-in {
  animation: slide-up-fade-in ease 1s;
  animation-iteration-count: 1;
  transform-origin: 50% 50%;
  animation-fill-mode: forwards;
  /*when the spec is finished*/
  -webkit-animation: slide-up-fade-in ease 1s;
  -webkit-animation-iteration-count: 1;
  -webkit-transform-origin: 50% 50%;
  -webkit-animation-fill-mode: forwards;
  /*Chrome 16+, Safari 4+*/
  -moz-animation: slide-up-fade-in ease 1s;
  -moz-animation-iteration-count: 1;
  -moz-transform-origin: 50% 50%;
  -moz-animation-fill-mode: forwards;
  /*FF 5+*/
  -o-animation: slide-up-fade-in ease 1s;
  -o-animation-iteration-count: 1;
  -o-transform-origin: 50% 50%;
  -o-animation-fill-mode: forwards;
  /*Not implemented yet*/
  -ms-animation: slide-up-fade-in ease 1s;
  -ms-animation-iteration-count: 1;
  -ms-transform-origin: 50% 50%;
  -ms-animation-fill-mode: forwards;
  /*IE 10+*/

  opacity: 0;
  opacity: 1\9;

}

@keyframes slide-up-fade-in {
  0% {
    opacity: 0;
    transform: translate(0px, 40px);
  }

  100% {
    opacity: 1;
    transform: translate(0px, 0px);
  }
}

@-moz-keyframes slide-up-fade-in {
  0% {
    opacity: 0;
    -moz-transform: translate(0px, 40px);
  }

  100% {
    opacity: 1;
    -moz-transform: translate(0px, 0px);
  }
}

@-webkit-keyframes slide-up-fade-in {
  0% {
    opacity: 0;
    -webkit-transform: translate(0px, 40px);
  }

  100% {
    opacity: 1;
    -webkit-transform: translate(0px, 0px);
  }
}

@-o-keyframes slide-up-fade-in {
  0% {
    opacity: 0;
    -o-transform: translate(0px, 40px);
  }

  100% {
    opacity: 1;
    -o-transform: translate(0px, 0px);
  }
}

@-ms-keyframes slide-up-fade-in {
  0% {
    opacity: 0;
    -ms-transform: translate(0px, 40px);
  }

  100% {
    opacity: 1;
    -ms-transform: translate(0px, 0px);
  }
}