/* Overview */

.project-overview-area {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #f2f1df;
  z-index: 1;
  overflow: hidden;
  font-family: 'Noto Sans', sans-serif;
}

.project-overview-title {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center; 
}

.project-overview-info-blocks {
  display: flex;
  gap: 1rem;
  width: 90%;
  margin: 0 auto;
  text-align: left;
  font-family: 'Noto Sans', sans-serif;
  padding:0.2rem;
  align-items: flex-start;
}

.project-overview-info-blocks h2{
  margin: 0;
}

/* GOALS ETC. */
.left-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1; 
}

/* TECHNICAL INFO */
.right-block {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
}

/* INFO-BLOCKS */
.info-block {
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  border-radius: 0.8rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.info-block:hover {
  background-color: rgba(0, 0, 0, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.info-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: whitesmoke;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-block h2 i {
  font-size: 1.5rem;
  color: whitesmoke;
}

.info-block p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: white;
  margin: 0;
}


/* ===== Box-container för ikoner + text ===== */
.box-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.5rem;
}

/* Varje box blir flex-rad med ikon + text */
.box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(245, 245, 245, 0.9);
  padding: 0.4rem 0.8rem;
  border-radius: 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
  font-size: 1.15rem;
  color: #333;
  word-break: break-word;
  white-space: normal;
  width: fit-content;
  max-width: 100%;
  flex: 0 1 auto;
}

/* Gemensam ikon-klass för alla png-ikoner */
.box-icon {
  width: auto;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}


.project-overview-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 1rem;
  
}

.overview-subtitle {
  flex: 1;
  font-family: "Noto Sans", sans-serif;
  font-size: 1.5rem;
  color: #333;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.overview-subtitle h3 {
  margin: 0;
}

.overview-subtitle p {
  font-family: "Noto Serif", serif;
  font-size: 1rem;
  text-align: justify;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.overview-video-container {
  position: relative;
  flex: 2;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.overview-video-container video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .project-overview-info-blocks {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .info-block h2,
  .info-block p {
    text-align: center;
  }

  .left-blocks,
  .right-block {
    width: 100%;
    margin-bottom: 1rem;
  }

  .project-overview-bottom {
    flex-direction: column;
    max-width: 100%;
    gap: 1rem;
    margin: 0 auto;
  }

  .overview-subtitle h3 {
    text-align: left;
    padding-bottom: 0.5rem;
  }

  .overview-subtitle p {
    text-align: justify;
  }

  .overview-subtitle p {
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
  }

  .overview-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }

  .overview-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
  }
}




/*MY CONTRIBUTIONS */
.my-contributions-area {
  width:100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.my-contributions-area h2 {
  font-family: "Noto Sans", sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  text-align: center;
  padding-bottom: 1.5rem;
}

.contributions-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.left-image {
  position: relative;
  width: 25rem;
  height: 25rem;
  overflow: hidden;
  flex-shrink: 0;
}

.left-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.left-image img.active {
  opacity: 1;
  pointer-events: auto;
}

.right-contributions {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

.contribution-block {
  background-color: whitesmoke;
  padding: 0.75rem 1rem;
  border-radius: 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  cursor: default;
  max-width: 100%;
  flex: 1 1 calc(33.333% - 1rem); 
  min-width: 200px;              
  max-width: 100%;
  box-sizing: border-box;        
}

.contribution-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.contribution-footer p {
  color: #555;
  font-weight: 400;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .contributions-container {
    flex-direction: column;
  }

  .left-image {
    order: -1;
    max-width: 100%; 
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .right-contributions {
    order: 0;
  }

  .contribution-footer {
    order: 1;
  }
}