/* ------------------------------------------------------------------------- */
/* -------------------------------- MOBILE --------------------------------- */
/* ------------------------------------------------------------------------- */

body {
  overflow: hidden;
}

a {
  color: var(--text-color-accent);
}

li {
  font-size: 2.8vw;
}

.section {
  width: 100%;
}

#section-content {
  margin-top: var(--nav-height-mobile);
  margin-bottom: 20px;

  position: relative;

  overflow: hidden;
}

#project-video {
  width: 100vw;
  height: 30vh;
  position: relative;
}

#project-screen-video {
  width: 30vh;
  height: 25vh;

  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);

  background-color: black;
}

#tv {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#project-main-content {
  width: 100vw;
  height: calc(100vh - var(--nav-height-mobile) - 45vh);

  position: relative;
}

#fade-bar {
  height: 70px;
  width: 100vw;

  position: absolute;
  top: 0;
  left: 0;

  visibility: visible;

  background: linear-gradient(var(--background-color), #0000);

  z-index: 2;
}

.project_description_short {
  font-size: 4vw;
  text-align: center;
}

#project-text {
  width: 90%;
  height: 100%;

  margin: auto;

  position: relative;

  overflow-y: scroll;
}

.subtitle-text > p{
  font-size: 2.8vw;
}

#project-title {
  padding-top: 50px;
  text-align: center;
}

#project-title a {
  text-decoration: none;
}

.programming-language-logo {
  width: 20px;
  height: 20px;
}

.project-info-grid {
  height: fit-content;
  width: 90%;
  margin: 10px auto;
  padding: 20px 5%;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr 1fr;

  justify-content: start;
  text-align: start;
  font-size: 4.1vw;

  background-color: var(--gradient-step-2);

  box-shadow: 5px 5px 11px #000a;
  border-radius: 20px;
}

.project-authors-div {
  grid-column: 1;
  grid-row: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.project-authors-label {
  grid-column: 1;
  grid-row: 1;
}

.project-authors {
  grid-column: 2;
  grid-row: 1;
  list-style: none;
  height: 100%;
  padding: 0;
  margin: 0;
  text-align: end;
}

.development_dates {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
}

.dev-dates-info {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.dev-dates-label {
  grid-column: 1;
}

.dev-dates-values {
  grid-column: 2;
  text-align: end;
}

.project_techstack_short {
  grid-column: 1;
  grid-row: 3;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
  align-self: center;
  margin: auto;

  text-align:center;
}

.project_techstack_short li {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  border: 2px solid var(--text-color-accent);
  font-size: 3vw;
}

/* ------------------------------------------------------------------------- */
/* ------------------------------- DESKTOP --------------------------------- */
/* ------------------------------------------------------------------------- */

@media screen and (orientation: landscape) {
  li {
    font-size: 2.5vh;
  }

  #section-content {
    margin-top: calc(var(--nav-height-desktop));
    margin-bottom: 20px;

    position: relative;

    display: flex;
    flex-direction: row-reverse;

    overflow: hidden;
  }

  #project-video {
    width: 40vw;
    height: 100%;
    display: inline-block;
  }

  #project-screen-video {
    width: calc(38vw * 0.8);
    height: calc(38vw * 0.65);

    transform: translate(-50%, 15%);
  }

  #tv {
    width: 38vw;
    height: 38vw;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);
  }

  #fade-bar {
    visibility: hidden;
  }

  #project-main-content {
    height: calc(100vh - var(--nav-height-desktop) - 15vh);
    width: 65vw;
    display: inline-block;

    font-size: 3.5vh;
  }

  #project-text {
    width: 95%;
    height: 100%;

    margin: 0 auto;
  }

  #project-title {
    font-size: 4vh;
    padding-top: 0;
  }

  .project_description_short {
    font-size: 3vh;
  }

  .project-info-grid {
    font-size: 3vh;
  }

  .project_techstack_short li {
    font-size: 3vh;
  }

  .subtitle-text > p {
    font-size: 2.5vh;
  }
}
