* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

body {
    background-color: #121212;
    color:white;
    overflow-x:hidden;
}

.container {
    margin: 0 auto;
    max-width: 1600px;
    display:block;
}

/* --- NAVIGATION --- */

nav {
    position:fixed;
    top:0;
    left:0;
    right:0;
    display:flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 80px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    z-index: 50;
}   

.nav-links a {
    border-left:2px solid white;
    text-decoration: none;
    color: white;
    padding: 0 10px;
    font-style: oblique;
    font-family: Arial, Helvetica, sans-serif, Helvetica;
}

.nav-links a:hover {
    font-weight: bold;
}

.nav_img img {
    max-width: 50px;
}

/* --- MOBILE NAVIGATION */

.mobile-nav-icon {
    margin-top:10px;
    display:none;
}

@media only screen and (max-width:650px) {
    nav {
        display: flex;
        justify-content: space-between; 
        align-items: center;
        padding: 10px 20px;
    }

    .nav-links {
        display: none; /* jQuery slideToggle to pak změní na display: flex */
        flex-direction: column; /* TADY: Položky se seřadí pod sebe */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #1a1a1aa0 0%, #0f0f0fa0 100%);
        padding: 0;
        z-index: 100;
    }

    .nav-links a {
        display: block; /* Odkaz zabere celou šířku řádku */
        text-align: right; /* Text bude na pravé straně */
        padding: 20px 30px; /* Větší mezery pro snadnější klikání */
        border-left:none;
        width: 100%;
        box-sizing: border-box; /* Zajistí, že padding neroztáhne šířku */
    }

    .nav-links.active {
        display: flex; 
    }

    .mobile-nav-icon {
        display: block;
        margin-top: 0; 
        margin-right:20px;
        order:2;
        cursor: pointer;
    }
    
    .mobile-nav-icon img {
        width: 30px; 
    }

    .nav_img {
        order: 1; /* Pojistka pro logo vlevo */
    }
}

/* --- HEADER --- */

header {
    background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),url("/img/cerna.jpg");
    background-size:cover;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

header::after {
    content:"";
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height: 200px;
    background:linear-gradient(to bottom, transparent, #121212);
}

/* --- HEADER MAIN TEXT --- */

.uvod {
    position:absolute;
    top:50%;
    left:30%;
    transform: translate(-50%,-50%);
    color:white;
    z-index: 10;
}

.uvod h1 {
    text-align: center;
    letter-spacing: 2px;
    font-size: 40px;
}

.uvod h3 {
    text-align: center; 
    margin-top:5px;
    font-style: italic;
    font-weight:lighter;
}

.uvod p {
    text-align: center;
    font-size:20px;
}

@media only screen and (max-width:1660px) {
        header {
        background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),url("/img/cerna_1260.jpg");
        background-size:cover;
        height: 100vh;
    }

    .web .image img {
        width: 65%;
        margin:17.5%;
    }

    .doucovani .span-1-of-3 {
        width: 32.26%; 
    }
}

@media only screen and (max-width:1250px) {
    header {
        background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.6)),url("/img/cerna_mobil.jpg");
        background-size:cover;
        height: 100vh;
    }
    .uvod {
        left:50%;
        width: 95%;
        transform: translate(-50%,-50%);
    }

    .uvod p {
        margin:50px;
    }

    .filler-image {
        filter: none !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .filler-image img {
        display:block;
        margin: 20px auto;
        margin-top:-200px !important;
        width: 80%;
        border:0px !important;
        box-shadow: 0px 5px 10px gray;
    }
}

/* --- HEADER ARROW --- */

.arrow-down {
    position:absolute;
    top:90%;
    left:50%;
    transform: translate(-50%,-50%);
    z-index: 10;
}

.arrow-down img:hover {
    transition: 0.2s;
    cursor:pointer;
    transform: scale(1.05);
    filter:drop-shadow(0px 0px 10px rgba(255,255,255,0.5))
}

.arrow-down img {
    width: 60px;
}

/* - HEADING MAIN - */

.heading-main h2 {
    text-align: center;
    margin-top:20px;
    font-size:35px;
}

.heading-main h2:after {
    content: "";
    display:block;
    width: 250px;
    border-bottom:2px solid white;
    margin:10px auto;
}

/* --- WEB SECTION --- */

.web {
    display:flex;
    justify-content: center;
    flex-wrap: wrap;
}

@media only screen and (min-width:1660px) {

    .web .image {
    position:relative;
    display:inline-block;
    }   

    .web .image:before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
    }
}

.web .image img {
    margin-top:20%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 1px solid white;
}

.web-text {
    width: 50%;
    margin: 0 auto;
}

@media only screen and (max-width:650px) {
    .web-text {
        width: 100%;
    }

    .nabidka {
        margin:0 20px;
    }
}

.popis p {
    text-align: center;
    font-size:20px;
}

.web ul li {
    font-size:20px;
    list-style-type: none;
    margin:10px;
}

.web ul li strong {
    font-size:22px;
}

.web ul li p {
    margin-left:20px;
    margin-top:10px;
}

.web::after {
    content:"";
    display:table;
    clear:both;
}

/* --- WEB SECTION BUTTON --- */

.zajem {
    margin: 50px auto;
    text-align:center;
    background-color: white;
    width: 250px;
    padding: 12px 28px;
    font-weight: bold;
    border-radius: 5px;        
    text-transform: uppercase;
    letter-spacing: 1px;
}

.zajem:hover {
    transition: 0.5s;
    background-color: #f0f0f0; /* Jemná změna při najetí */
    transform: translateY(-2px); /* Lehké nadzvednutí */
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
}

.zajem a {
    text-decoration: none;
    color: black;
}

@media only screen and (max-width:500px) {
    .zajem {
        width: 90%;
    }
}

/* --- WEB SECTION COOPERATION --- */

.spoluprace { 
    margin-top:150px;
    padding: 0 10px;
    text-align: right;
}

.filler-image {
    text-align: left;
    filter: brightness(0.80) grayscale(20%);
    mask-image: linear-gradient(to top, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 80%, transparent 101%);
}

.filler-image img {
    width: 80%;
    border:1px solid white;
    border-top:0px;
}

.spoluprace-list {
    list-style: none;
    padding:0;
    margin-top:30px;
}

.spoluprace-list li {
    display:flex;
    align-items: center;
    justify-content: right;
    margin-bottom:30px;
}

.web-icon {
    width: 55px;
    height: auto;
    flex-shrink: 0;
    margin-left:20px;
}

.spoluprace hr {
    width: 350px;
    display:flex;
    justify-self: right;
}

@media only screen and (max-width:320px) {
    .icon {
        margin-left:0px;
    }
}

.text-box {
    margin-right:20px;
}

@media only screen and (max-width: 1250px) {
    .spoluprace {
        text-align: center; 
    }

    .spoluprace .row {
        display: flex;
        flex-direction: column; 
        align-items: center;   
    }

    .spoluprace hr {
        justify-self: center; 
        margin: 10px auto;
    }


    .spoluprace-list li {
        justify-content: center;
        text-align: center;
        flex-direction: column-reverse; 
        gap: 15px;
    }

    /* Úprava ikon a textu v seznamu */
    .text-box {
        margin-right: 0;
    }

    .web-icon {
        margin-left: 0;
        margin-top: 10px;
    }

    .filler-image {
        margin-bottom: 50px; 
    }

    .filler-image img {
        width: 90%;
    }
}

/* --- TEACHING SECTION --- */

.doucovani {
    margin-top:100px;
}

.doucovani-vyber {
    margin-top:50px;
}

.doucovani-box {
    margin: 10px auto;
    border:1px solid white;
    min-height: 400px;
    max-width: 350px;
    border-radius: 20px;
    box-shadow: 0 0px 15px #ffffff87;
    display:block;
}

.second-main h2 {
    font-size:30px;
    text-align: center;
    margin-top:50px;
}

.second-main h2:after {
    content:"";
    display:block;
    margin: 0 auto;
    width: 200px;
    box-shadow: 0 5px 15px white;
    border:1px solid white;
}

.doucovani-text {
    text-align: center;
    margin: 0 auto;
}

.doucovani-text ul li {
    list-style: none;
    margin:10px;
    font-size:17px;
}

.doucovani-text hr {
    margin: 20px auto;
    width: 100px;
}

.doucovani-icon {
    text-align: center;
    margin-top:30px;
}

.doucovani-icon img {
    width: 100px;
    height: auto;
}

@media only screen and (max-width: 350px) {
    .doucovani-icon img {
        display:none !important;
    }
}

@media only screen and (max-width:1120px) {
    .doucovani .span-1-of-3 {
        width: 100%; 
    }

    
}
/* --- FOOTER --- */

footer {
    width: 80%;
    clear:both;
    margin: 0 auto;
}

.kontakt {
    margin-top:100px;
}

.kontakt .row {
    display:flex;
    align-items: center;
}

.kontakt-main {
    font-size:30px;
}

.kontakt hr {
    width: 450px;
    display:flex;
    justify-self: right;
    margin: 10px 0;
}

.kontakt-image {
    text-align: center;
}

.kontakt-image img {
    text-align:center;
    width: 70%;
    height: auto;
    border-radius: 20px; /* Stejné zaoblení jako u tvých boxů */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Jemný bílý okraj */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Hluboký stín pod fotkou */
    transition: transform 0.3s;/* Pro efekt při najetí myší */
}

.kontakt-image img:hover {
    transform: scale(1.02); /* Jemné zvětšení při najetí */
}

.kontakt-udaje {
    text-align: right;
    margin-right:100px;
}

.kontakt-udaje ul li {
    list-style-type: none;
    margin:20px 0;
}

.kontakt-udaje ul li strong {
    font-size:20px;
}

.kontakt-udaje ul li p {
    font-size:25px;
    margin: 10px 0;
}

@media only screen and (max-width: 1250px) {
    .kontakt .span-1-of-2 {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 50px;
        float: none;
    }

    .kontakt .row {
        display: block;
    }

    .kontakt-image img {
        width: 100%; 
        max-width: 500px; 
        margin: 0 auto;
    }

    .kontakt-udaje {
        text-align: center;
        margin-right: 0;
        padding: 0 20px;
    }

    .kontakt hr {
        width: 100%;
    }
}

/* --- LICENSE --- */

.license {
    height: 100px;
    display:flex;
    flex-direction:column-reverse;
    justify-self: center;
    margin:30px;
    color: #777;
    text-align: center;
}

.license a {
    color:#888;
    text-decoration: none;
}
