/*pro cely dokument*/
*{
   font-family: 'Rubik';
    color: rgb(240, 238, 236);
    scroll-behavior: smooth;
}


/*Můj zcela praktický layout webu*/
body{
  background-color: #e78636;
  display: grid;
  grid-template-areas: 
    "header header header"
    "a article b"
    "a footer b";
  grid-template-columns: 8% 82% 8%;
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  height: 100vh;
  margin: 0;
}

@media (max-width: 768px){
  body{
    grid-template-columns: 2% 94% 2%;
  }
}
@media (max-width: 430px){
  body{
    grid-template-columns: 0% 95% 0%;
  }
}


#mainArticle { 
  padding: 3%;
  grid-area: article; 
  background:  #363636;     
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
  #leftNav { 
    grid-area: a; 
    }
  #rightNav { 
    grid-area: b; 
    } 
#pageFooter {
  grid-area: footer;
  background-color: #363636;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
#pageFooter p{
  font-size: 18px;
}

@media (max-width: 768px){
  #pageFooter p{
    font-size: 16px;
}
}
@media (max-width: 430px){
  #pageFooter p{
    font-size: 11px;
}
}



.bgimg{
  background-image: url(https://gosunbolt.com/wp-content/uploads/2020/08/Velocity-workstation-and-additional-benches-1536x864.jpg);
  box-shadow: inset 0 0 0 1000px rgba(27, 23, 23, 0.781);
  height: 700px;
  margin: 5% 0%;
  border-radius: 4px;
}

@media (max-width: 768px){
  .bgimg{
  height: 350px;
}
}
@media (max-width: 430px){
  .bgimg{
  height: 300px;
}
}

/*pro jednotlive a specificke vecicky:)*/
.uppercase{
    text-transform: uppercase;
}
.orange{
    color: #febe29;
}
h3{
    font-weight: 300;
    font-variant: small-caps
}
.m0{
 margin: 0;
}
.mtb5{
    margin: 50px 0px;
}
h1{
    font-size: 70px;
    font-weight: 400;
}
p{
  text-align: justify;
  line-height: 140%;
  font-size: 20px;
  color: #E1E5F2;
}
h2{
    font-size: 35px;
    font-weight: 200;
    font-variant: small-caps
}


/*Přechod při otevření webu - javascript xd*/
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f99c3d;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 2s cubic-bezier(0.25, 0.1, 0.25, 1); /* Slows down in the middle */
}
#overlay.hidden {
  transform: translateY(-100%);
}


@media (max-width: 768px){
    h1{
    font-size: 250%;
  }
  h2{
    font-size: 35px;
  }
  p{
    font-size: 23px;
  }
}




/*velice simple navbar*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 20px;
    width: 90%;
}
.logo {
    color: rgb(240, 238, 236);
    font-size: 35px;
    font-weight: bold;
}
.nav-links {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}
.nav-links a {
    color: rgb(240, 238, 236);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #febe29;
}

@media (max-width: 768px){
    .logo{
    font-size: 20px;
  }
  .nav-links a{
    font-size: 15px;
  }
  .navbar{
    padding: 10px 5px;
  }
  .nav-links li{
    margin: 0 10px;
  }
}
@media (max-width: 430px){
  .logo{
  font-size: 14px;
}
.nav-links a{
  font-size: 12px;
}
.navbar{
  padding: 10px 3px;
}
.nav-links li{
  margin: 0 5px;
}
}


/*header*/
.asiheader{
    line-height: 1rem;
    padding: 11% 20px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    height: 100%;
}
.asiheader h1{
    font-size: 100px;
    color: #febe29;
    font-weight: 300;
    
}
.asiheader h3{
    font-size: 30px;
    font-variant: small-caps
}
.asiheader p{
    font-size: 70px;
    font-weight: 100;
    font-variant: small-caps
}

@media (max-width: 768px){
    .asiheader h1{
    font-size: 280%;
  }
    .asiheader h3{
    font-size: 150%;
  }
  .asiheader p{
    font-size: 150%;
  }
}
@media (max-width: 430px){
  .asiheader h1{
  font-size: 160%;
  }
  .asiheader h3{
    font-size: 120%;
  }
  .asiheader p{
    font-size: 120%;
  }
}

.mezera{
  text-align: center;
  font-style: italic;
  font-weight: 50;
  font-variant: small-caps;
  line-height: 2;
  font-size: 240%;
  color:#ffcf60;
}

.right{
  margin-right: 40%; 
  text-align: right;
}
@media (max-width: 768px){
  .right{
    margin-right: 25%; 
}
}
@media (max-width: 768px){
  .mezera{
    font-size: 220%; 
}
}
@media (max-width: 430px){
  .mezera{
    font-size: 200%; 
}
}



/*Ta animace textu na front page kterou naprosto chápu*/
  .content{
    overflow: hidden;
    font-size: 2vw;
    font-weight: 300;
    line-height: 40px;
    position: relative;
  }

  @media (max-width: 768px){
    .content__container{
    font-size: 25px;
    height: 10px;
  }
}

  @media (max-width: 430px){
    .content__container{
    font-size: 18px;
    height: 10px;
  }
    .content{
      font-size: 3vw;
    }
}
  .content__container {
    font-weight: 600;
    overflow: hidden;
    height: 38px;
  }
 .content__container ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
 }
  .content__container__text {
    display: inline;
    color: #F4F5F6;
    float: left;
    margin: 0;
  }
  .content__container__list {
    margin-top: 0;
    text-align: left;
    list-style: none;
    -webkit-animation-name: change;
    -webkit-animation-duration: 10s;
    -webkit-animation-iteration-count: infinite;
    animation-name: change;
    animation-duration: 10s;
    animation-iteration-count: infinite;
  }
  .content__container__list__item {
    line-height: 40px;
    margin: 0;
    color: #febe29;
  }
  @-webkit-keyframes opacity {
    0%, 100% {
      opacity: 0;
  }
    50% {
      opacity: 1;
    }
  }
  @-webkit-keyframes change {
    0%, 12.66%, 100% {
      transform: translate3d(0, 0, 0);
  }
    16.66%, 29.32% {
      transform: translate3d(0, -25%, 0);
  }
    33.32%, 45.98% {
      transform: translate3d(0, -50%, 0);
  }
    49.98%, 62.64% {
      transform: translate3d(0, -75%, 0);
  }
    66.64%, 79.3% {
      transform: translate3d(0, -50%, 0);
  }
    83.3%, 95.96% {
      transform: translate3d(0, -25%, 0);
    }
  }
  @keyframes opacity {
    0%, 100% {
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
  }
  @keyframes change {
    0%, 12.66%, 100% {
      transform: translate3d(0, 0, 0);
    }
    16.66%, 29.32% {
      transform: translate3d(0, -25%, 0);
    }
    33.32%, 45.98% {
      transform: translate3d(0, -50%, 0);
    }
    49.98%, 62.64% {
      transform: translate3d(0, -75%, 0);
    }
    66.64%, 79.3% {
      transform: translate3d(0, -50%, 0);
    }
    83.3%, 95.96% {
      transform: translate3d(0, -25%, 0);
    }
  }



/*prostě containery a image na left a right zarovnání*/
.container1{
    margin: 0px 100px;
    width: 80%;
    display: inline-block;
}
.container2{
  margin: 2%;
  padding: 2% 0%;
  width: 45%;
}
.container3{
  text-align: justify;
}
.container4{
  float: right;
  margin: 2%;
  padding: 2% 0%;
  width: 45%;
}

.imageright{
  float: right;
  margin: 5px;
  text-align: justify;
  width: 45%;
  object-fit: cover;
}
.imageleft {
  float: left;
  margin: 5px;
  text-align: justify;
  width: 45%; 
  object-fit: cover;
}

@media (max-width: 768px){
  .container1{
    display: inline; 
    float: none; 
    margin: 0px 10px;
}
.container2{
  float: none;
  width: 90%;
  padding: 20px;
}
.container4{
  float: none; 
  width: 90%;
  padding: 20px;
}
.imageleft{
  width: 640px;
  object-fit: cover;
  float: none;
  justify-content: center;
}
.imageright{
  width: 640px;
  object-fit: cover;
  float: none;
  justify-content: center;
}
.container2 p, .container4 p{
  font-size: 26px;
}
.container2 h2, .container4 h2{
  font-size: 36px;
}
}
@media (max-width: 430px){
.imageleft{
  width: 350px;
  object-fit: cover;
}
.imageright{
  width: 350px;
  object-fit: cover;
}
.container2, .container4{
  float: none;
  width: 90%;
  padding: 20px;
  margin-bottom: 60px;
}
.container2 p, .container4 p{
  font-size: 18px;
}
.container2 h2, .container4 h2{
  font-size: 24px;
}
}



/*kartičky design :) kartičky v containeru, karticky hover a presazeni image v karticce + úprava textu */
.card-container {
  display: flex;
  gap: 65px;
  flex-wrap: wrap;
  padding: 20px;
}
.card {
  background-color: #dd8936;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  width: 400px;
  text-align: center;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-2px);
}
.card h2{
  font-size: 35px;
  margin: 16px 0 8px;
  font-weight: 400;
}
.card p {
  font-size: 20px;
  margin: 0 16px 16px;
}
.card img {
  width: 95%;
  height: 250px;
  object-fit: cover; 
  border-radius: 8px; 
  margin-top: 8px; 
}

@media (max-width: 768px){
  .card-container{
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 500px;
  }
  .card{
   width: 500px;
  }
  .card img{
    height: 400px;
  }
  .card p{
    font-size: 22px;
  }
  .card h2{
    font-size: 30px;
  }
}

@media (max-width: 430px){
  .card-container{
    width: 90%;
  }
  .card{
   width: 350px;
  }
  .card img{
    height: 300px;
  }
  .card p{
    font-size: 18px;
  }
  .card h2{
    font-size: 23px;
  }
}


/*jednoduchej grid pro loga sponzorů*/
.sponzori{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 7%;
}
.sponzori img {
  width: 100%;
}


@media (max-width: 430px){
  .sponzori{
    grid-template-columns: repeat(1, 1fr);
  }
  .sponzori img {
    width: 80%;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
  
}

