﻿
html, body {
    margin: 0 auto;
    font-family: Segoe UI,SegoeUI,Segoe WP,Helvetica Neue,Helvetica,Tahoma,Arial,sans-serif;
    height: 100%;
}

body {
    background-color: #00457e;
    /* Full height */
    height: 100%;
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #999;
    line-height: 1.5;
}

    body.bodyelek {
        background-color: #00457e;
        background-image: url("Images/elektro1b.jpg");
    }

    body.bodyplyn {
        background-color: #486680;
        background-image: url("Images/plyn1bg.jpg");
    }

p {
    margin-top: 0;
    margin-bottom: 0.3rem;
}

.tacenter {
    text-align: center ;
}

.stats {
    margin-bottom: 30px;
}
.stats .bignum {
    color: #fff;
    font-size: 26px;
}
.stats .bignum .curr {
    color: #fff;
    font-size: 60%;
}
.stats p {
    line-height: 1.2;
}

.zvyr {
    color: #fff;
}

.arrow, .small {
    font-size: 75%;
}
.arrow.down {
    color: green;
}
.arrow.up {
    color: red;
}
.errmsg {
    color: #fff;
    background-color: #ff0000;
    padding: 2px 5px;
}

h1 {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    padding: 20px 20px 5px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 16px #000000;
    line-height: 1.2;
}
h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    margin-top: 0;
    text-align: center;
    padding-bottom: 4px;
    text-shadow: 2px 2px 30px #000000;
    line-height: 1.2;
}

.content {
    margin: 0 3vw 0 3vw;
    padding: 3vw;
    background-color: #000000A0;
    border-radius: 30px;
    overflow: hidden;
}

.toolbar {
    margin-left: 0px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 4px;
}
.toolbar button {
    line-height: 20px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.toolbar.datepick button {
    padding: 6px 4px;
}
/* Datumová navigace + přepínač rozlišení (15/60 min) - obě skupiny vpravo (viz index.astro),
   ale s viditelnou mezerou mezi skupinami, aby bylo jasné, že jde o dvě různé věci. */
.toolbar-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.toolbar-group + .toolbar-group {
    margin-left: 16px;
}
.toolbar-compact button {
    padding: 4px 10px;
    font-size: 13px;
}

.toolbar button:not(:disabled) {
    cursor: pointer;
}

button, input[type=button] {
    background: #ffffff20;
    color: #fff;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 6px 17px;
}

    button.active, input[type=button].active {
        color: #fff;
        background: #008FFB;
        border: 1px solid blue;
        border-bottom: 2px solid #FFF;
    }

    button:focus, input[type=button]:focus {
        outline: 0;
    }

    button:hover, input[type=button]:hover {
        background: #ffffff40;
    }

    button.active:hover, input[type=button].active:hover {
        background: #008FFB;
    }

    button:disabled, input[type=button]:disabled {
        opacity: 0.5;
    }



.chart-wrapper {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
}

.lastupd {
    color: #ffffff80;
    font-size: 13px;
    text-align: right;
    padding: 20px 0;
}

.infotext {
    color: #ffffffa0;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    padding: 20px 0;
}
    .infotext a {
        color: #ffffffcc;
        text-decoration: underline;
    }
    .infotext a:hover {
        color: #ffffff;
        text-decoration: none;
    }


.tabswrapper {
    flex-direction: column;
    margin: 0 3vw 0 3vw;
    align-items: start;
    padding-left: 5vw;
    padding-right: 5vw;
}

.tabs {
    display: flex;
}
.tabs > div {
    align-self: end;
    
}
.banner {
    text-align: center;
}
.banner img {
    width: 485px;
    max-width: 100%;
}
.banner p {
    font-size: .7em;
    color: #777;
}

.tab {
    cursor: pointer;
    padding: 7px 20px;
    margin: 0px 2px;
    background: #00000080;
    display: inline-block;
    color: #ffffffB0;
    border-radius: 8px 8px 0px 0px;
    letter-spacing: 1px;
    /* box-shadow: 0 0.5rem 0.8rem #00000080; */
}

    .tab.active {
        background: #000000A0;
        color: #fff;
        font-weight: bold;
        padding: 10px 20px 8px;
    }


footer {
    color: #ffffffC0;
    font-size: 12px;
    padding: 30px 10px 50px;
}
    footer p.shadowtxt {
        padding: 10px;
        background-image: radial-gradient(#00000030 20%, #00000000 60%);
    }
footer div {
    text-align: center;
    letter-spacing: 2px;
}
        footer div a {
            color: #fffffff0;
            text-decoration: none;
        }
        footer div a:hover {
            color: #ffffff;
            text-decoration: underline;
        }
footer .logo {
    padding: 5px 10px;
}



@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
    }

    50% {
        -webkit-transform: scale(1.03);
    }

    100% {
        -webkit-transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
    -webkit-animation: pulse 3s ease-in-out infinite;
}

.novinka {
    text-align: center;
    padding: 2px 20px;
    margin-left: 20px;
    color: yellow;
    font-size: 14px;
    /*background-color: #00000030;*/
    border-radius: 5px;
}


.update-progress {
    display: inline;
}
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    margin-right: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* reklama */

/* Tailwind třídy (bg-transparent, border-0) na ads.ts tlačítkách prohrávají s obecným pravidlem
   pro button { background, border } níže - Tailwind utility třídy jsou v @layer (viz global.css),
   nevrstvené pravidlo (toto style.css) má v CSS cascade vždy přednost bez ohledu na specificitu. */
.ads-nav-prev,
.ads-nav-next {
    background: transparent;
    border: none;
}
.ads-nav-prev:hover,
.ads-nav-next:hover {
    background: transparent;
}

/* Rezervuje místo, než se reklama dotáhne (async fetch) - jinak by se po jejím objevení posunul
   obsah pod ní (layout shift). Odpovídá přibližné výšce .ads-section s jednou kartou reklamy. */
.carousel-container {
    min-height: 290px;
}

.ads-section {
    gap: 0px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ads-title {
    font-size: .7em;
    color: #777;
    margin-bottom: 10px;
    text-align: center;
}
.ads-title > span {
    color: #CCCCCC;
}

.ads-dot {
    padding: 4px;
    margin: 0;
    cursor: pointer;
}

.ads-container-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.ad-container {
    min-height: 200px;
    background-color: rgba(255, 255, 255, 0.10);
    border-radius: 0 10px 10px 0;
    border-left: 5px solid #FFD700;
    padding: 25px 35px;
    color: #ffffffcc;
    /*font-family: Arial, sans-serif;*/
    box-sizing: border-box;
    transition-duration: .3s;
}
.ad-container:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.ad-content .ad-title {
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    color: #FFD700;
    text-decoration: none;
    text-align: left;
    padding-bottom: 5px;
}

.ad-container:hover .ad-title {
    text-decoration: underline;
    color: #ffe34d;
}

.ad-content p {
    font-size: 14px;
    padding: 10px 0;
    margin: 0;
}

.ad-footer {
    display: flex;
    align-items: center;
    padding-top: 10px;
}

    .ad-footer img {
        width: 96px;
        height: 48px;
        margin-right: 10px;
        border-radius: 2px;
        object-fit: cover;
    }

.ad-org {
    display: flex;
    flex-direction: column;
}

    .ad-org p {
        color: #fff;
        font-size: 14px;
        padding: 0;
    }

    .ad-org div {
        color: deepskyblue;
        text-decoration: none;
        font-size: 14px;
    }

        .ad-org div:hover {
            color: skyblue;
        }


.carousel {
    max-width: 485px;
    width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

.carousel-indicators {
    bottom: -40px;
}


@media (max-width: 768px) {
    .carousel-control-prev {
        left: -30px;
    }

    .carousel-control-next {
        right: -30px;
    }
}

/* --------------------------------------- */




@media only screen and (max-width: 767px) {
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 18px;
    }
    .stats .bignum {
        font-size: 16px;
    }
    .stats .bignum .curr {
        white-space: nowrap;
    }
    .stats p {
        font-size: 12px;
    }

    .toolbar button {
        font-size: 14px;
        padding: 3px 8px;
    }

    .ads-nav-prev,
    .ads-nav-next {
        display: none;
    }

    .ad-container {
        padding: 10px 15px;
    }

    .ad-content a.ad-title {
        font-size: 16px;
    }
}
