/* Font Definitions */
@font-face {
  font-family: 'Jersey10';
  src: url('fonts/Jersey10-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Jersey10C';
  src: url('fonts/Jersey10Charted-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

/*no lists thats annoying*/
li {
  list-style: none;
}

 /*for portfolio page*/ 
    .portfolio {
      max-width: 1000px;
      margin: 180px auto;
      display: flex;
      flex-direction: column;
      gap: 80px;
    }
    .project {
      display: flex;
      gap: 20px;
      background: rgba(255,255,255,0.7);
      padding: 40px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      flex-wrap: wrap;
    }   
/*Project2 is for the sketchbook link*/	

/*container*/
.project2-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0px;
  margin-top: 5px;
}


.project2 .description {
  text-align: center;
}

.project2 h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

/*proj2*/
	.project2 {
      display: flex;
      gap: 10px;
	  margin: 0 auto;
	  width: 40%;
	  text-align: center;
      background: rgba(255,255,255,0.7);
      padding: 10px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      flex-wrap: wrap;
    }
	.project2 a {
  color: #444;
}

/*Proj-title is for simple box less padding*/	
	.proj-title {
      display: flex;
      gap: 10px;
	  margin: 0 auto;
	  width: 30%;
	  text-align: center;
      background: rgba(255,255,255,0.7);
      padding: 10px;
      border-radius: 12px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
      flex-wrap: wrap;
    }
	.proj-title a {
  color: #444;
}

.project2 a:hover {
  color: #cc0000;
}
/*For the portfolio page display and also parts of the research display */
    .main-image {
      flex: 1 1 250px;
      max-width: 300px;
    }
    .main-image img {
      width: 100%;
      border-radius: 8px;
      cursor: pointer;
    }
    .description {
      flex: 1 1 250px;
    }
    .description h2 {
      margin: 0 0 10px;
    }
    .description p {
      margin: 0 0 10px;
    }
    .description .materials {
      font-style: italic;
      color: #666;
    }
	 }
    .description.attribution {
      font-style: italic;
      color: black;
    }
    .thumbnails {
      display: flex;
      flex-direction: column;
      gap: 10px;
      flex: 1 1 120px;
    }
    .thumbnails img {
      width: 70%;
      border-radius: 6px;
      cursor: pointer;
    }

    /* Overlay for the portfolio and research page*/
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0,0,0,0.8);
      display: flex;
      justify-content: center;
      align-items: center;
      display: none;
      z-index: 999;
    }
    .overlay img {
      max-width: 90%;
      max-height: 90%;
      border-radius: 8px;
    }
    .overlay.active {
      display: flex;
    }
/*background for portfolio page*/	
  body.portfolio-bcg{
      font-family:'Jersey10';
	  font-size: 24px;
      margin: 0;
      padding: 0;
	  background-image: url('img/mini_1.png');
      background-repeat: repeat;
      background-size: auto;
    }

/*research page background*/
  body.research-bcg{
      font-family:'Jersey10';
	  font-size: 24px;
      margin: 0;
      padding: 0;
	  background-image: url('img/frutiger_2.png');
      background-repeat: repeat;
      background-size: auto;
    }

/*more background*/
  body.bcg-2{
      font-family:'Jersey10';
	  font-size: 24px;
      margin: 0;
      padding: 0;
	  background-image: url('img/frutiger_2.png');
      background-repeat: repeat;
      background-size: auto;
    }

/*CV page background*/	
  body.CV-bcg{
      font-family:'Jersey10';
	  font-size: 24px;
      margin: 0;
      padding: 0;
	  background-image: url('img/frutiger_1.png');
      background-repeat: repeat;
      background-size: auto;
    }
/*art page bcg*/
 body.art-bcg{
      font-family:'Jersey10';
	  font-size: 24px;
      margin: 0;
      padding: 0;
	  background-image: url('img/weird_2.png');
      background-repeat: repeat;
      background-size: auto;
    }
/*additional bcg*/
body.art-bcg-2{
      font-family:'Jersey10';
	  font-size: 24px;
      margin: 0;
      padding: 0;
	  background-image: url('img/weird_3.png');
      background-repeat: repeat;
      background-size: auto;
    }
/*additional bcg*/
body.art-bcg-3{
      font-family:'Jersey10';
	  font-size: 24px;
      margin: 0;
      padding: 0;
	  background-image: url('img/mini_3.png');
      background-repeat: repeat;
      background-size: auto;
    }

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(1.2, 57.3, 91.0, 0.5);
  padding: 30px 0;
  font-size: 100px;
  text-align: center;
  z-index: 1000;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  display: inline-block;
  margin: 0 20px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-size: 50px;
  font-family: 'Jersey10C', sans-serif;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #ccc;
}
/*for sketchbook page*/
/* Grid layout for sketchbook page */
.grid-sketch {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 100px 40px 40px;
  max-width: 1200px;
  margin: auto;
}

/* Individual grid items */
.grid-item {
  background: rgba(255,255,255,0.7);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
}

/* Thumbnails */
.grid-thumbnail {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.grid-thumbnail:hover {
  transform: scale(1.03);
}

/* Meta info: title, date, tags */
.item-meta {
  margin-top: 10px;
}

.item-meta h3 {
  margin: 10px 0 4px;
  font-size: 1.2rem;
}

.item-meta p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.item-meta .tags {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #999;
}

/* Overlay for full image view */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.overlay.active {
  display: flex;
}

.overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* Search/filter bar */
.filter-bar {
  text-align: center;
  margin: 250px auto 20px;
}

#filterInput {
  padding: 10px 16px;
  width: 60%;
  max-width: 400px;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  outline: none;
}

/*video overlay*/
.video-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.video-overlay.active {
  display: flex;
}

.video-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: black;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 40px;
  color: white;
  cursor: pointer;
}
/*for mobile*/
@media (max-width: 768px) {
  .main-nav {
    font-size: 40px;
    padding: 20px 0;
  }

  .main-nav a {
    font-size: 24px;
    display: block;
    margin: 10px 0;
  }

  .portfolio {
    margin: 120px auto;
    padding: 30px 40px;
    gap: 40px;
  }

  .project,
  .project2,
  .proj-title {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    gap: 20px;
  }

  .main-image,
  .description,
  .thumbnails {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .main-image img,
  .thumbnails img {
    width: 100%;
  }

  .grid-sketch {
    grid-template-columns: 1fr;
    padding: 120px 20px 40px;
  }

  .filter-bar {
    margin: 180px auto 20px;
  }

  #filterInput {
    width: 90%;
    font-size: 1rem;
  }

  .video-container {
    width: 95%;
    aspect-ratio: 16 / 9;
  }

  .close-btn {
    top: -20px;
    font-size: 30px;
  }
}

