*{
  color: white;
  font-family: "roboto";
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Načící obrazovka - hrneček animace - použita z codepenu a upravena: https://codepen.io/tutq8118/pen/NWbKaBw*/
body {
  margin: 0;
  padding: 0;
  background-color: #121212;
  font-family: sans-serif;
  overflow: hidden;
}
#loader {
  background-color: #121212;
  color: white;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease-in-out;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.coffee-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 200px;
}

.mug-svg {
  max-width: 100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
  
.smoke-container {
  display: flex;
  position: relative;
  width: 140px;
  margin: 0 auto;
  bottom: 50px;
  position: relative;
}

.smoke-1 {
  animation: shift 2s linear 0.5s infinite;
  opacity: 0;
}

.smoke-2 {
  animation: shift-2 1.5s linear 0.5s infinite;
  opacity: 0;
}

.smoke-3 {
  animation: shift-3 2s linear 0.6s infinite;
  opacity: 0;
}

.mug {
  width: 120px;
  height: 80px;
  border-radius: 5px;
  position: relative;
  margin: 0 auto;
  bottom: 80px;
}
    
@keyframes shift {
  0% {
    transform: translate(10px, 155%);
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  
  100% { 
    transform: translate(10px, 0%);
    opacity: 0;
  }
}
    
@keyframes shift-2 {
  0% {
    transform: translate(0, 155%);
    opacity: 1;
  }
  
  80% {
    opacity: 0;
  }
  
  100% {
      transform: translate(0, 0);
      opacity: 0;
    }
  }

@keyframes shift-3 {
  0% {
    opacity: 1;
    transform: translate(-10px, 80px);
  }
  
  80% {
    opacity: 0;
  }
  
  100% {
    transform: translate(-10px, 0);
    opacity: 0;
  }
}
            
.smokes {
  transform: translateX(20px);
}





/* Reálný kód pro posty */

html{ 
  scroll-behavior: smooth;
}
  .bg{
  background-image: linear-gradient(#444444a8,#444444a8), url("Blog_background.jpg");
  background-repeat: no-repeat;  
  background-attachment: fixed;
  background-size: cover;
  }
/* grid layout - vzala jsem ho z genshin webu, který jsem dělala ve druhém ročníku a použila znova*/
body { 
  display: grid;
  grid-template-areas: 
    "header header header"
    "a article b"
    "footer footer footer";
  grid-template-rows: 10% 1fr 5%;  
  grid-template-columns: 19.4% 60% 19.5%;
  grid-row-gap: 10px;
  grid-column-gap: 10px;
  height: 100vh;
  margin: 0;
  }  
header, footer, article, nav, div {
  padding: 15px;

  }
#pageHeader {
  position: fixed;
  left:0;
  right:0;
  top:0;
  padding: 0%;
  grid-area: header;
  text-align: center;
  background:  #3e1f1d;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  display: inline-flex;
  align-items: center;
}
#pageHeader a{
  font-size: 2vw;
  padding: 0 2rem;
  text-align: center;
}

#pageFooter {
  
  grid-area: footer;
  background:  #252525;
  left:0;
  right:0;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }
#mainArticle { 
  padding: 5%;  margin: 0;

  grid-area: article; 
  background:  #1E1D1C;     
  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;   margin: 0;
  padding: 0;
  }
#rightNav { 
  grid-area: b;   margin: 0;
  padding: 0;
  } 



  /* Upravené jednotlivé texty apod. */
h1 {
  font-family: 'Grenze Gotisch';
  font-size: 5rem; 
  font-style: normal;
  padding-bottom: 5%;
  color: #fff;
  text-indent: 1vw;
}
h2{ 
  padding:2% 0%;
  font-family: "roboto";
  font-size: 35px;
  font-style: normal;
  font-variant: normal;
  color: #fff;
  text-indent: 1vw;
}
h3{
  font-size: 25px;
  font-style: normal;
  font-variant: normal;
  color: #fff;
  padding: 0.5rem 0;
  text-indent: 1vw;
}
p{
  text-align: justify;
  font-size: 1.1rem;
  color: #E1E5F2;
  font-weight: 200;
  line-height: 1.3;
  margin: 1% 0;
  text-indent: 1vw;
  font-stretch: condensed;
}
b{
  font-weight: 400;
}
ul{ text-align: justify;
  list-style-position: outside;
  margin: 1rem 2.5rem;
}
li{
  text-align: justify;
  font-size: 1.1vw;
  color: #E1E5F2;
  font-weight: 200;
  text-indent: 1vw;
  font-stretch: condensed;
}


q{ 
  line-height: 130%;
  font-size: 25px;
  text-align: center;
  color: #fff;
  font-style: italic;
}

a{
  text-decoration: none;
  color: #fff;
  font-size: 35px;
}
#pageFooter p{
  font-size: 12px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#pageHeader img{
  width: 2.5vw;
}


.imageleft {
  float: left;
  margin: 8px;
  text-align: justify;
  width: 15rem;
}
.imageright {
  float: right;
  margin: 8px;
  text-align: justify;
  width: 15rem;
}
.imageright_bigger {
  float: right;
  margin: 8px;
  text-align: justify;
  width: 25rem;
}
img{
  width: 100%;
  text-align: center;
}
.video{
  object-fit: fill;
  width: 100%;
}
.video video{  width: 100%;
  height: 100%;
  object-fit: cover;
  object-fit: fill;
}

/* Pro ukázky v sekci "moje tvorba" - lze použít jinde */
.videogallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1vw;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.videogallery video{
  width: 100%;
}



/* Komiksy */
.reader-container{
    display: flex;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
   width: 55%;
  }
.reader-container img{
  display: flex;
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  object-fit: scale-down;
}
.controls{
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
  min-width: 100%;
  padding: 0;
}
.center{
  display: flex;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  text-align: center;
}
.controls button{
  justify-items: center;
  margin-left: auto;
  margin-right: auto;
  background-color: red;
  border-radius: 2rem;
  padding: 1rem;
  margin: 0 1rem;
  border: none;
  justify-items: center;
  font-size: 1rem;
  min-width: 10vw;
}
button:active {
  background-color: rgb(239, 62, 31);
  transform: translateY(1px);
}
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  top: 0;
  left: 0;
  width: 100vw; 
  height: 100vh; 
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  text-align: center;
}

.modal-content {
  margin: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
  max-height: 100%;
  margin-top: 5vh;
  margin-bottom: 5vh;

}

.close {
  position: absolute;
  top: 30px;
  right: 45px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.arrow {
  position: absolute;
  top: 50%;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  padding: 1rem;
  background: rgba(255, 0, 0, 0.3);
  border-radius: 1rem;
  z-index: 1001;
}
.left-arrow {
  left: 30px;
}
.right-arrow {
  right: 30px;
}


/* Vhodné na seznam ikon - použito v sekci "Moje tvorba" pro ukázku programů */
.gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 4vw;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.gallery img {
  width: 100%;
}



/* Responzivita - mobil, tablet */
@media (max-width: 1024px) {
h1{
  font-size: 5rem;
}
h2{
  font-size: 3rem;
}
#mainArticle iframe{
  max-width: 100%;
  max-height: 350px;
}
#mainArticle img{
  flex: 50%;
  max-width: 100%;
}
.gallery img{
  min-width: 100%;
}
p{
  font-size: 1.8rem;
}
.controls button{
  font-size: 2rem;
}
#pageFooter p{
  font-size: 9px;
}
body { 
  grid-template-columns: 5% 89% 5%;
  }  
#pageHeader h1{
  font-size: 20px;
}
#pageHeader a{
  font-size: 2rem;
}
.menu-btn{
  top: 5px;
}
.reader-container{
  width: 100%;
 }
}

@media (max-width: 430px) {
  .reader-container{
   width: 100%;
  }
  h1{
    font-size: 2.2rem;
  }
  h2{
    font-size: 1.6rem;
  }
  .controls button{
    font-size: 1rem;
  }
  #pageHeader h1{
    font-size: 1rem;
  }
  p{
    font-size: 1.1rem;
  }
  #pageHeader a{
    font-size: 1rem;
  }
  #pageHeader img{
   display: none;
  }
  #pageHeader svg{
    width: 2rem !important; 
    position: relative;
    top: -0.5rem;
  }
  .videogallery{
    grid-template-columns: repeat(1, 1fr);
  }.gallery{
    grid-gap: 2vw;
    width: 100%;
  }
  body { 
    grid-template-columns: 1% 92% 1%;
    margin: 0;
    padding: 0;
    }   
  .gallery img {
    width: 100%;
  }
}