/*#region Global settings*/
html{
  min-width: 400px;
  background-color: rgb(42, 42, 42);
}

/* Definovani zvolenych barev */
:root{
  --primaryColor: #f1eb3ad5;
  --primaryNavColor: #f1eb3a;
  --secondaryColor: #d5b100d8;
}

body{
  margin: 0px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a{
  text-decoration: none;
  color: black;
}

p{
  color: white;
}

h1{
  padding: 2rem 10vw;
  margin: 0px;
  text-transform: uppercase;
}
h2, h3{
  text-transform: uppercase;
  margin: 0px;
}

hr{
  border: solid gray 1px;
  border-radius: 5px;
  margin-right: 1rem;
}
/*#endregion*/

/*#region Header*/
header{
  height: 100vh;
  min-height: 750px;
  background-image: url(./img/headerbg.png);
  background-color: #222;
}

/* Umístění prvků v header */
#header-content{
  position: absolute;
  display: flex;
  top: 20vh;
  width: 80%;
}

#textDiv{
  flex: 1;
  height: 100%;
}

/* Efekt posunuti nadpisu obsahujicich jmeno a prijmeni */
#nameDiv h1:nth-child(1){
  font-size: 4rem;
  margin-bottom: 0px;
  padding-bottom: 0rem;
}

#nameDiv h1:nth-child(2){
  font-size: 4rem;
  margin-top: 0px;
  padding-top: 0rem;
  padding-left: 16vw;
}

#textDiv div{
  background-color: #f1eb3ad5;
}

#textDiv #whoDiv{
  background-color: #d5b100d8;
}

#textDiv #whoDiv h2{
  padding: 0.5rem 10vw;
  font-weight: normal;
  font-size: 1.5rem;
}

header img{
  height: 90%;
  border-radius: 0px 20px 20px 20px;
}

nav{
  margin-top: 6rem;
  padding: 0px;
}

nav ul {
  list-style-type: none;
  margin: 0px;
  padding: 0px;
  display: block;
  overflow: hidden;
}

nav li{
  float: left;
  display: inline;
}

nav a{
  font-weight: bold;
  display: block;
  padding: 1rem;

  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  transition: all 0.4s ease; 
}

nav a:hover{
  background-color: #222;
  color: white;
}

#textDiv nav div{
  background-color: var(--primaryNavColor);
  padding-left: calc(10vw - 1rem);
}

/* Trida pro prichyceni navigace */
.sticky{
  width: 100vw;
  position: fixed;
  top: 0px;
  margin: 0px;
}

/*#endregion*/

/*#region Page content*/
.content{
  padding: 2rem 10vw;
}

/* Nastaveni odlisnych barev pozadi sekci obsahu */
main section:nth-child(2n+1){
  background-color: #333;
}

main section:nth-child(2n){
  background-color: #444;
}

section h2, section h3{
  color: white;
  font-size: 3rem;
}
/*#endregion*/

/*#region About*/
#about .content p{
  margin-left: 1rem;
  text-align: justify;
}

/*#endregion*/

/*#region Education*/
#education .content{
  display: flex;
  justify-content: space-between;
  color: white;
}

#education .content div{
  flex: 1;
}

.content div dl{
  padding-left: 1rem;
}

.content div dt{
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}

.content div dd{
  padding: 0.5rem;
  font-size: 1.1rem;
}

dd a{
  color: lightgray;
  font-size: 0.8rem;
}
/*#endregion*/

/*#region Portfolio*/
#projects{
  display: flex;
  justify-content: space-evenly;
  padding: 2rem;
  background-color: inherit;
  flex-wrap: wrap;
}

.project-card:hover{
  background-color: var(--secondaryColor);
}

.project-card:hover .project-logo div{
  border-radius: 20px;

  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  transition: all 0.4s ease; 
}

.project-card{
  background-color: var(--primaryColor);
  margin: 1rem;
  border-radius: 20px;
  text-align: center;
  width: 30vw;

  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  transition: all 0.4s ease; 
}

.project-card h3{
  color: black;
  font-size: 1.5rem;
  margin: 0.5rem 6vw;
  padding-bottom: 0.5rem;
  height: 3.7rem;
  vertical-align: middle;
}

.project-card img{
  height: 7vh;
  align-self: center;
}

.project-logo{
  text-align: center;
  padding: 20px;
}

.project-logo div{
  background-color: white;
  margin: auto;
  border-radius: 150px;
  width: 7vh;
  height: 7vh;
  padding: 20px;
  overflow: hidden;
}

#projects-detail div{
  padding: 2rem;
}

#projects-detail .project-item{
  padding: 0rem;
}

.project-item img{
  height: 40vh;
  border-radius: 10px;
}

.project-item h3{
  padding-left: 1rem;
}

.project-item p{
  color: white;
}

/* Nastaveni pro stridave umisteni prvku v casti s prezentaci projektu */
video{
  max-width: 50%;
  border-radius: 10px;
}

#projects-detail .item-content{
  display: flex;
  flex-direction: row;
  padding-left: 3rem;
}

#projects-detail .project-item:nth-of-type(2n) .item-content{
  flex-direction: row-reverse;
  padding-right: 5rem;
}

#projects-detail .project-item:nth-of-type(2n) h2{
  text-align: right;
  padding-right: 3rem;
}

#projects-detail .project-item:nth-of-type(2n) .item-content div{
  padding-top: 0em;
  padding-bottom: 0em;
  padding-left: 0em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#projects-detail .item-content div{
  padding-top: 0em;
  padding-bottom: 0em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.item-content div p{
  margin-top: 0rem;
  text-align: justify;
}

#projects-detail .play-store-button{
  height: auto;
  width: 8rem;
  border-radius: 10px;
  padding: 0em;
}

#projects-detail .play-store-button a{
  height: inherit;
  width: inherit;
}

#projects-detail .play-store-button a img{
  height: inherit;
  width: inherit;
}
/*#endregion*/

/*#region Contacs*/
#contact .content > div{
  display: flex;
  font-size: 1.3rem;
  color: white;
  padding-left: 2rem;
}

#contact .content ul, #contact .content dl{
  padding: 0px;
}

#contact .content li{
  list-style-type: none;
  margin: 5px 5px 5px 0px;
}

#contact li a, #contact dd a{
  color: white;
  font-size: 1.3rem;
}

#contact li a:hover{
  color: var(--primaryColor);
  font-size: 1.7rem;

  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  transition: all 0.4s ease; 

}

#contact dd a:hover{
  color: var(--primaryColor);
}

#contact .content > div > div{
  flex: 1;
}

i{
  padding-right: 10px;
}
/*#endregion*/

/*#region Footer*/
footer{
  background-image: url(./img/headerbg.png);
}

footer p{
  margin: 0rem;
  padding: 1rem 10vw 1rem 10vw;
}
/*#endregion*/

/*#region Media Queries*/
/* Skryti profilove fotografie */
@media only screen and (max-width: 1100px){
  header img{
    height: 0px;
  }
  #header-content{
    width: 100%;
  }
}

/* Specificke nastaveni pro mobilni telefony a mensi tablety */
@media only screen and (max-width: 800px)
{
  video{
    max-width: 90%;
  }

  hr{
    border: solid gray 1px;
    border-radius: 5px;
    margin: 0rem 0rem 1rem 0rem;
  }
  
  .content{
    padding: 2rem 1rem;
  }

  /* Deaktivace hover actions na mobilnich zarizenich */
  nav a:hover{
    color: inherit;
    background-color: inherit;
  }

  /*#region Portfolio Mobile*/
  /* Zobrazeni karet s nazvy projektu pod sebou */
  #projects{
    display: block;
    justify-content: center;

    flex-wrap: nowrap;
  }

  .project-card{
    width: auto;
  }

  .project-item{
    margin-left: 0px;
  }

  /* Nastaveni pro zarovnani vsech casti s obsahem portfolia k levemu okraji stranky */
  #projects-detail .item-content{
    display: block;
    padding-left: 2rem;
  }

  #projects-detail .project-item:nth-of-type(2n) .item-content{
    padding-right: 0rem;
  }

  #projects-detail .project-item:nth-of-type(2n) h2{
    text-align: left;
  }

  #projects-detail .project-item .item-content {
    margin-top: 1rem;
  }

  #projects-detail .project-item .item-content p{
    margin-top: 1rem;
    margin-right: 2rem;
  }

  .project-item{
    margin-left: 0px;
    margin-right: 0px;
  }

  #projects-detail div {
    padding: 0rem;
  } 

  /* Deaktivace hover actions na mobilnich zarizenich */
  .project-card:hover .project-logo div{
    border-radius: 150px;
  }   

  .project-card:hover{
    background-color: var(--primaryColor);
  }
  /*#endregion*/

  /* Zobrazeni sekci rozdelenych na dve casti pod sebou misto vedle sebe */
  #education .content{
    display: block;
  }
  
  #contact .content > div{
    display: block;
  }

  /* Deaktivace hover actions na mobilnich zarizenich */
  #contact li a:hover, #contact dd a:hover{
    color: white;
    font-size: 1.3rem;
  }

  footer p{
    margin: 0rem;
    padding: 1rem 1rem 1rem 1rem;
  }  
}
/*#endregion*/