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

html{
  scroll-behavior: smooth;
}

body.dark-mode {
  background: #1C411E;
  color: #FFF9EB;
}

body.dark-mode .example-container {
 background-color: #1C411E;
}

body.dark-mode .scroll-dot {
  border: 2px solid #FFF9EB;
}

.dark-mode-button-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#dark-mode-button {
  width: 70px;
  height: 40px;
  border-radius: 20px;
  background-color: #FFF9EB;
  border: 2px solid #1C411E;
  position: relative;
  cursor: pointer;
  transition: 0.4s;
  box-sizing: border-box;
}

#button-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  height: 32px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  transition: 0.3s;
  background-color: #1C411E;
}

#dark-mode-button.active {
  background-color: #1C411E;
  border: 2px solid #FFF9EB;
}

#dark-mode-button.active #button-indicator {
  background-color: #FFF9EB;
  transform: translateX(30px);
}

#dark-mode-button:hover #button-indicator {
  background-color: #D1681F;
}

.dark-mode header a{
  box-shadow: inset 0 0 0 0 #FFF9EB;
  color: #FFF9EB;
  transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
  text-decoration: none;
}

.dark-mode header a:hover {
  box-shadow: inset 100px 0 0 0 #FFF9EB;
  color: #1C411E !important;
}

.dark-mode .laatikko{
  background-color: #FFF9EB;
  color: #D1681F;
}

.dark-mode .intro{
  color: #D1681F;
}

header a {
  box-shadow: inset 0 0 0 0 #1C411E;
  color: #1C411E;
  transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
  text-decoration: none;
}
header a:hover {
  box-shadow: inset 100px 0 0 0 #1C411E;
  color: #FFF9EB !important;
}

.roboto-slab-font {
  font-family: "Roboto Slab", serif;
  font-weight: 200;
  font-style: normal;
}

body {
  background-color: #FFF9EB;
  font-family: Roboto Slab;
  font-size: 16px;
  color: #1C411E;
  padding: 0;
  margin: 40px;
  align-items: start;
  overflow-x: hidden;

}
.cont{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  width: auto;
  font-size: 24px;

}

section.cont img{
  width: auto;
}
.kuva2{
  max-width: 40vw;
  max-height: 60vw;
}

.intro {
  display:flex;
  color: #FFF9EB;
  font-size: 36px;
  align-items: start;
  text-decoration: none;
}

.header {
  height: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-family: Roboto Slab;
}

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

figure{
  display: flex;
  max-width: 100%;
  height: auto;
  border-radius: 15px ;
}

img {
  display: flex;
  max-width: 100%;
  height: auto;
  border-radius: 15px ;
  
}
h2 {
  font-size: 2em;
  text-align: left;
}
h1 {
  font-size: 2em;
  text-align: center;
}

.wrapper {
  display: flex;
  flex-direction: column;
  
  
}
.laatikko {
  width: 100vw;
  height: 100px;
  background-color: #1C411E;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: start;
  justify-content: space-around;
  font-family: Roboto Slab;
  margin-bottom: 30px;
  margin-left: -40px;
  
}


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

#full-screen-image {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 80%;
  max-height: 80%;
  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: #D1681F;
}

.img-list {
  display: flex;
  flex-wrap: wrap;
  width: 95%;
  height: auto;
  gap: 10px;
}

.img-source {
  width: calc(50% - 10px);
  object-fit: cover;
  height: auto;
  cursor: pointer;
  transition: 0.3s;
}

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

.responsive {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  
}

.grid{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }


  .intro {
    display:flex;
    color: #FFF9EB;
    font-size: 24px;
    align-items: center;
    margin-left: 40px;
    text-decoration: none;
  }

  .header {
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-family: Roboto Slab;
    margin-bottom: 30px;
  }

  .kuva2{
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
  }

  .cont{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: auto;
  
  }

  .laatikko {
    width: 100vw;
    height: 120px;
    background-color: #1C411E;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    font-family: Roboto Slab;
    margin-bottom: 30px;
    margin-left: -40px;
    
  }
}

.footer{
  color:#FFF9EB;
}

.logo {
  font-size: 24px;
  font-weight: 600;
  color: #D1681F;
}

.dark-mode .logo{
  color: #D1681F;
}

.burger {
  position: relative;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10;
}

.burger-line {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 4px;
  background: #1C411E;
  transition: all 0.3s ease;
}

.dark-mode .burger-line{
  background: #FFF9EB;
}

.burger-line:nth-child(1) {
  transform: translateY(-6px);
}

.burger-line:nth-child(2) {
  transform: translateY(2px);
}

.burger.burger-open .burger-line:nth-child(1) {
  transform: translateY(0) rotate(45deg);
  background-color: #FFF9EB;
}

.burger.burger-open .burger-line:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
  background-color: #FFF9EB;
}

.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 9;
}

.nav {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
  flex-direction: row;
  background-color: #D1681F;
  transform: translateX(100%);
  transition: 0.4s ease;
}

.nav-open {
  pointer-events: all;
}

.nav-open .nav {
  transform: translateX(0);
}

.greeting-container {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.greeting {
  font-size: 20vw;
  white-space: nowrap;
  animation: rotate 5s linear infinite;
}

@keyframes rotate {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

.nav-list {
  width: 50%;
  height: 100%;
  background-color: #FFF9EB;
  list-style: none;
  padding: 0 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
}

.dark-mode .nav-list{
  background-color: #1C411E;
}

.nav-link {
  color: #1C411E;
  transition: 0.2s;
  padding: 8px 0;
  display: block;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .nav {
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
  }
  .greeting-container {
      width: 100%;
      height: 20%;
  }
  .nav-list {
      width: 100%;
      max-width: 100%;
      height: 80%;
      font-size: 20px;
      box-sizing: border-box;
  }
}