@font-face {
  font-family: 'Bahnschrift';
  src: url('./fonts/Bahnschrift-regular.ttf');
  font-weight: normal;
  font-style: normal;

}

html {
  /* Reset */
  padding: 0;
  margin: 0;

  /* globalni nastaveni fontu */
  font-family: "Bahnschrift";
  font-size: 18px;
  color: #fff;

  /* Vychozi barva pozadi  */
  background-color: rgb(0, 0, 31);

  background: linear-gradient(
    to bottom right,
    #fc2727 0%,
    #fcf82c 25%,
    #33fd33 50%,
    #3783fe 75%,
    #fd1861 100%
  );

  /* Kvuli gradientu je nutne nastavit minimalni vysku html */
  min-height: fit-content;
}

/* Reset */
body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Reset kvuli vlastnim fontum */
h1,
h2,
h3,
h4 {
  padding: 0;
  margin: 0;
  font-weight: normal;
}

h2 {
  font-size: 2vw;;
  text-align: center;
  padding: 0;

  color: #000;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

/*----------- HEADER -----------*/
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  height: 80px;
  padding: 0 50px;

  background: rgba(255, 255, 255, 0.55);
}

div.links {
  font-size: 30px;
  font-weight: 600;
  padding: 5px;
  line-height: 30px;
  text-align: center;
  display: flex;
  justify-content: center;
}

div.links img {
  height: 30px;
  width: auto;
}

div.links.left {
  display: flex;
  flex-direction: row;
  justify-content: left;
  gap: 10%;
  width: 30%;
}

div.links.right {
  display: flex;
  flex-direction: row;
  justify-content: right;
  gap: 10%;
  width: 30%;
}

div.logo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100px;
  height: 60px;
  text-align: center;
}

div.logo p {
  z-index: 2;
  font-size: 20px;
  color: #000;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
    1px 1px 0 #fff;
  margin-bottom: -20px;
  padding: 0;
}

div.logo img {
  z-index: 1;
  position: absolute;
  align-self: center;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: #000;
}

/*----------- CONTENT -----------*/

div.content {
  background: #000;
  margin: 5px;
  flex-grow: 1;
}

div.art_placeholder {
  height: 43vw;
  overflow: hidden;
}

div.art_placeholder img, div.art_placeholder video {
  display: block;
  height: 50vw;
  margin: -7vw auto;
}

/*----------- ABOUT ME -----------*/
div.aboutme {
  display: grid;
  position: relative;
  background-image: url("./pictures/bg_side_wide.jpg");
  background-size: cover;
  height: 43vw;
  align-items: center;
  border-top: 3px solid black;
  border-bottom: 10px solid black;
}

div.aboutme p {
  color: #ffffff;
  width: 50%;
  margin-left: 8vw;
  padding: 10px;
  letter-spacing: 2px;
  font-size: 1.5vw;
  border-radius: 40px;
  background: #000000cc;
  box-shadow: #000000cc -40px 40px 40px;
}


div.aboutme a {
  color: rgb(255, 255, 255);
  text-decoration: 2px underline;
}

/*----------- VIDEOS -----------*/

div.container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

div.videos {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: center;
  height: 20vw;
  padding: 1.5vw 50px;
  background: linear-gradient(rgb(255, 0, 0), rgb(114, 0, 0));
}

/*----------- TWITCH -----------*/

div.twitch {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 21vw;
  padding: 1.5vw 50px;

  background: linear-gradient(rgb(174, 0, 255), rgb(74, 0, 134));
}

.video {
  width: 30vw;
  height: 16vw; /* TODO: change width to percent */
  padding: 5px;
  background: linear-gradient(
    to top left,
    #fc2727 0%,
    #fcf82c 25%,
    #33fd33 50%,
    #3783fe 75%,
    #fd1861 100%
  );
}

iframe {
  width: 100%;
  height: 100%;
  background-color: #000;
}

/*----------- FOOTER -----------*/
footer {
  background-color: #000000c0;
  display: grid;
  grid-template-columns: auto auto auto;
  padding: 10px 40px;
  margin-top: auto;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer div.authors, div.contacts {
  font-size: medium;
  font-weight: lighter;
}

footer div.licence {
  text-align: center;
}

footer div.contacts {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  text-align: right;
}

div.notice {
  font-size: small;
}

/*----------- SMALLER DISPLAY -----------*/
@media screen and (max-width: 1000px) {

  div.art_placeholder {
    height: 43vw;
  }

  h2 {
    font-size: 30px;
  }

header {
    height: 70px;
    padding: 0 20px;
  }

  div.links {
    font-size: 22px;
  }
  
  div.links img {
    height: 20px;
  }
  
  div.logo img {
    height: 45px;
    width: 45px;
  }
  
  div.logo p {
    font-size: 16px;
    align-self: center;
  }

  div.aboutme {
    background: none;
    width: 100%;
    height: max-content;
    padding-bottom: 10px;
    & p {
      width: 80%;
      padding: 0;
      margin: auto;
      font-size: 12px;
      box-shadow: none;
      text-align: justify;
    }
  }

  .video.third,
  .video.second {
    display: none;
  }

  div.videos h2, div.twitch h2 {
    font-size: 4vh;
  }

  div.videos,
  div.twitch {
    padding: 2vh 0 4vh 0;
    align-items: center;
    height: max-content;
  } 

  div.twitch .video,
  div.videos .video {
    width: 56vw;
    height: 30vw;
    padding: 5px;
  }

footer {
    grid-template: "a a"
                   "b c";
  }

  footer .licence {
    grid-row-start: 1;
    grid-column-start: 1;
    grid-column-end: 4;
  }

  footer .authors {
    grid-row-start: 2;
    grid-column-start: 1;
    grid-column-end: 3;
  }

  footer .contacts {
    grid-row-start: 2;
    grid-column-start: 3;
    grid-column-end: 4;
  }

  footer div.authors, div.contacts {
    font-size: small;
    font-weight: lighter;
    align-items: center;
  }

}
