/* Hei näin kommentoit css:sää */
/* Laita tänne omat tyylittelyt :D */


body {
  background-color: #EAEEEB;
  font-family: sans-serif;
  font-size: 16px;
  color: #333;

  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0px;
  padding: 0px;
  width: 100vw;

  overflow-x: hidden;

}

.dm-serif-display-regular {
  font-family: "DM Serif Display", serif;
  font-weight: 100;
  font-style: normal;
}

.dm-serif-display-regular-italic {
  font-family: "DM Serif Display", serif;
  font-weight: 100;
  font-style: italic;
}

.dm-sans-font {
  font-family: "DM Sans", serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
}

.top-section {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  width: 100vw;
}

.top-section2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100vw;
}

.header {
  width: 100vw;
  background-color: #57705A ;
  box-shadow: 0px 4px 20px #333333;

  display: flex;
  justify-content: space-between;
  align-items: stretch;
  position: sticky;

  box-sizing: border-box;
  overflow: hidden;
  margin: 0px;
  padding: 0px;
}


.banner{
  width: 100vw;
  height: 197px;
  margin: 0px;
  padding: 15px;

  background-color: #A0AFA2;
  box-shadow: 0px 4px 20px #333333;  

}

.footer {
  width: 100vw;
  background-color: #57705A ;
  box-shadow: 0px 4px 20px #333333;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0px;
  margin: 0px;

  box-sizing: border-box;
  overflow: hidden;
}

.linkki {
  color: #EAEEEB;
  text-decoration: none;
  font-size: 32px;
  font-family: "DM Serif Display";
}

h1{
  color: #455246;
  font-family: "DM Serif Display";
  font-size: 64px;
}

h2{
  color: #333333;
  font-family: "DM Serif Display";
  font-size: 32px;
}

h3{
  color: #EAEEEB;
  font-family: "DM Serif Display";
  font-size: 32px;
}

h4{
  color: #EAEEEB;
  font-family: "DM Serif Display";
  font-size: 24px;
}

p{
  color: #333333;
  font-family: "DM sans";
}


.navi{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px;
}


.left {
  display: flex;
  flex-direction: column;
  width: 100vw;
  margin: 15px;
}

.top-left {
  display: flex;
}

.top-rightish {
  display: flex;
  justify-content: flex-end;
  margin: 15px;
}

.bottom-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-content: space-between;
  margin: 30px;

}

.eka{
  margin: 50px;
}

.eka2{
  margin: 100px;
}

.toka{
  margin: 50px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #EAEEEB;
} 

.filtterit{
  margin: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background: #EAEEEB;
} 

.projekti{
  margin: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.tokamargin{
  margin: 7vw;
  padding: 1vw;
}

.kolmasmargin{
  margin: 10vw;
  padding: 0vw;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

img {
  max-width: 300px;
  border-radius: 20px;
  object-fit: cover;
}

.image{
  width: 330px;
  height:330px;
}

.image2{
  width: 330px;
  height:330px;
}

.icon {
  width: 28px;
  height: 28px;
}

@media screen and (max-width: 768px) {
  .top-section{
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row
  }

  .banner{
    height: 100px;
  }

  .top-section2{
    height: 110px;
    display: flex;
    flex-direction: row
  }

  body{
    font-size: 16px;
  }
  
  .top-rightish{
    display: flex;
    flex-direction: row;
  }

  .image{
    max-width: 150px;
    max-height: 150px;
    margin: 10px;
  }

  .image2{
    max-width: 250px;
    max-height: 250px;
  }

  .icon{
    max-width: 20px;
    max-height: 20px;
  }
  
  h1{
    font-size: 30px;
  }

  h2{
    font-size: 24px;
  }

  h3{
    font-size: 24px;
  }

  h4{
    font-size: 16px;
  }

  .header{
    width: 100vw;
    padding: 10px;
  }

  .footer{
    width: 100vw;
    padding: 5px;
  }

  .eka{
  margin: 40px;
  }

  .tokamargin{
    margin: 10px
  }

  .toka{
    margin: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #EAEEEB;
  }

  .projekti{
    margin: 5px;
  }

}

/*full-screen */

#img-viewer {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(34, 34, 34);
}

#full-screen-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 90%;
  max-height: 90%;
  transform: translate(-50%, -50%);
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.8);
  }
  to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
  }
}

#close-image-button {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  background-color: transparent;
  border: none;
  font-size: 40px;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
}

#close-image-button:hover {
  color: #455246;
}

.img-source {
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: 0.3s;
}

.img-source:hover {
  transform: scale(1.05);
}

/*filter */

.filters {
  margin: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-direction: row;
}

.filter-button {
  padding: 8px 12px;
  cursor: pointer;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  border: 4px solid transparent;
  width: fit-content;
  margin: 10px;
}

.filter-button.active {
  border: 4px solid #333;
}

.filters div:hover {
  opacity: 0.8;
}

#filter-reset {
  padding: 8px 12px;
  font-weight: bold;
  cursor: pointer;
}

.project-wrapper {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px;
  justify-content: flex-start;
}

.project {
  width: 30%;
  min-width: 200px;
  flex-grow: 1;
  height: 100px;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-weight: bold;
  color: white;
  border-radius: 5px;
}

.project p {
  margin: 0;
}

.a {
  background: #57705A;
  padding: 20px;
  border-radius: 15px;
}

.b {
  background: #455246;
  padding: 20px;
  border-radius: 15px;
}

.c {
  background: #A0AFA2;
  padding: 20px;
  border-radius: 15px;
}