@font-face {
    font-family: Poppins;
    src: url(fonts/Poppins-ExtraBold.ttf);
    font-weight: bold;
    font-style: normal; /* Přidáno pro lepší kompatibilitu */
}

@font-face {
    font-family: Poppins;
    src: url(fonts/Poppins-Regular.ttf);
    font-weight: normal;
    font-style: normal; /* Přidáno pro lepší kompatibilitu */
    
}

html {
    background: #414042;
}

body {
    font: 16px "Poppins";
    color: #414042;
    background: #F9F9F9;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 100px 0 0 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  

}



footer{
    box-sizing: border-box;
    text-align: center;
    background: #414042;
    padding: 50px 0 0 0;
    clip-path: polygon(0 30px, 100% 0, 100% 105%, 0 105%);
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
}

body > header {
    height: 100px;
    width: 100%;
    background: #2550a7;
    color: white;
    display: flex;
    justify-content: space-evenly;
    position: fixed;
    z-index: 1;
    top: 0;
    
}

#logo {
    height: 90px;
    margin: auto 0 auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: url(obrazky/logo.png) no-repeat;
    background-size: 90px 90px;
}

#logo > * {
    margin: 0 0 0 100px;
}

#logo h1 {
    font-weight: normal;
    font-size: 2em;
    line-height: 1.2em;
    color:white;
}

#logo h1 span {
    text-transform: uppercase;
    font-weight: bold;
}

#logo small {
    font-size: 0.8em;
    text-transform: uppercase;


}

nav ul {
    margin: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li {
    padding: 0 25px;
    margin: 0 5px;
    font-size: 1em;
    line-height: 1em;
}

nav ul a {
    color: white;
    padding: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all transform 0.3s ease;
    display: inline-block;
}

 .aktivni {
    border-bottom: 1px solid #c7431e;
}
article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
    color: #00386b;
    padding: 10px 0;

}

article h1 {
    font-size: 2.3em;
    font-weight: bold;
    text-transform: uppercase;
    max-width: max-content;
    border-bottom:5px solid #c7431e;
    margin: 0;
    
}

article h2 {
    font-size: 2em;
}

.avatar  {
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    display: block;
    border: 4px solid #ccc;
    transition: transform 1s ease-out, filter 0.1s ease-in, border-color 0.1s ease-in;
    filter: grayscale(1);
    float: right;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.avatar:hover{
    filter: grayscale(0);
    border-color: #4caf50;
    transform: scale(1.05);
    
}

article {
   
    padding: 50px 50px 10px 50px; 
    margin: 0;
   
}

main {
    flex: 1;
    width: 960px;
    margin: 0 auto;
    

}

article header {
    padding: 20px 0;
}

article section p {
    line-height: 1.8em;
    margin-bottom: 1.5em;
}

article section a  {
    color: #f10707d7;
    text-decoration: none; /* Odstraněno podtržení ve výchozím stavu */
}

article section a:hover {
    color: #c7431e; /* Tmavší odstín oranžové při hoveru */
}
.cistic {
    clear: both;
}

.reference-tlacitko, .kontakt-tlacitko {
    background: #113c91; /* tlumenější modrá */
    color: white;
    font-size: 0.9em;
    padding: 12px 25px;
    border-radius: 25px;
    transition: all 0.4s ease-in-out;
    display: inline-block;
    border: 1px solid transparent;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

nav ul a:hover,.reference-tlacitko:hover, .kontakt-tlacitko:hover {
    transform: scale(1.1);
    color: #ffffff;
    border: 1px solid #ff6b6b; /* jemnější červená */
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.4);
    background: linear-gradient(45deg, #113c91, #28a745); /* tlumená modrozelená kombinace */
    animation: pulse 0.6s ease-in-out;
    border-radius: 25px;
}

#reference img {
    border: 1px solid gray;
    padding: 6px;
    box-shadow: 3px 3px 6px #999999;
    margin-right: 6px;
    transition: all 0.3s ease;
}

#reference img:hover {
    transform: scale(1.1);
}

#reference a {
    text-decoration: none;
}

#reference a:hover {
    text-decoration: none;
}

/* obtékání obálky v kontakt */
.vlevo {
    float: left;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: auto;
  margin-right: 10px;
}

.menu-toggle span {
  height: 4px;
  width: 25px;
  background: white;
  margin: 3px 0;
}

#dovednosti td {
    width: 33%;
    padding: 10px;
    vertical-align: top;
    border: 1px solid gray;
}

#dovednosti {
    border-collapse: collapse;
}

@keyframes pulse {
    0% { transform: scale(1.05); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1.1); }
}



/* Responzivní úpravy pro mobilní zařízení */
@media (max-width: 1100px) {
    body {
        padding-top: 150px;
    }




    #logo h1 {
        font-size: 1em;
    }
    body > header {
        
        padding: 1px;
        align-items: center;
        text-align: center;
        height: auto;
    }

    main {
         width: auto;
         margin: 0;
    }



   
    nav ul {
        padding: 0;
    }

    nav ul li {
        padding: 10px 0;
        line-height: 1.5em;
    }
}



@media (max-width: 750px) {
    body {
        font-size: 14px;
        padding: 0;
    }

    body > header {
        height: auto;
        position: static;
    }


    nav ul {
        display: none;
    }

    nav ul.show {
      display: block;
    }

    .menu-toggle {
        display: flex

    }

    .avatar {
        max-width: 180px;
        margin: 0 auto 20px;
       
    }

    article h1 {
        font-size: 1.8em;
     
    }

    article h2 {
        font-size: 1.5em;
    }

    article {
        padding: 10px;
        box-shadow: none;
    }

}

@media (max-width: 500px) {

    body {
        font-size: 10px;
    }

    .frame, section {
        text-align: left;
        padding: 0;
        margin: 0;
    }

    iframe{
        zoom: 0.6;
    }
}