body {
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #e5fff2;
    color: #000;
    text-align: justify;
    max-width: 960px;
}

.centered {
    margin-left: auto;
    margin-right: auto;
}

.header {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.header a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.header img {
    height: 120px;
    width: 150px;
    object-fit: contain;
    margin-right: 1rem;
}

.header h1 {
    flex-grow: 1;
    text-align: center;
    margin: 0;
    font-size: 3rem; /* větší nadpis na PC */
    color: #336633;
    font-weight: bold;
}

/* Menu */
.menu {
    background-color: #66cc66; /* barva blíže původnímu menu */
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0rem;
    padding: 0rem;
    border-top: 1px dotted #000;
    border-bottom: 1px dotted #000;
}

.navigation a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    /*border-top: 1px dotted #000;*/
    border-bottom: 1px dotted #000;
}

.navigation a:hover {
    color: #FFFF99;
    background-color: #339933;
    border-bottom: 1px solid #000;
}

/* Obsah */
.obsah {
    padding: 2rem;
    min-height: 300px;
    /*max-width: 1200px;*/
    max-width: 960px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: #363;
}

h2 {
    margin-top: 0;
}

.obsah a {
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted #000000;
    color: #000000;
}

.obsah a:visited {
    color: #000000;
    border-bottom: 1px dotted #000000;
}

.obsah a:hover {
    color: #000000;
    border-bottom: 1px solid #000000;
}

.l {
    /* obrazek plovouci vlevo */
    float: left;
    margin-right: 10px;
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 5px;
    border: 1px solid black;
    background: #fff;
}

/* Ohnostroj */
#fireworks-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -10000;
}

/* graf obsazenosti ------------------------------------- */    
.bar-container {
    width: 100%;
    /*max-width: 600px;*/
    height: 30px;
    /*background-color: #e0e0e0;*/
    background-color: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    position: relative;
    margin-top: 0.2em;
}

.bar-fill {
    height: 100%;
    border-radius: 15px 0 0 15px;
    transition: width 0.4s ease;
}

.bar-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    line-height: 30px;
    font-weight: bold;
    color: #fff;
    font-family: Arial, sans-serif;
}
/* graf obsazenosti - konec ----------------------------- */    

/* Potaborova posta ------------------------------------- */
.mess {
    /* zprava v potaborove poste */
    width: 100%;
    margin: 5px 0 10px 0;
    border: 1px solid #66CC66;
}

.mheader {
    background-color: #66CC66;
    border-bottom: 1px solid green;
    /*display: block;*/
    /*height: 2.5rem;*/
    padding: 5px;
    overflow: auto;
}

.adress {
    float: left;
    padding-left: 5px;
    padding-top: 0.3em;
    font-size: 1.1em;
}

.date {
    float: right;
    text-align: right;
    padding-right: 3px;
    padding-top: 0.3em;
}

.messtxt {
    text-align: justify;
    padding: 15px;
    clear: both;
    margin-top: 5px;
}

.next {
    /* odkaz pro listovani */
    float: right;
    margin-bottom: 20px;
}

.prev {
    /* odkaz pro listovani */
    float: left;
    margin-bottom: 20px;
}
/* Potaborova posta - konec ----------------------------- */

/* Formular potaborove posty ---------------------------- */
.guest-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.full-width {
    flex-basis: 100% !important;
}

label {
    font-weight: bold;
    margin-bottom: 0.3rem;
    text-align: left !important;
}

.inputtext, .messagetext {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 0.7rem 1.2rem;
    border: none;
    background-color: #339933;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #267326;
}

button:disabled {
    background-color: dimgray;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #393;
    /*padding: 10px 18px;*/
    font-size: 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}
.btn-add:hover {
    background-color: #6c6;
}
.btn-add i {
    font-size: 1.2rem;
}

/* Na PC: Od a Pro vedle sebe */
@media (min-width: 768px) {
    .form-row {
        flex: 1 1 calc(50% - 1rem);
    }
    .full-width {
        flex-basis: 100%;
    }
}
/* Formular potaborove posty - konec -------------------- */

/* Styl pro prave_ted ----------------------------------- */
#rok-select {
    font-size: 0.9em;
    color: #333333;
}

#dny {
    margin: 10px 0;
}

#dny .den {
    font-size: 0.9em;
    color: #000;
    background-color: #66CC66;
    display: inline-block;
    margin: 2px auto;
    padding: 4px 8px;
    border: 1px solid #333333;
    border-radius: 4px;
    cursor: pointer;
}

#dny .den:hover {
    color: #FFFF99;
    background-color: #339933;
}

#dny .active-day {
    font-weight: bold;
    background-color: #cff9e4;
    border-color: #66CC66;
}

.novinka {
    clear: both;
    overflow: hidden;
    padding: 10px 0;
    border-bottom: 1px solid #66CC66;
}

.news_comment {
    font-weight: bold;
    color: #003300;
    display: block;
    margin-bottom: 15px;
}

.novinka-obrazek {
    float: left;
    margin: 4px 10px 5px 0;
    padding: 4px;
    border: 1px solid black;
    background: #fff;
    max-width: 200px;
    height: auto;

    /* Pro obtékání i pod obrázkem */
    shape-outside: inset(0);
}

.newstext {
	text-indent: 0;
   	margin-top: 0;
}

@media screen and (max-width: 768px) {
    .novinka-obrazek {
        width: 33%;
        height: 33%;
   }
}
/* Styl pro prave_ted - konec --------------------------- */

/* Informace o tabore ----------------------------------- */
.camp-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #66CC66;
    padding-bottom: 6px;
}

.nameofitem {
    font-weight: bold;
    min-width: 150px;
    margin-right: 10px;
}

/* Text zarovnání a přizpůsobení pro mobily */
.info-row > div {
    flex: 1 1 10px;
}

/* Na malých displejích sloupce pod sebe */
@media (max-width: 600px) {
    .info-row {
        flex-direction: column;
    }
    .nameofitem {
        margin-bottom: 4px;
    }
}
/* Informace o tabore - konec  -------------------------- */

/* Fotogalerie ------------------------------------------ */    
div.gallerywrapper {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
}	

div.thn {
    /* nahled v galegii */
    width: 120px;
    height: 90px;
    /*float: left;*/
    display: block;
    margin: 5pt auto;
    /*margin: 5px;*/
    text-align: center;
    cursor: pointer;
}

div.thn a {
    border: 0;
}

div.thn a:visited {
    border: 0;
}

div.thn a:hover {
    border: 0;
    transform: scale(1.1);
}

img.thn_i {
    padding: 3px;
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
}

div.thn-o {
    /* nahled u oddilu */
    width: 120px;
    height: 90px;
    float: left;
    margin: 5px 5px 30px 5px;
    text-align: center;
}

.thumbnail {
    /*width: 150px;*/
    cursor: pointer;
    transition: transform 0.3s;
    padding: 3px;
    background-color: #FFFFFF;
    color: #000000;
    border: 1px solid #000000;
    margin: 5pt auto;
    width: 120px;
    height: 90px;
    display: block;
}
.thumbnail:hover {
    transform: scale(1.1);
}

.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 3rem;
    color: #e5fff2;
    cursor: pointer;
    display: block;
    padding: 1rem;
    z-index: 1000;
}

.nav-area {
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    cursor: pointer;
}

.prev { left: 0; }
.next { right: 0; }

/* Fotogalerie - konec -------------------------------- */    

/* Sponsori, tech */
.sponsori, .tech {
    padding: 1rem;
    font-size: 0.9rem;
    /*background-color: #ccf0dd;*/
    text-align: center;
    /*max-width: 1200px;*/
    max-width: 960px;
    margin: 0 auto;
    border-top: 1px dotted black;
}

.sponsori a {
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dotted #000000;
    color: #000000;
}

.sponsori a:visited {
    color: #000000;
    border-bottom: 1px dotted #000000;
}

.sponsori a:hover {
    color: #000000;
    border-bottom: 1px solid #000000;
}

div.counters {
    /*width: 88px;
    height: 90px;*/
    display: block;
    float: left;
    margin-top: 5px;
}

div.validators {
    width: 80px;
    float: right;
}

/* Prihlasky -------------------------------------------- */    
.parent-list {
    display: flex;
    flex-wrap: wrap; /* aby šly karty na nový řádek */
    gap: 1rem;
}

.parent-item {
    background: #cff9e4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;

    flex: 1 1 calc(48% - 1rem); /* dvě vedle sebe, s mezerou */
    max-width: calc(48% - 1rem);

    justify-content: space-between;
    min-height: 120px; /* ať má karta prostor */
    position: relative; /* pro absolutní pozici tužky */
}

.parent-header {
    font-weight: bold;
    margin-bottom: 6px;
    color: #363;
}

.parent-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 30px; /* aby se tužka nepřekrývala */
}

.parent-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
}

.parent-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #363;
}

.parent-actions button:hover {
    color: #6c6;
}

.indent {
    margin-right: 8px;
    margin-left: 20px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .parent-item {
        flex: 1 1 100%; /* na mobilech zase 1 na řádek */
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .parent-item {
        font-size: 0.9rem;
    }
    .parent-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .parent-actions button {
        font-size: 1.6rem;   /* větší ikona */
        padding: 8px;        /* větší klikací plocha */
        border-radius: 50%;  /* kruhové pozadí */
        transition: background-color 0.2s ease;
    }

    .parent-actions button:hover,
    .parent-actions button:focus {
        background-color: rgba(0, 0, 0, 0.05); /* jemný šedý podklad */
    }

    #psc {
        max-width: 150px;
    }
}

.dite {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.qr {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.qrsum {
    display: flex;
    flex-direction: column; /* aby byl titulek nad QR kódy */
    align-items: center;
    justify-content: center;
    margin: auto;
}

.qrsumtitle {
    text-align: center; /* vycentrování textu */
    margin-bottom: 10px; /* mezera pod titulkem */
}

.qr img {
    height: auto;
}

.info {
    flex: 1;
    min-width: 200px;
    line-height: 1.5em;
}

.dite-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    font-weight: bold;
    padding-top: 12px;
    color: #393;
}

.edit-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #393;
}

.edit-btn:hover {
    color: #6c6;
    background: none;
}

.bigger {
    font-size: 2em;
}

.uptext {
    /* posun textu u ikony pridat dite */
    position: relative;
    top: -8px;
    left: -8px;
}

.status {
    display: inline-block; /* default: vedle sebe s okolním textem */
}

.fa-check {
    color: #6c6;
    margin-left: 20px;
    margin-right: 5px;
}

@media (max-width: 600px) {
    .dite {
        flex-direction: column;
        align-items: stretch;
    }
    .qr {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .qr img {
        max-width: 50%;
    }
    .status {
        display: block; /* na mobilu skočí celý blok na nový řádek */
        margin-top: 5px;
    }
    .fa-check {
        margin-left: 0px;
    }
}

/* Prihlasky - konec ------------------------------------ */    

/* Styl pro informační autohide zprávy ------------------ */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 2rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, top 0.5s ease-in-out;
    z-index: 9999;
    visibility: hidden;
}

/* Barvy pro různé priority informacnich autohide zprav */
.message.green {
    background-color: #4caf50;  /* Zelená */
}

.message.orange {
    background-color: #ff9800;  /* Oranžová */
}

.message.red {
    background-color: #f44336;  /* Červená */
}
/* Styl pro informační autohide zprávy - konec ---------- */

/* Responzivita */
@media (max-width: 768px) {
    .obsah {
        padding: 1rem;
    }

    .bar-container {
        width: 95%;
        margin: 5px auto;
    }

    .navigation {
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .menu.open .navigation {
        display: flex;
    }

    .menu-toggle {
        display: block;
        text-align: center;
        padding: 1rem;
        background-color: #66cc66;
        cursor: pointer;
        font-weight: bold;
    }

    .header h1 {
        font-size: 1.8rem; /* menší na mobilech */
    }

    .logosponzor {
        max-width: 90px;
        max-height: 90px;
    }

    .header img {
        height: 60px;
        width: 75px;
        object-fit: contain;
        margin-right: 1rem;
    }
    
    .navigation a {
        width: 100%;
        text-align: center;
        text-decoration: none;
        color: #000;
        font-weight: bold;
        padding: 0.6rem 0rem;
        transition: all 0.3s;
        }
    
    .sponsori a {
        font-size: 0.5rem;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}
