﻿* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}



body {
    font-family: Verdana, sans-serif;
    margin: 10px;
}

main {
    position: relative;
/*    width: 80%;*/
    max-width: 1800px;
    margin: auto;
}


    main h1 {
        text-align: center;
        font-size: 80px;
        color: red;
        margin-bottom: 30px;
        line-height: 1.2;
    }

    main h2 {
        text-align: center;
        font-size: 40px;
        color: black;
        margin-bottom: 100px;
    }

.row{
    margin: 0 50px;
}

.row > .column {
    padding: 0 8px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

.column {
    float: left;
    width: 25%;
    margin-bottom:10px;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
}

/* Modal Content */
.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 70%;
    max-width: 1200px;
}

/* The Close Button */
.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: #999;
        text-decoration: none;
        cursor: pointer;
    }

.mySlides {
    display: none;
}

.cursor {
    cursor: pointer;
}

/* Uvidíme */

/*.download-btn {
    position: absolute;
    top: 10px;
    right: 50px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}*/

/* Tlačítko pro stažení */
#download-link {
    position: absolute;
    top: 10px;
    right: 50px;
    text-decoration: none;
    z-index: 2;
}

.download-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}






/* Next & previous buttons */
/*.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 45%;
    width: auto;
    padding: 100px 16px;
    margin-top: -50px;
    color: blue;
    background-color: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    font-size: 30px;
    transition: 0.1s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}*/

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 100px 20px;
    color: blue;
    background-color: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    font-size: 30px;
    transition: background-color 0.1s ease, color 0.1s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2;
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

    /* On hover, add a black background color with a little bit see-through */
    .prev:hover,
    .next:hover {
        color: white;
        background-color: rgba(0, 0, 0, 0.8);
    }

/* Number text (1/3 etc) */
.numbertext {
    color:black;
/*    color: #f2f2f2;*/
    font-size: 14px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

img {
    margin-bottom: -4px;
}

.caption-container {
    text-align: center;
    background-color: black;
    padding: 30px 16px;
    color: white;
}

.demo {
    opacity: 0.6;
}

    .active,
    .demo:hover {
        opacity: 1;
    }

img.hover-shadow {
    transition: 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}



.hodiny {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: otaceni360 6s linear infinite;
    transform-origin: center;
    font-size: 100px;
    margin-bottom:100px;
}

main p {
    font-size:50px
}

.let {
    line-height:1.3;
}

.skryty {
    display: none;
}


@keyframes otaceni360 {
    0% {
        transform: rotate(0deg);
    }

    33% {
        transform: rotate(180deg);
    }

    50% {
        transform: rotate(180deg);
    }
    /* Pauza 1s */
    83% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(360deg);
    }
    /* Pauza 1s */
}





@media (max-width: 900px) {
    .skryty{
        display:none;
    }

    .column {
        float: left;
        width: 100%;
    }
}



@media screen and (max-width: 1300px) {
    .modal-content {
        width: 90%;
    }

    #download-link {
        right: 15px;
        top: 10px;
    }

    .download-btn {
        font-size: 16px;
        padding: 6px 10px;
    }
}

@media screen and (max-width: 768px) {
    #download-link {
        right: 8px;
        top: 5px;
    }

    .download-btn {
        font-size: 14px;
        padding: 5px 8px;
    }
}

@media screen and (max-width: 400px) {
    #download-link {
        right: 8px;
        top: 5px;
    }

    .download-btn {
        font-size: 10px;
        padding: 3px 4px;
    }
}


@media screen and (min-width: 1301px) {
    .modal-content {
        width: 90%;
    }
}

/* Šedší šipky na středních obrazovkách */
@media screen and (max-width: 1300px) {
    .modal-content {
        width: 90%;
    }

    .prev,
    .next {
        padding: 100px 16px;
        font-size: 26px;
    }
}

/* Minimalistické šipky na malých zařízeních */
@media screen and (max-width: 768px) {
    .prev,
    .next {
        padding: 50px 12px;
        font-size: 20px;
    }

    #nadpisletaku {
        font-size: 2.5rem;
    }

    main h2 {
        font-size: 1.6rem;
    }



}


@media screen and (max-width: 400px) {
    .prev,
    .next {
        padding: 50px 6px;
        font-size: 15px;
    }

    .hodiny {
        font-size: 40px;
    }

  main p {
        font-size: 15px
    }

/*   main h1 {
        font-size: 20px;
    }

    main h2 {
        font-size: 18px;
    }*/
}


@media screen and (max-width: 280px) {
    .prev,
    .next {
        padding: 50px 3px;
        font-size: 10px;
    }
    
    #download-link {
        right: 3px;
        top: 3px;
    }

    .download-btn {
        font-size: 7px;
        padding: 2px 3px;
    }


    .hodiny {
        font-size: 20px;
    }

  main p {
        font-size: 15px
    }

/*   main h1 {
        font-size: 18px;
    }

    main h2 {
        font-size: 13px;
    }*/
}








@media (prefers-color-scheme: dark) {
    html {
        color: #e4e4e4;
        background-color: #121212;
    }

    main {
        background: linear-gradient(180deg, #0f172a, #1e293b);
        color: #e5e7eb;
        box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    }


        main h1, h2, h3, h4, p {
            color: #ffffff;
        }

    
}