/*
 *  Kaskadove styly (css) pro http://lmkvalasskeklobouky.cz
 *
 *  Autor: Petr Pecha
 *
 *  2020, 2019, 2018, 2016, 2015, 2010, 2008
 *
 *  https://colorhunt.co/palette/151737 -- barevne schema
 *
 */

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

body {
  color: black;
  background-color: #f7b71d;
  margin: 0px;
}

a {
  color: #0000ff;
}

a:link, a:visited {
  color: #0000ff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
   text-decoration: underline;
}

h1 {
  color: #000044;
	font-family: sans;
	font-variant: small-caps;
}

h2{
	color: #000044;
  font-family: sans;
  font-variant: small-caps;
}

h3 {
	color: #000044;
	font-family: sans;
	font-variant: small-caps;
}

hr {
  color: #000044;
  background-color: #000044;
	width: 200px;
}

ul {
  margin: 5px;
}

.main-container{
	max-width: 1000px;
	margin: 3px auto 10px auto;

	border: solid;
	border-width: 1px;
	border-color: #b5b500;
	border-radius: 10px;

	background-color: #fdef96;
}

/* Hlavicka */

.header-container{
  display: flex;
	flex-direction: column;

}

.header-img-container{
  display: flex;
	order: 1;
}

.header-img-container img{
	display: block;
	width: 100%;
	height: auto;
	border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.header-menu-container {
  display: flex;
	order: 2;

  justify-content: space-around;
  align-items: stretch;

	padding: 0px 10px;

  background-color: #afa939;
  background: linear-gradient(#afa939, #3c680b);

  border-top: solid 0.5em #2b580c;
  border-bottom: solid 0.5em #2b580c;
}

.header-menu-title-container {
	display: flex;
	order: 3;
  align-items: center;
  font-size: 30px;
  font-family: Lucida Console, Arial;
  color: #fdef96;
}

.header-menu-menu-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
	flex-wrap: wrap;
	order: 1;
}

.header-menu-login-container {
  display: flex;
	order: 5;
	align-items: center;
}

.menu-item {
  margin: 2px;
	padding: 5px 3px;
	border: solid;
	border-width: 1px;
	border-radius: 2px;
	border-color: #2b580c;
}
  
.menu-item a {
	color: #ffffff;
	text-decoration: none;
}

.menu-item a:link a:visited {
  color: #ffffff;
}

.menu-item a:hover{
  color: #d6d600;
  font-weight: bold;
}

/* Main structure  */

.content-container {
  display: flex;
	flex-direction: row;
}

.content-container img {
  border-radius: 10px;
}

/* Titulni strana */

.content-main-container {
  display: flex;
	order: 3;
	flex-grow: 1;
	flex-direction: column;
	min-width: 0;
	overflow-wrap: break-word;

	margin: 10px;
}

.content-main-container img {
  max-width: min(500px, 100%);
  height: auto;
}

.podpis {
  text-align: right;
  color: #060;
  font-size: 80%;
  font-style: italic;
}

.content-side-container {
  display: flex;
	order: 5;
	flex-direction: column;
	justify-content: start;

	background-color: #afa939;

	padding: 5px;
	margin: 0px;
	min-width: 200px;
}

.content-leftside-container {
  display: flex;
	order: 1;
	flex-direction: column;
	justify-content: flex-start;

	background-color: #afa939;

	padding: 10px;
}

.content-list-container {
  display: flex;
	order: 2;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: flex-start;
}

.content-article-item {
  display: flex;
	flex-direction: column;
	text-align: center;
	justify-content: flex-start;
	flex-grow: 1;

	max-width: 200px;
	margin: 10px;
}

.content-article-item img {
	max-width: 200px;
	height: auto;
}

/* Paticka */

.footer-container {
  display: flex;
}

.footer-container img {
	display: block;
	width: 100%;
	height: auto;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
}

/* Article */

.article-title-img {
  display: flex;
  justify-content: center;
}

.article-links {
  display: flex;
  justify-content: center;
}

/* formatovani modelaru */

.modelar_jmeno {
  font-size: 1.25rem;
}
  

/* Galerie */

.galerie-container{
  display: flex;
	flex-direction: column;
	justify-content: center;
}

.galerie_top {
	display: flex;
	justify-content: right;
}

.galerie_top img {
  margin: 5px 5px 5px 5px;
  height: 100px;
}

.galerie {
	display: flex;
	justify-content: center;
}

.galerie_bot{
	display: flex;
	justify-content: left;
}

.galerie_bot img{
  margin: 5px 5px 5px 5px;
  height: 100px;
}

.galerie img {
  max-width: 100%;
}

/* Článek na stránce akce -- decentní rámeček oddělující články */

.clanek {
  border: 1px solid #b5b500;
  border-radius: 10px;
  background-color: #fef5b4;
  padding: 0 15px 5px 15px;
  margin: 20px 0;
}

/* .nahled musí být až za .clanek, aby jeho rámeček měl přednost */

/* Náhled -- akce/článek viditelný jen přihlášeným modelářům klubu,
 * a odkazy viditelné jen správcům (Upravit, Přidat článek, ...).
 * Společná výrazná žlutá barva: #e8a900 */

.nahled {
  position: relative;
  border: 4px dashed #e8a900;
  border-radius: 10px;
  padding: 26px 10px 10px 10px;
  margin: 10px 0;
}

.nahled::before {
  content: "Náhled";
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px 10px;
  background-color: #e8a900;
  color: #000044;
  font-family: sans;
  font-variant: small-caps;
  font-weight: bold;
  border-bottom-right-radius: 6px;
}

li.nahled {
  padding-top: 28px;
}

a.jen-spravce:link,
a.jen-spravce:visited {
  display: inline-block;
  border: 2px dashed #e8a900;
  border-radius: 6px;
  padding: 1px 8px;
  background-color: #fff6c0;
  color: #000044;
  font-family: sans;
  font-size: 1rem;
  font-variant: normal;
  font-weight: bold;
  vertical-align: middle;
}

li a.jen-spravce:link,
li a.jen-spravce:visited {
  font-size: 0.75rem;
  padding: 0 5px;
  border-width: 1px;
  margin-left: 4px;
}

a.jen-spravce:hover {
  background-color: #e8a900;
  text-decoration: none;
}

/* Tlačítko „Zveřejnit“ (formulář) ve stejném stylu jako odkazy správce */

form.zverejnit {
  display: inline;
}

button.jen-spravce {
  display: inline-block;
  border: 2px dashed #e8a900;
  border-radius: 6px;
  padding: 1px 8px;
  background-color: #e8a900;
  color: #000044;
  font-family: sans;
  font-size: 1rem;
  font-variant: normal;
  font-weight: bold;
  vertical-align: middle;
  cursor: pointer;
}

button.jen-spravce:hover {
  border-color: #000044;
}

/* Potvrzovací dialog (Ano / Ne) */

dialog.potvrzeni {
  max-width: min(450px, 90vw);
  border: 4px dashed #e8a900;
  border-radius: 10px;
  background-color: #fdef96;
  color: black;
}

dialog.potvrzeni::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}

.potvrzeni-tlacitka {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.potvrzeni-tlacitka button {
  padding: 6px 18px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.potvrzeni-ano {
  background-color: #2b580c;
  color: white;
  border: 1px solid #2b580c;
  border-radius: 4px;
}

/* Formuláře pro úpravy akcí a článků */

.formular fieldset {
  margin: 15px 0;
  border: 1px solid #b5b500;
  border-radius: 6px;
}

.formular legend {
  font-weight: bold;
  color: #000044;
}

.formular-pole {
  margin: 8px 0;
}

.formular-pole label {
  display: block;
  font-weight: bold;
}

.formular-pole input[type="text"],
.formular-pole input[type="url"],
.formular-pole input[type="date"],
.formular-pole input[type="file"],
.formular-pole select,
.formular-pole textarea {
  width: 100%;
  max-width: 600px;
  padding: 4px;
  font: inherit;
}

.formular-pole-checkbox label {
  display: inline;
}

.formular-pole ul {
  list-style: none;
  padding: 0;
}

.formular-pole ul label {
  display: inline;
  font-weight: normal;
}

.formular-radek {
  display: flex;
  flex-wrap: wrap;
  gap: 0 15px;
  border-top: 1px dotted #b5b500;
}

.formular-radek .formular-pole {
  flex: 1 1 250px;
}

.formular-napoveda {
  font-size: 85%;
  color: #444;
}

.formular-chyba,
.formular-chyba ul {
  color: #c00000;
  font-weight: bold;
}

.formular-pole-chyba input,
.formular-pole-chyba select {
  border: 2px solid #c00000;
}

.formular-tlacitka {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 15px 0;
}

.formular-tlacitka button {
  padding: 6px 20px;
  font: inherit;
  font-weight: bold;
}

/* Responzivita -- úzké obrazovky (mobily, malé tablety) */

@media (max-width: 760px) {
  .main-container {
    margin: 0;
    border-radius: 0;
  }

  .header-img-container img,
  .footer-container img {
    border-radius: 0;
  }

  .header-menu-container {
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px;
  }

  .header-menu-title-container {
    order: 0;
    width: 100%;
    justify-content: center;
    font-size: 22px;
  }

  .header-menu-menu-container {
    justify-content: center;
  }

  .content-container {
    flex-direction: column;
  }

  .content-side-container {
    order: 0;
    min-width: 0;
  }

  .znak-klubu {
    text-align: center;
  }

  .znak-klubu img {
    width: 90px;
  }

  .content-leftside-container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 14px;
  }

  .content-list-container {
    justify-content: center;
  }

  .content-main-container table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .galerie_top,
  .galerie_bot {
    flex-wrap: wrap;
    justify-content: center;
  }

  .galerie_top img,
  .galerie_bot img {
    height: 60px;
  }
}
