/* CSS Document by Rius */
body {
  color: black;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background: url(/skin/green/engine/body-bg.png) left top;
  background-color: #FFFFE6;
  margin: 0;
  text-align: center;
  background-repeat: repeat-x;
  background-position-y: -40px;
}

#admin_menu .ul {  list-style: none; }
#uprava_menu { padding: 0 10px 0 10px; }
#uprava_menu ul {  margin: 0 0 2px 0; _margin: 0; padding: 5px 0 12px 20px; border: 2px solid #62b245; background-color:rgb(208,255,208); }
#uprava_menu ul ul { border-right: 0; }
#uprava_menu li  { background-color: #62b245; }

#logo h1, .none {
  display: none;
}


.hide { height: 5px; z-index: -5;  }

a {
  color: green;
  /* text-decoration: underline; */
}

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  color: #E77575;
  font-family: 'Trebuchet MS', Tahoma, Verdana, Arial, serif;
}

h1 {
  font-size: 180%;
}

h2 {
}

h3, h5 {
  font-size: 140%;
}

h5{
  text-align: center;
  margin-top: 10px;
}

caption {
  font-weight: bold;
  margin: 0 0 5px 0;
}

img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.div {
  border: 1px dashed red;
}

.center {
  text-align: center;
}

#hlavni {
  max-width: 960px;
  width: 100%;
  box-sizing: border-box;
  margin: auto;
  background-color: white;
  text-align: left;
}

.chyba {
  text-align: center;
  margin: 30px;
  font-size: 90%;
}

/* vrsek - obsah nad logem */
#vrsek {
  width: 100%;
  height: 14px;
  background: url('engine/pozadi_vrsek.gif') left bottom repeat-x;
}


/* logo */
#logo {
  width: 100%;
  height: clamp(120px, 20vw, 200px);
  background-color: #f0f0f5;
  background-size: cover;
  background-position: center top;
  /* background: transparent url('engine/pozadi_logo.gif') left top repeat-x; */
  /*background: url(engine/header.jpg) left top no-repeat;*/
  /*background: url(engine/header_zima.jpg) left top no-repeat; */ /* _zima2.jpg */
  margin: 0 0 0px 0;
}

#logo .skola {
  width: 223px;
  height: 126px;
  float: right;
  background: url('engine/skola.gif') left top no-repeat;
}

#logo .vlajka {
  width: 120px;
  height: 126px;
  float: left;
  background: url('engine/vlajka.gif') left center no-repeat;
  margin: 0 0 0 20px;
}

#logo .nazev {
  float: left;
  width: 268px;
  height: 126px;
  margin: 0 0 0 170px;
  background: url('engine/nazev.gif') left center no-repeat;
}

/* menu */
#menu {
  height: 50px;
  background-color: #5A5677;
}

#menu a {
  font-size: 13px;
  float: left;
  padding: 17px 28px;
  text-decoration: none;
  color: #c3c1d0;
  font-weight: normal;
  letter-spacing: 1px;
  border-left: 1px solid #ffffff0d;
}

#menu .menu-prvni {
  float: left;
}

#menu .selected {
  color: #ffffff;
  background-color: #ffffff1f;
}

#menu a:hover, #menu #selected:hover {
  color: #ffffff;
  background: #ffffff0d;
  cursor: pointer;
}

#menu .menu-prvni:hover, #menu .menu-prvni-selected:hover, #menu .selected:hover {
  cursor: pointer;
}

#menu .menu-prvni-selected {
  float: left;
  margin: 0px 0px 0 80px;
  background: url('engine/menu_button_selected.gif') left top repeat-x;
  color: green;
}


/* obsah pod menu */
#menu-spodek {
  width: 100%;
  height: 5px;
  background: url('engine/menu_spodek.gif') left top repeat-x;
  display: none;
}

/* levy menu */
#spodek {
  width: 100%;
  display: flex;
  align-items: flex-start;
  background: #FFFFE6;
}

#menu-left {
  float: left;
  width: 170px;
}

.menu-left, #menu-user {
  width: 220px;
  flex-shrink: 0;
  color: #505050;
  background-color: #FFFFE6;
  height: 100%;
  padding: 0 0 30px;
}

#menu-user {
  margin-top: 10px;
}

.menu-left a, #menu-user a {
  color: #505050;
  font-size: 13px;
  text-decoration: none;
}

.menu-left .prazdne {
  font-size: 73%;
  text-align: center;
  margin: 30px 0 0 0;
}

.menu-left a:hover, #menu-user a:hover {
  color: #ff7676;
}

.menu-left h3, #menu-user h4 {
  font-size: 17px;
  margin: 20px 0px 0px;
}

.menu-left ul {
  padding: 0px 0px 10px 0px;
  list-style: none;
  padding-left: 0;
  /*border-bottom: 1px solid #dadada; */
}

.menu-left li {
  background-image: url('engine/menu_sipka.gif');
  background-repeat: no-repeat;
  background-position: 0 0.75em;
  font-size: 14pt;
  padding: 2px 0px 2px 14px;
}

.menu-left li li {
  padding-left: 10px;
  background: url(engine/odrazka.png) left 0.7em no-repeat;
  background-repeat: no-repeat;
  background-position: 0 .6em;
  margin-top: 1px;
}



.menu-left .text {
  font-size: 80%;
  margin: 0;
  padding: 2px 0 0 0;
}

.menu-left ul ul {
  margin: 0;
  list-style: none;
  padding-left: 0;
}


/* obsah */
#obsah {
  flex: 1;
  min-width: 0;
  width: auto;
  background-color: #fff;
  padding: 10px 60px 60px 40px;
  font-size: 15px;
  font-family: "Trebuchet MS", Tahoma, Verdena, Arial, sans-serif;
}

#obsah a, #paticka a {
  color: #5a5579;
}

#obsah a:hover, #paticka a:hover {
  text-decoration: underline;
  color: #ff7777;
}

#obsah p {
    font-size: 15px;
    font-family: Calibri, Helvetica, Tahoma, Verdana, sans-serif;
    color: #383838;
    line-height: 20px;
}

/** paticka **/
#paticka {
    max-width: 960px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    font-size: 0.9em;
}

#paticka p, #paticka ul {
	padding: 15px 10px 15px 10px;
}

#paticka .copyright {
	float: left;
}

#paticka ul {
	float: right !important;
	overflow: hidden;
}

#paticka li {
    display: inline;
    list-style-type: none;
		padding-left: 5px;
		margin-left: 5px;
}

#paticka .hr {
	border: 0;
	height: 0;
}

.clear {
    clear: left;
}

/* vzhled loginu */
#menu-user fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

#menu-user .label {
  font-size: 80%;
  width: 50px;
  float: left;
  text-align: right;
  margin: 2px 0 2px 10px;
}

#menu-user .radek {
  clear: left;
}

#menu-user .radek2 {
  clear: left;
  margin-top: 5px;
  text-align: center;
}

#menu-user .input {
  width: 80px;
}

#menu-user fieldset a:hover {
  color: black;
  cursor: default;
}

#menu-user button {
  font-size: 100%;
}

/* formular */
input, textarea, button {
  font-size: 75%;
}

.input {
  font-size: 75%;
  border: 1px solid #62b245;
  background: url('engine/menu_2.gif') left top repeat-x;
  padding: 1px;
}

.button {
  font-weight: bold;
}

.select {
  border: 1px solid #62b245;
  background: transparent url('engine/menu_2.gif') left top repeat-x;
  padding: 1px;
}

.select option {
  background-color: #cef2a2;
}

/* --- vzhled pro stranky --- */
/* stranka login.tpl */
.login-error {
  font-size: 80%;
  text-align: center;
  margin: 15px 0 15px 0;
}

#login-form h4 {
  text-align: center;
  font-size: 120%;
}

#login-form fieldset {
  border: 0;
  font-size: 80%;
}

#login-form .label {
  width: 320px;
  font-size: 12px;
  float: left;
  text-align: right;
  margin: 1px;
}

#login-form .radek {
  text-align: left;
  margin: 1px;
}

#login-form .radek2 {
  margin: 1px;
  text-align: center;
  margin: 5px;
}

/* stranka header_admin.tpl */
.admin-left {
  float: left;
  font-size: 80%;
  width: 0px;
  padding: 6px 0 0 5px;
  font-weight: bold;
  color: green;
  _margin: 0 -120px 0 0;
}

.admin-right {
  float: right;
  margin: 0 0 0 -50px;
}


/* vzhled tabulky */
.table {
  border: 1px solid #973333;
  border-collapse: collapse;
}

.table .vrsek td, .table .vrsek th {
  background: url('engine/menu_button_pozadi.gif') left top repeat-x;
  padding: 2px;
}

.table .spodek td, .table .spodek th {
  border-top: 1px solid #EB7166;
  padding: 2px;
}

.table thead td, .table thead th {
  color: white;
  background-color: #EB7166;
}

#obsah h1 {
  text-align: center;
  /* text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); */
}

.right {
  text-align: right;
}

.center {
  text-align: center;
}

.left {
  text-align: left;
}

/* ostatni */
.zaci-tridy {
  text-align: center;
  margin-bottom: 20px
}

.zaci-tridy a {
  padding: 0 3px 0 3px;
}

.zaci-zpet {
  text-align: right;
  margin-bottom: 15px;
}

.table-top td, .table-top th {
  vertical-align: top;
}

#obsah h3, #obsah h2 {
  text-align: left;
}

/* vyrocni-zprava */
.table {
  margin-top: 3px;
}

.vyrocni-tabulka th {
  text-align: left;
}

.vyrocni-tabulka td, .vyrocni-tabulka th {
  border-left: 1px solid #62b245;
}

.vyrocni-mesic {
  clear: left;
  border: 1px solid white;
}

.vyrocni-mesic p {
  margin: 6px 0 6px 0;
  text-indent: 0px;
}

#historie p {
  margin-left: 15px;
  padding: 1px;
  text-indent: -15px;
}

/* admin */

.admin-left {
  width: 20px;
}

.admin .uzivatele-pridat {
  text-align: right;
  margin: 20px;
}

.uzivatele-skupiny-seznam {
  margin: auto;
  text-align: center;
  width: 400px;
}

.admin h2 {
  text-align: center;
}

#admin_menu {
  margin: auto; font-size: 0.9em
}

#admin_menu img {
  border: 0;
}


#lightbox{
    display:none;
    position: absolute;
    top:50%;
    left:50%;
    z-index:9999;
    width:500px;
    height:400px;
    margin:-220px 0 0 -250px;
}

#lightbox[id]{ /* IE6 and below Can't See This */
    position:fixed;
}

#overlay{
    display:none;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:5000;
    background-color:#000;
    -moz-opacity: 0.8;
    opacity:.80;
    filter: alpha(opacity=80);
}

#overlay[id]{ /* IE6 and below Can't See This */
    position:fixed;
}
#lightbox.done #lbLoadMessage{
  display:none;
}
#lightbox.done #lbContent{
  display:block;
}
#lightbox.loading #lbContent{
  display:none;
}
#lightbox.loading #lbLoadMessage{
  display:block;
}

#lightbox.done img{
  width:100%;
  height:100%;
}

#ajax_menu {
  margin: auto;
  width: 250px;
  background-color: white;
  padding: 5px;
  font-size: 12px;
}

.DHTMLSuite_calendar {
  font-size: 80%;
}


/* ***** Fotogalerie ***** */
.border_image {
    margin: 5px;
    border: 1px solid #afdb84;
    padding: 3px;
    background-color: #a8d67c;
}




/* ***** Subpage ***** */
#subpage h2 {
    font-size: 1.6em;
    font-weight: bold;
    text-align: left;
}

#subpage ul {
    list-style-type: none;
    padding: 0;
    margin-left: 20px;
}

#subpage ul li {
  background: url(engine/odrazka.png) left .6em no-repeat;
  line-height:1.3em;
  padding-left: 12px;
  margin: 3px 0 3px 0;
}

#subpage {
  margin-bottom: 60px;
}

/* ***** Navigace ***** */
#navigace {
    padding: 10px 5px 10px 10px;
    margin: -10px 0px 0px -40px;
    font-size: 12px;
    color: #525252;
    background-color: #ffffff;
    -moz-border-radius: .4em;
}

#navigace .title {
    float: left;
    margin-right: 8px;
    color: #666;
}


/* ***** Clanek v kategorii ***** */
.article {margin-bottom: 30px;padding: 10px 20px 20px 30px;border-bottom: 2px solid #efeff4;}

.article .nadpis {
    float: left;
    font-size: 15px;
}

.article .datum {
    float: right;
    overflow: hidden;
    margin-top: .5em;
    font-size: 12px;
    color: #909090;
}

.article .datum span {
    color: #909090;
    /* font-size: 0.9em; */
}

.article img, .border_image {
    padding: 0px;
    border: #ff7676 2px solid;
    /*margin: 10px;*/
    border-radius: 3px;
}

.article .nadpis h2 {
    margin-top: 0;
}

.article ol {
  margin-left: 30px;
}

.article ol li {
  margin: 3px 0;
}

.article ul {
  list-style-type: none;
  margin-left: 20px;
}

.article ul li {
  background: url("engine/odrazka.png") no-repeat scroll left 0.6em transparent;
  padding-left: 12px;
}

.article ol li {
  background: none;
  padding-left: 0;
  background: none;
}


.clear {
    width: 100%;
    clear: both;
}

#article_section .img {
    float: left;
}

#article_section .img img {
    margin: 5px 20px 13px 0;
}

#article_section .gallery {
    text-align: center;
    margin: 10px 20px 20px 0;
    clear: left;
    /* position: relative; */
    /* width: 100%; */
}

#article_section .gallery a, .e-zakovska a {
    color: white;
    background-color: #ff7777;
    text-decoration: none;
    padding: 10px 20px;
    line-height: 20px;
    border-radius: 29px;
    font-size: 14px;
}

#article_section .gallery a:hover, .e-zakovska a:hover {
    background-image: none;
    background-color: #cc6060;
}

#article_section .cely {
  color: rgb(255, 119, 119);
  font-weight: bold;
}

/* **** Fotogalerie ***** */
#gallery_albums h2 {
    font-size: 1.4em;
    margin: 0;
}

/*
#gallery_albums a {
    color: #693;
}*/

#gallery_albums img {
    float: left;
    margin: 10px;
}

#gallery_albums p {
    float: left;
}


/*  ***** Paginator ***** */
.paginator a, .paginator span {
  font-size: 13px;
  border-radius: 4px;
  padding: 5px 8px 5px 8px;
  border: 1px solid #e2e2e2;
  color: #828282;
}

.paginator a:hover {
  text-decoration: none;
  color: white;
}

/* Style for editor */
.noindent {
    text-indent: 0 !important;
}


/* Cookie */
.eu-cookies {
    color: #DDD;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 4px 10px;
    background-color: #444;
    z-index: 2000;
    text-align: center;
    font-size: 0.9em;
}

.eu-cookies button {
    margin: 0 20px;
    background: #45AE52;
    border: none;
    color: #fff;
    padding: 4px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 700;
}

.eu-cookies a {
    color: #fff;
    font-size: 0.9em;
}

/* Kalendar */
#kalendar {
    /* width: 555px; */
    min-height: 100px;
    margin: auto;
}

#kalendar h2 {
  margin-top: 0;
}

#kalendar td {
  font-size: 0.9em;
  text-indent: 1em;
  padding: 2px;
  height: 20px;
}

#kalendar .title {
  font-weight: bold;
}

#kalendar p {
  float: right;
  font-size: 85%;
}

#kalendar table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

#kalendar .box {
  /* min-height: 105px; */
  border-radius: 5px;
  padding: 5px;
}

#kalendar .datum {
  width: 130px;
}

#kalendar tr:nth-child(even) {
  background-color: #f5686d;
}

#kalendar tr:nth-child(odd), #kalendar .box {
  background-color: #ff7676;
  color: #fff;
}

#kalendar tr:hover td {
  background-color: #dc5c60;
}

#kalendar .url {
  padding: 0;
  margin: 5px 0;
}

#kalendar .url a {
  color: black;
}

#kalendar .zadna-akce {
  text-align: center;
  width: 100%;
  padding-top: 30px;
}

#kalendar .odkaz {
  font-size: 1.05em;
}

#obsah .aktuality {
  text-align: center;
  padding: 0px 0px 20px;
  border-bottom: 2px solid #efeff4;
}

.admin_menu_new {
  float: right;
  margin-left: 15px;
  text-align: right;
}

/* zakovska */
.e-zakovska a:hover {
  color: white;
}

/* odkaz jidelni listek */
.menu_jidelni_listek {
  margin: 5px auto 0px auto;
  text-align: center;
}

.menu_jidelni_listek a {
  color: white;
  background-color: #8a83bd;
  text-decoration: none;
  padding: 5px 20px;
  line-height: 20px;
  font-size: 14px;
  border-radius: 5px;
  padding: 7px 25px 7px 25px;
}

.menu_jidelni_listek a:hover {
    color: white;
    background-color: #625d87;
}

/* ===== Hamburger tlačítko — skryté na desktopu ===== */
.menu-toggle {
    display: none;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #c3c1d0;
    margin: 5px 0;
    transition: 0.3s;
}

/* Close tlačítko uvnitř panelu — skryté na desktopu */
.menu-close {
    display: none;
}

/* Mobilní panel — skrytý na desktopu */
#mobile-panel {
    display: none;
}

/* Overlay — skrytý na desktopu */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}
.nav-overlay.active { display: block; }

/* ===== Media queries ===== */

/* Tablet a menší (< 960px) */
@media (max-width: 959px) {
    #hlavni { width: 100%; }
    #paticka { width: 100%; }
    #obsah { padding: 10px 20px 40px 20px; }
}

/* Mobil (< 768px) */
@media (max-width: 767px) {

    /* Hamburger bar — nahrazuje fialový nav bar */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        height: 50px;
        background-color: #5A5677;
        border: none;
        padding: 0 18px;
        cursor: pointer;
        gap: 5px;
    }
    .menu-toggle span { margin: 0; }

    /* Desktop nav bar — skrytý na mobilu */
    #menu { display: none; }

    /* ===== Off-canvas mobilní panel ===== */
    #mobile-panel {
        display: block;
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        overflow-y: auto;
        z-index: 200;
        background: #5A5677;
        transition: left 0.3s ease;
        box-shadow: 3px 0 12px rgba(0, 0, 0, 0.45);
    }
    #mobile-panel.open { left: 0; }

    /* Header panelu */
    .mobile-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px 0 18px;
        height: 52px;
        background: rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        flex-shrink: 0;
    }
    .mobile-panel-title {
        color: #ffffff;
        font-size: 13px;
        font-weight: bold;
        font-family: 'Trebuchet MS', Tahoma, Arial, sans-serif;
        letter-spacing: 0.5px;
    }
    .menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #c3c1d0;
        font-size: 18px;
        cursor: pointer;
        width: 32px;
        height: 32px;
        border-radius: 3px;
        padding: 0;
        line-height: 1;
        flex-shrink: 0;
    }
    .menu-close:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }

    /* Položka bez podsekcí */
    .mobile-nav-link {
        display: block;
        padding: 13px 18px;
        color: #c3c1d0;
        text-decoration: none;
        font-size: 14px;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .mobile-nav-link.active,
    .mobile-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

    /* Položka s podsekcemi */
    .mobile-nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .mobile-nav-item-header {
        display: flex;
        align-items: stretch;
    }
    .mobile-nav-item-header > a {
        flex: 1;
        display: block;
        padding: 13px 18px;
        color: #c3c1d0;
        text-decoration: none;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    .mobile-nav-item-header > a:hover { color: #fff; }

    /* Expand tlačítko */
    .mobile-nav-expand {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        color: #c3c1d0;
        font-size: 20px;
        cursor: pointer;
        width: 46px;
        padding: 0;
        transition: transform 0.25s ease, color 0.15s;
        flex-shrink: 0;
    }
    .mobile-nav-expand:hover { color: #fff; }
    .mobile-nav-item.is-expanded > .mobile-nav-item-header > .mobile-nav-expand {
        transform: rotate(90deg);
        color: #fff;
    }

    /* Rozvíjecí seznam podsekcí */
    .mobile-nav-children {
        list-style: none;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(0, 0, 0, 0.18);
    }
    .mobile-nav-children.open { max-height: 2000px; }
    .mobile-nav-children > li > a {
        display: block;
        padding: 10px 18px 10px 30px;
        color: #b8b5cc;
        text-decoration: none;
        font-size: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .mobile-nav-children > li > a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }

    /* Třetí úroveň */
    .mobile-nav-grandchildren {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .mobile-nav-grandchildren li a {
        display: block;
        padding: 8px 18px 8px 42px;
        color: #a09db8;
        text-decoration: none;
        font-size: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .mobile-nav-grandchildren li a:hover { color: #fff; }

    /* Rychlé odkazy */
    .mobile-nav-quick {
        padding: 16px 15px 24px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-top: 2px solid rgba(255, 255, 255, 0.12);
        margin-top: 6px;
    }
    .mobile-quick-btn {
        display: block;
        text-align: center;
        padding: 11px 15px;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
        text-decoration: none !important;
        border-radius: 4px;
        font-size: 13px;
        font-weight: bold;
        letter-spacing: 0.5px;
    }
    .mobile-quick-btn:hover { background: rgba(255, 255, 255, 0.2); }

    /* Layout — sloupec, obsah nahoře, levé menu dole */
    #spodek { flex-direction: column; }

    .menu-left {
        width: 100%;
        box-sizing: border-box;
        padding: 10px 15px 20px;
        order: 2;
    }

    #obsah {
        width: 100%;
        padding: 10px 15px 40px 15px;
        order: 1;
    }

    #logo { height: clamp(100px, 25vw, 160px); }

    #navigace { margin: -10px 0 0 0; }

    #paticka ul { float: none !important; }
    #paticka li { display: block; }

    .article { padding: 10px 10px 15px 15px; }

    #gallery_show { display: flex; flex-wrap: wrap; }
    #gallery_show .photo { flex: 0 0 50%; box-sizing: border-box; }

    #gallery_albums img { float: none; width: 100%; margin: 0 0 10px 0; }
}