* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'montserratbold';
    src: url(./fonts/montserrat-bold-webfont.woff2) format('woff2'),url(./fonts/montserrat-bold-webfont.woff) format('woff');
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: 'myriad_prosemibold';
    src: url(./fonts/myriad_pro_semibold-webfont.woff2) format('woff2'),url(./fonts/myriad_pro_semibold-webfont.woff) format('woff');
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: 'myriad_proregular';
    src: url(./fonts/myriadpro-regular-webfont.woff2) format('woff2'),url(./fonts/myriadpro-regular-webfont.woff) format('woff');
    font-weight: 400;
    font-style: normal
}

::-moz-selection {
    color: #fff;
    background: #326e0a
}

::selection {
    color: #fff;
    background: #326e0a
}

body {
     font-family: 'myriad_proregular';
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #9d9d9d 0%, #648d46 100%);
    background: #f7f7e8;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: #326e0a
}

a:hover {
    color: #326e0a;
    text-decoration: none
}

.img-fluid {
    max-width: 100%;
    height: auto;
}
.main-logo { max-width: 200px; }

h1 {
    color: #326e0a;
    font-family: 'montserratbold';
}

/* ------------------------------------ */
#iosAddToHome, #addToHome {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    background:#fff;
    border-top: 5px solid #326e0a;
    padding:2rem;
    font-size: 1.5rem;
    text-align:center;
    z-index:9999;
}
#iosAddToHome img { height:2rem;vertical-align:middle; }

#installBtn {
    background: #326e0a;
    padding: 2rem;
    font-size: 1.5rem;
    border-radius: 20px;
    color: #fff;
    border: 0;
}
/* ------------------------------------ */

.container {
    position: relative;
    min-height: 100vh;
}

.selection-screen {
    /*position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;*/
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #9d9d9d 0%, #648d46 100%);
    background: #f7f7e8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-images: center;
    z-index: 1000;
    padding: 20px;
}

.selection-header {
    text-align: center;
    /*color: white;*/
    margin-bottom: 20px;
}

.selection-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.selection-header p {
    font-size: 16px;
    opacity: 0.9;
}

.section-footer {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    margin-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
}

.section-footer a {
    font-size: 2rem;
    width: 50%;
    float: left;
    text-align: center;
    color: #326e0a;
}

.section-articles {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    margin-top: 20px;
    margin-right: 20px;
    margin-left: 20px;
}

.articles_slider .item { text-decoration: none; }
.owl-theme .owl-nav { margin-top: 25px; }
.owl-theme .owl-nav [class*='owl-'] {
    background: #326e0a;
    color: #f7f7e8;
    border: 1px solid #326e0a;
    border-radius: 20px;
    width: 30%;
    max-width: 100px;
    padding: 10px 20px;
}
.owl-theme .owl-nav [class*='owl-']:hover {
    background: #f7f7e8;
    color: #326e0a;
}
.owl-carousel .owl-item {
    text-align: center;
    color: #333;
    font-family: 'montserratbold';
    text-transform: uppercase;
    background: #f7f7e8;
    border-radius: 20px;
}
.owl-carousel .owl-item img { border-top-right-radius: 20px; border-top-left-radius: 20px; }
.owl-carousel .owl-item h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #333;
    padding: 20px;
}


.waste-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.waste-option {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.waste-option:hover {
    transform: translateY(-5px);
    border-color: #326e0a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.waste-option-icon {

    width: 100%;
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    background-repeat: no-repeat;
    background-size: 100% 600%; /* výška sprite je 6x obrázek = 600% */
    background-position: 0% 0%; /* první obrázek */
    aspect-ratio: 1 / 1; /* každý obrázek je čtverec 500×500 */

    margin-bottom: 10px;
    display: block;
}

.waste-option-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.waste-option-time {
    font-size: 14px;
    color: #666;
}

.timeline-screen {
    display: none;
    min-height: 600vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    text-align: center;
    z-index: 1000;
    border-bottom: 2px solid #e0e0e0;
    text-align: right;
}

.header h1 {
    color: #333;
    font-size: 18px;
    font-size: 1rem;
    font-weight: bold;
}

.header p {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}
/*
.header h1,
.header p {
    width: 80%;
    float: right;
}*/

.back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #326e0a;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
}

.timeline {
    position: fixed;
    left: 20px;
    top: 120px;
    bottom: 20px;
    width: 150px;
    z-index: 100;
}

.timeline-line {
    position: absolute;
    left: 21px;
    top: 15px;
    bottom: 150px;
    width: 3px;
    background: linear-gradient(to bottom, #326e0a, #326e0a, #F44336);
    background: linear-gradient(to bottom, #326e0a, #55634b, #4b403f);
    background: #326e0a;
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: absolute;
    left: 0;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.timeline-dot {
    position: absolute;
    left: 15px;
    width: 15px;
    height: 15px;
    background: white;
    border: 3px solid #326e0a;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 3;
}

.timeline-label {
    position: absolute;
    left: 40px;
    top: -8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
    background: #326e0a;
    border-color: #326e0a;
    transform: scale(1.3);
}

.timeline-item.active .timeline-label {
    background: #326e0a;
    color: white;
    border-color: #326e0a;
    transform: scale(1.1);
}

.waste-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 50;
    transition: all 0.8s ease;
}
/*
.waste-icon {
    font-size: 120px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    transition: all 0.8s ease;
}*/

.waste-icon {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 220px;
    background-repeat: no-repeat;
    background-size: 100% 600%; /* výška sprite je 6x obrázek = 600% */
    background-position: 0% 0%; /* první obrázek */
    aspect-ratio: 1 / 1; /* každý obrázek je čtverec 500×500 */

    /*animation: float 3s ease-in-out infinite;*/
    /*transition: all 0.8s ease;*/
}
.waste-icon.frame-0 {
    background-position: 0% 0%;
}

.waste-icon.frame-1 {
    background-position: 0% 20%;
}

.waste-icon.frame-2 {
    background-position: 0% 40%;
}

.waste-icon.frame-3 {
    background-position: 0% 60%;
}

.waste-icon.frame-4 {
    background-position: 0% 80%;
}

.waste-icon.frame-5 {
    background-position: 0% 100%;
}


.waste-icon.nedopalek,.waste-option-icon.nedopalek { background-image: url('/img/odpady/1_nedopalek-500x3000.png'); }
.waste-icon.plechovka_hlinikova,.waste-option-icon.plechovka_hlinikova { background-image: url('/img/odpady/2_al_plechovka-500x3000.png'); }

.waste-icon.konzerva_ocelova,.waste-option-icon.konzerva_ocelova { background-image: url('/img/odpady/3_konzerva_ocelova-500x3000.png'); }
.waste-icon.zvykacka,.waste-option-icon.zvykacka { background-image: url('/img/odpady/4_zvykacka-500x3000.png'); }
.waste-icon.sklenena_lahev,.waste-option-icon.sklenena_lahev { background-image: url('/img/odpady/5_sklenena_lahev-500x3000.png'); }
.waste-icon.plastovy_kelimek,.waste-option-icon.plastovy_kelimek { background-image: url('/img/odpady/6_plastovy_kelimek-500x3000.png'); }
.waste-icon.ohryzek_jablko,.waste-option-icon.ohryzek_jablko { background-image: url('/img/odpady/7_ohryzek_jablko-500x3000.png'); }
.waste-icon.slupka_banan,.waste-option-icon.slupka_banan { background-image: url('/img/odpady/8_slupka_banan-500x3000.png'); }
.waste-icon.napojovy_karton_hlinik,.waste-option-icon.napojovy_karton_hlinik { background-image: url('/img/odpady/9_napojovy_s_al-500x3000.png'); }
.waste-icon.noviny,.waste-option-icon.noviny { background-image: url('/img/odpady/10_noviny-500x3000.png'); }
.waste-icon.jednorazova_plena,.waste-option-icon.jednorazova_plena { background-image: url('/img/odpady/11_plena-500x3000.png'); }
.waste-icon.igelitova_taska,.waste-option-icon.igelitova_taska { background-image: url('/img/odpady/12_igelitovy_sacek-500x3000.png'); }
.waste-icon.ponozka,.waste-option-icon.ponozka { background-image: url('/img/odpady/13_ponozka-500x3000.png'); }
.waste-icon.kozenabota,.waste-option-icon.kozenabota { background-image: url('/img/odpady/14_kozena_bota-500x3000.png'); }
.waste-icon.napojovy_karton_bez_hliniku,.waste-option-icon.napojovy_karton_bez_hliniku { background-image: url('/img/odpady/15_napojovy_karton_bez_al-500x3000.png'); }

.waste-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 320px;
    margin: 0 auto;
}

.waste-name {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.waste-stage {
    font-size: 18px;
    font-weight: bold;
    color: #FF5722;
    margin-bottom: 10px;
}

.waste-description {
    font-size: 14px;
    font-size: 1rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}



.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7a7a7a, #8B5E3C, #326e0a);
    border-radius: 5px;
    transition: width 0.8s ease;
}


.alternative-btn {
    background: #326e0a;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.alternative-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.alternative-btn i { color: yellow; }

.alternative-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
    text-align: center;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-title {
    font-size: 20px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 16px;
    font-size: 1.2rem;
    color: #666;
    line-height: 1.5;
}

.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    /*color: white;*/
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 768px) {

    .waste-info {
        width: 220px;
    }

    .waste-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .waste-option {
        padding: 15px;
    }

    .waste-option-icon {
        font-size: 40px;
    }

    .waste-display {
        left: 65%;
    }

    .timeline {
        width: 120px;
        left: 0;
    }

    .timeline-label {
        font-size: 0.9rem;/*10px*/
        padding: 6px 8px;
    }

    .waste-icon {
        font-size: 80px;
    }

    .waste-info {
        padding: 20px;
        max-width: 280px;
    }

    .waste-name {
        font-size: 20px;
    }

    .timeline-line {
        bottom: 95px;
    }
}


/* ------------- EKO Cookie Consent ---------- */
.eko_cc_w {
  background-color: #fff;
  border-radius: 15px;
  color: #333;
  padding: 1.5rem;
  right: 20px;
  bottom: 20px;
  width: 25%;
  border: 3px solid #326e0a;
}
.eko_cc_intro_text h4 {
  text-transform: uppercase;
  font-size: 36px;
  line-height: 36px;
  color: #333;
  margin:0;
  padding: 5px 0;
  font-family: 'montserratbold';
  color: #326e0a;
}
.eko_cc_intro_text a { color: #326e0a; }
.eko_cc_w .eko_cc_intro_text {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 15px;
  max-height: 370px;
}

.eko_cc_w .eko_cc_buttons {
  display: flex;
  gap: 3px;
}

.eko_cc_w .eko_cc_buttons .eko_cc_allow, .eko_cc_w .eko_cc_buttons .eko_cc_edit_setting {

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-transform: uppercase;

  font-size: 23px;

  border: 1px solid #326e0a;
  border-radius: 15px;
  padding: 1rem 0.5rem;
  background: #326e0a;
  color: #f7f7e8;
  font-family: 'montserratbold';

}

.eko_cc_w .eko_cc_buttons .eko_cc_edit_setting,
.eko_cc_w .eko_cc_buttons .eko_cc_edit_setting:focus { background: transparent; color: #326e0a; font-size: 18px; }

.eko_cc_w .eko_cc_buttons .eko_cc_allow:hover { background: transparent; color: #326e0a; }
.eko_cc_w .eko_cc_buttons .eko_cc_edit_setting:hover { background: #326e0a; color: #f7f7e8; }
.eko_cc_w .eko_cc_buttons .eko_cc_edit_setting.eko_cc_inactive { opacity: 0.5; }
.eko_cc_w .eko_cc_types .eko_cc_item i { background: #326e0a; color: #fff; font-size: 13px; width: 15px; height: 15px; }
.eko_cc_w .eko_cc_types .eko_cc_item i:hover { background: #326e0a; color: #fff; }
.eko_cc_w .eko_cc_types .eko_cc_item { margin-bottom: 10px; margin-right: 0; width: 100%; }

@media (max-width: 1620px) {
  .eko_cc_w { width: 400px; border-left: 0; border-bottom: 0; border-right: 0; }
}

@media (max-width: 576px) {
  .eko_cc_w { bottom: 0; border-radius: 0; width:100%; }
}

/* ------------------------------------------------------------------------------------------- */