* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body, html {
      height: 100%;
      font-family: 'Instrument Serif', serif;
        background: white;
        
    }

textarea {
    resize: vertical;
    height: auto;
}


    .full-width {
      width: 100%;
    }

    /* První řádek s fotkou */
    .head-row {
      /*background-image: url('../images/home.jpeg');*/
    background: #2d2d2e;
      background-size: cover;
      background-position: center;
      height: 100vh; /* nastav výšku fotky podle potřeby */
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      text-align: center;
    }

.text-box img {
    margin: 0 auto;
}
.text-box {
    display: flex;
    flex-direction: column;
}
    
.head-box {
    display: flex;
}

.flex-50 {
flex: 1; /* Rozdělí dostupné místo rovnoměrně mezi všechny prvky */
  width: 50%;
  box-sizing: border-box; /* Zabraňuje zvětšení šířky kvůli paddingům nebo okrajům */
  padding: 10px; /* Volitelné - pro vzhledové úpravy */
}

    /* Responzivní obrázek */
    .responsive-img {
      max-width: 100%;
      height: auto;
    }

.flex-content {
    display: flex;
        flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-around;
}


        /* Styly pro kontaktní formulář */
    .contact-form {
      max-width: 400px;
    min-width: 300px;
      margin: 0 auto;
      padding: 20px;
      border: 1px solid #ccc;
      border-radius: 5px;
      background-color: #f9f9f9;
    }

    .input-field {
      width: 100%;
      margin-bottom: 10px;
      padding: 8px;
      border-radius: 3px;
      border: 1px solid #ccc;
    }

    .submit-btn {
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 3px;
      background-color: #007bff;
      color: white;
      cursor: pointer;
    }

    .submit-btn:hover {
      background-color: #0056b3;
    }

    .message {
      margin-top: 10px;
    }
        /* Vzhled inputu pro telefonní číslo */
    .input-phone {
      width: 100%;
      margin-bottom: 10px;
      padding: 8px;
      border-radius: 3px;
      border: 1px solid #ccc;
    }

    /* Podpora pro placeholder v moderních prohlížečích */
    ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
      color: #999;
    }
    ::-moz-placeholder { /* Firefox 19+ */
      color: #999;
    }
    :-ms-input-placeholder { /* IE 10+ */
      color: #999;
    }
    :-moz-placeholder { /* Firefox 18- */
      color: #999;
    }

.loader {
        min-width: 200px;
        min-height: 200px;
        border-radius: 50%;
        position: relative;
        animation: rotate 1s linear infinite;
        display: inline-block;
      }
      .loader::before , .loader::after {
        content: "";
        box-sizing: border-box;
        position: absolute;
        inset: 0px;
        border-radius: 50%;
        border: 5px solid #FFF;
        animation: prixClipFix 2s linear infinite ;
      }
      .loader::after{
        inset: 8px;
        transform: rotate3d(90, 90, 0, 180deg );
        border-color: #FF3D00;
      }

      @keyframes rotate {
        0%   {transform: rotate(0deg)}
        100%   {transform: rotate(360deg)}
      }

      @keyframes prixClipFix {
          0%   {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
          50%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
          75%, 100%  {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
      }

.thanks-box {
    width: 100%;
    display: block;
    text-align: center;
    
}
/*Slider*/
.slider {
  width: 100%; /* Šířka slideru */
  overflow: hidden; /* Skryje obsah, který by přesahoval šířku slideru */
}

.slides {
  display: flex; /* Zobrazí slides jako flex container */
  transition: transform 0.5s ease; /* Plynulý přechod */
}

.slide {
  flex: 0 0 auto; /* Automatická šířka pro každý slide */
  width: 50%; /* Každá reference bude zabírat 50% šířky slideru */
  padding: 20px; /* Volitelné - pro přidání odsazení */
  box-sizing: border-box; /* Zabrání přidání paddingu k celkové šířce prvku */
}

.slide a img:hover {
  transform: scale(1.1); /* Zvětšení odkazu o 10 % při najetí myší */
}

img {
  max-width: 100%;
  height: auto;
}

/* Černobílý obrázek */
#partners img {
  filter: grayscale(100%); /* Převede obrázek na černobílý */
  transition: filter 0.3s ease; /* Přidání přechodové animace na změnu filtru */
}

/* Barevný obrázek při najetí myší */
#partners img:hover {
  filter: grayscale(0%); /* Odstraní černobílý efekt, čímž zobrazí barevný obrázek */
}

.content-row#partners .flex-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.content-row#partners div {
    padding: 20px;
}
.content-row#partners img {
    width: 100%;
    max-width: 200px;
}

    /* Další řádek s obsahem */
    .content-row {
     
      padding: 20px;
    }
/* Každý sudý řádek */
.content-row:nth-child(odd) {
  background-color: #f2f2f2;
}

    /* Vnitřní obsah dalšího řádku */
    .content {
      max-width: 100%;
      padding: 0 25px 0 25px;
     
    }

.center-text {
    text-align: center;
}

#programing-languages img {
    max-width: 100px;
}
#html,#css,#javascript,#php,#jquery {
    position: relative; 
}
#html::before,#css::before,#javascript::before,#php::before,#jquery::before {
    content: ""; 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    
}
#html::before{
  background: url("../images/html.png"); 
        background-size: contain;
    background-repeat: no-repeat;
        position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}#css::before{
  background: url("../images/css.png"); 
        background-size: contain;
    background-repeat: no-repeat;
        position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}#javascript::before{
  background: url("../images/javascript.png");
        background-size: contain;
    background-repeat: no-repeat;
        position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}#jquery::before{
  background: url("../images/jquery.png");  
        background-size: contain;
    background-repeat: no-repeat;
        position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}#php::before{
  background: url("../images/php.png");
        background-size: contain;
    background-repeat: no-repeat;
        position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#programing-languages .row {
    background: white;
}

.contact-box {
    display: flex;
    flex-direction: column;
}
.item-box {
        display: flex;
    justify-content: space-between;
}
.contact-information h2{
    margin-bottom: 10px;
}
    /* Styly pro patičku */
    #footer {
      position: static;
      bottom: 0;
      width: 100%;
      background-color: #f1f1f1;
      text-align: center;
      padding: 10px;
    }
/*Mobil*/
@media(max-width: 767px){
    .flex-content,
    .slides{
        flex-direction: column;
    }
    #contact .flex-content {
        flex-direction: column-reverse;
    }
    .slide{
        width: 100%;
    }
    .flex-50 {
        flex: auto;
        width: auto;
    }
}