/*
    CSS webové aplikace
 */

/*
-------------- SPOLEČNÉ HLAVNÍ ATRIBUTY ----------------
 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e6f0ff !important;
    margin: 0;
}

.application_body {
    background-color: #e6f0ff;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

main {
    flex: 1;
}

/*
------------ Header ----------------
 */

.mapka_aplikace_body {
    position: relative;
    overflow: hidden;
}

.mapka_aplikace_bg {
    background-image: url('images/snimky/H_tyn_snimek.jpg');
    background-size: cover;
    background-position: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.obsah_header {
    background: linear-gradient(rgba(255, 255, 255, 0.27), rgba(255, 255, 255, 0.4));
    width: 100%;
    height: fit-content;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.spolecnosti-div {
    background-color: rgba(255, 255, 255, 0.9);
    height: clamp(2.4rem, 4.4vw, 7.4rem);
    position: absolute;
    backdrop-filter: blur(4px);
    top: 0;
    left: 0;
    margin: 0 !important;
    z-index: 999;
}

.spolecnosti-div img {
    height: clamp(1.6rem, 3.6vw, 6rem);
    object-fit: contain;
}

.spolecnosti-prostredek {
    /*margin: 0 clamp(0.8rem, 1.4vw, 1.8rem) 0 clamp(0.8rem, 1.4vw, 1.8rem);*/
    margin: 0 clamp(1rem, 1.6vw, 2rem) 0 clamp(1rem, 1.6vw, 2rem);
}

.nadpis_frame {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.47);
    max-width: 800px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.logo_mesta {
    width: clamp(12rem, 7vw, 7rem);
    height: auto;
    border-radius: 12px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.77);
    transition: all 0.3s ease;
}

.logo_mesta:active {
    transform: scale(1.3);
}

.nadpis_aplikace{
    font-weight: bold;
    color: #ffffff;
    text-shadow: 4px 4px 8px rgb(0, 0, 0);
    font-size: 1.8rem;
}

.nazev-aplikace {
    background-color: #25408f;
    color: white;
    padding: 20px;
    text-align: center;
}

.lang-switch {
    text-align: center;
}

.lang-switch a {
    display: inline-block;
    background-color: #25408f;
    color: white;
    text-decoration: none;
    margin: 0 4px;
    font-weight: bold;
    border: none;
}

.lang-switch a:active {
    background-color: #db1113;
    outline: none;
    box-shadow: none;
}


/*
------------ OBSAH APLIKACE ---------------
 */

.carousel-inner {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
    border-radius: 14px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.80);
}

.carousel-item img {
    max-height: 30rem !important;
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    box-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.tlacitka_slide_show {
    background-color: #25408f;
    border-radius: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tlacitka_slide_show:active {
    background-color: #db1113;
}

main {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.obal_text {
    background-color: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(4px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

audio {
    margin: 30px auto;
    display: block;
}

.tlacitka_stranky_mesta {
    background-color: #25408f;
    border-radius: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tlacitka_stranky_mesta:active {
    background-color: #db1113;
}

.ramecek {
    width: 6rem;
    height: 6rem;
    border: 8px solid white;
    box-sizing: border-box;
    border-radius: 8px;
}

.prehravac {
    background-color: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(4px);
    border-radius: 40px;
    max-width: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.prehravac-play {
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    background-color: #25408f;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.prehravac-play:active {
    background-color: #db1113;
}

.prehravac-stop {
    width: 3rem;
    height: 3rem;
    border-radius: 100%;
    background-color: #db1113;
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.prehravac-stop:active {
    background-color: #25408f;
}

#seek-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

/* Chrome, Safari, Edge */
#seek-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #25408f;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

/* Firefox */
#seek-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #25408f;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 346px) {
    .sluchatka {
        display: none;
    }

    #label_prehravace {
        font-size: 20px;
    }
}

/*
----------- Footer -----------------
 */

footer {
    background: #000000;
    color: white;
    text-align: center;
}

/*
----------- Odkaz na Helgroup -------------
 */

.helgroup_link {
    text-decoration: none;
    color: rgb(183, 9, 9);
    transition: all 0.3s ease;
}

.helgroup_link:active {
    color: rgb(255, 184, 33);
}


/*
----------- Animace --------------
 */

.div_to_right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s ease;
}

.div_to_right.visible {
    opacity: 1;
    transform: translateX(0);
}

.div_to_up {
    opacity: 0;
    backdrop-filter: blur(0);
    transform: translateY(40px);
    transition: all 1s ease;
}

.div_to_up.visible {
    opacity: 1;
    backdrop-filter: blur(4px);
    transform: translateY(0);
}

.div_to_left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s ease;
}

.div_to_left.visible {
    opacity: 1;
    transform: translateX(0);
}

.div_to_bottom {
    opacity: 0;
    transform: translateY(-60px);
    transition: all 1s ease;
}

.div_to_bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/*
----------- Modální okno ------------
 */

.modal {
    display: none;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(255, 255, 255, 1);
    justify-content: center;
    align-items: start;
    padding-top: 3rem;
    transition: opacity 0.4s ease;
}

.modal-img {
    max-width: 80%;
    max-height: 80%;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
    border-radius: 10px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;

}

.modal.show .modal-img {
    transform: scale(1);
}

.modal.hide {
    opacity: 0;
    pointer-events: none;
}

.close-button {
    position: absolute;
    top: 0.6rem;
    right: 1rem;
    font-size: 4rem;
    color: #db1113;
    cursor: pointer;
}

.close-button:active {
    color: #25408f;
}
