body{
  background-color: #969595;
  margin: 0;
  font-synthesis: none;
}

body:has(.overlay:target){
  overflow: hidden;
}

:root{
  --swordPosition: '200';
  --swordPositionPhone: '100';
}

@font-face {
  font-family: Barbarian;
  src: url("fonts/Barbarian.ttf");
}

@font-face {
  font-family: Grusskarten;
  src: url("fonts/GrusskartenGotisch.ttf");
}

@font-face {
  font-family: Palyrin;
  src: url("fonts/Palyrin.otf")
}

@font-face {
  font-family: Gotham;
  src: url("fonts/Gotham.ttf")
}

@font-face {
  font-family: TempelGothic;
  src: url("fonts/TempelGothic.otf")
}

@font-face {
  font-family: Gothicum;
  src: url("fonts/gothicum.ttf")
}

@font-face {
  font-family: GothBall;
  src: url("fonts/GothBallCrap.ttf")
}

@font-face {
  font-family: AngerStyles;
  src: url("fonts/AngerStyles.ttf")
}

.yes {
  text-align: center;
  margin: 0;
  padding-left: 30px;
  color: #d3d2cd; 
  font-family: Barbarian !important;
  font-size: 5rem;
}

.play-anim {
  animation: flyingText 0.2s ease forwards;
}

.reverse-anim {
    animation: flyingTexta 0.2s ease forwards;
}

@keyframes flyingText {
  from {
    transform: 0;
  }
    to {
      transform: translateX(var(--swordPosition));
    }
  }
 
@keyframes flyingTexta {
  from {
    transform: translateX(var(--swordPosition));
  }
  to {
    transform: 0;
  }
}

.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  right: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
  transition-delay: 200ms;
  z-index: 1000;
  box-shadow: 
  0 4px 10px rgba(0, 0, 0, 0.15), 
  0 20px 50px rgba(0, 0, 0, 0.30);
  border-left: 1px solid rgba(0, 0, 0, 0.655);
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-family: Grusskarten;
  font-size: 60px;
  color: #818181;
  display: block;
  transition: 0.5s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 40px;
}

.border {
  overflow: hidden;
  background-color: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 
  0 4px 10px rgba(0, 0, 0, 0.15), 
  0 20px 50px rgba(0, 0, 0, 0.30);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.main {
  margin-right: 0;
  transition: 0.5s;
  transition-delay: 200ms;
  margin-top: 0.3vw;
}

.main .text .divide{
  margin-top: 1vw;
  margin-bottom: 1vw;
}

.divider {
  padding-top: 1vw;
  width: 90vw;
  display: flex;
  margin: auto;
}


*{
  box-sizing: border-box;
}

.openNav{
  color: white;
  cursor: pointer;
  margin-right: 1.2vw;
  font-size: 2.5vw;
}

.temp{
  background-color: #818181;
  height: 28.8vw;
  background-image: url("images/divbackground.jpg");
}

.temp img {
  margin-bottom: 3vw !important;
  max-height: 28.3vw;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 3vw;
  border: 0.5vw solid #4aa15d;
}

.text{
  margin-left: 3vw;
  margin-right: 3vw;
  font-family: Palyrin !important;
  font-size: 3rem;
  margin-top: 1vw;
}

.header{
  margin-left: 2vw;
  font-family: Gotham;
  font-size: 5rem;
  margin-top: 2vw;
  margin-bottom: 0;
}


@media (max-width: 600px) {
  .text {
    margin-left: 3vw;
    margin-right: 3vw;
    font-family: Palyrin;
    font-size: 2rem;
  }
  .yes {
    text-align: center;
    margin: 0;
    padding-left: 30px;
    color: #d3d2cd; 
    font-family: Barbarian !important;
    font-size: 2rem;
  }

  
  .temp{
    background-color: #818181;
    height: 60vw;
    background-image: url("images/divbackground.jpg");
  }

  .temp img {
    margin-top: 1vw;
    max-height: 59vw;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 4vw;
    border: 0.5vw solid #4aa15d;
  }

  .openNav{
    color: white;
    cursor: pointer;
    margin-right: 1.2vw;
    font-size: 3vw;
  }

  .main .text .divide{
    margin-top: 1vw;
    margin-bottom: 1vw;
    font-size: 1.5rem;
  }

  .divider {
    padding-top: 1vw;
    width: 90vw;
    display: flex;
    margin: auto;
    content: url("images/gothicDividerMobile.png")
  }

  @keyframes flyingText {
    from {
      transform: 0;
    }
    to {
      transform: translateX(var(--swordPositionPhone));
    }
  }

  @keyframes flyingTexta {
    from {
      transform: translateX(var(--swordPositionPhone));
    }
    to {
      transform: 0;
    }
  }

  .projects .text{
    margin-top: 0;
    grid-column: 2;
    grid-row: 2;
    line-height: 1.3;
    font-size: 1rem !important;
    font-family: Gothicum !important;
    background: -webkit-linear-gradient(#000000, #2b2a2a);
    background-clip: text;
    color: transparent;
  }

  .projects .header{
    font-size: 1.5rem !important;
  }

  .projectButton{
    background-color: #4aa15d;
    border-radius: 5vw;
    border: none;
    color: white;
    padding: 0.1vw 0.5vw;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: Grusskarten !important;
    font-size: 1rem !important;
    margin-left: 1vw;
    margin-bottom: 3vw;
  }
  
  .popup .text {
    max-height: 30%;
    margin-left: 2vw;
    font-size: 1rem !important;
    line-height: 1;
    grid-column: 1 / span 2;
  }

  .popup .header{
    font-size: 1.5rem !important;
    margin-top: 1vw;
    margin-left: 1vw;
    overflow: hidden;
    grid-column: 1 / span 2;
  }

  .popup .close{
    position: absolute;
    top: 10px;
    right: 30px;
    transition: all 200ms;
    font-size: 3vw !important;
    font-weight: bold;
    text-decoration: none;
    color: #333;
  }
}

.projects .header{
  font-size: 4rem;
  margin-left: 2vw;
}

.projects{
  background-color: #818181;
  height: auto;
  background-image: url("images/divbackground.jpg");
  display: grid;
  grid-template-columns: max-content 5fr; /* 2 columns */ 
  grid-template-rows: auto auto; 
}

.projectButton{
  background-color: #4aa15d;
  border-radius: 5vw;
  border: none;
  color: white;
  padding: 0.1vw 0.5vw;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-family: Grusskarten !important;
  font-size: 4rem;
  margin-left: 1vw;
  margin-bottom: 3vw;
  cursor: pointer;
  transition: 0.5s;
}

.projectButton:hover {
  background-color: #244d2d;
}

.projects{
  background-color: #818181;
  height: auto;
  background-image: url("images/divbackground.jpg");
  display: grid;
  grid-template-columns: 1fr 5fr; /* 2 columns */ 
  grid-template-rows: auto 1fr;
}

.projects .text{
  margin-top: 0;
  grid-column: 2;
  grid-row: 2;
  line-height: 1.3;
  font-size: 2.5rem;
  font-family: Gothicum !important;
  background: -webkit-linear-gradient(#000000, #2b2a2a);
  background-clip: text;
  color: transparent;
}

.projects .projectButton{
  margin-top: 1vw;
  grid-column: 1;
  grid-row: 3;
  z-index: 0;
}

.projects img {
  margin-top: 1vw;
  max-height: 29.5vw;
  height: auto;
  margin-left: 1vw;
  grid-column: 1;
  grid-row: 1 / span 2;
  border-radius: 4vw;
  border: 0.5vw solid #4aa15d;
}

.projectBorder{
  height: 0.8vw;
  background-color:#111;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 10000;
}
.overlay:target {
  visibility: visible;
  opacity: 1;
}

.popup {
  margin: 5vw auto;
  padding: 1vw;
  background: #dcdddb;
  border-radius: 2vw;
  border: 1vw solid #646161;
  width: 70vw;
  position: relative;
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
  max-height: 85%;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-template-columns: 1fr 5fr;;
}

.popup .ndImg {
  margin-top: 1vw;
  max-height: 29.5vw;
  height: auto;
  margin-left: 1vw;
  border-radius: 3vw;
  border: 0.5vw solid #4aa15d;
  grid-column: 2;
}

.popup .header{
  font-size: 3rem;
  margin-top: 1vw;
  margin-left: 1vw;
  overflow: hidden;
  grid-column: 1 / span 2;
}

.popup .close {
  position: absolute;
  top: 5px;
  right: 30px;
  transition: all 200ms;
  font-size: 3vw;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  grid-column: 2;
  grid-row: 1;
}
.popup .close:hover {
  color: #06D85F;
}
.popup .text {
  max-height: 30%;
  margin-left: 2vw;
  font-size: 2.5rem;
  line-height: 1.3;
  grid-column: 1 / span 2;
  font-family: AngerStyles !important;
}

.popup img {
  max-height: 30vw;
  height: auto;
  display: block;
  margin: auto;
  margin-top: 1vw;
  margin-bottom: 1vw;
  border: 0.5vw solid #4aa15d;
  border-radius: 2vw;
  grid-column: 1;
  margin-left: 10vw;
}

.popup .standAloneImg {
  max-height: 30vw;
  height: auto;
  display: block;
  margin: auto;
  margin-top: 1vw;
  margin-bottom: 1vw;
  border: 0.5vw solid #4aa15d;
  border-radius: 2vw;
  grid-column: 1 / span 2;
}

