@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: grid;
    place-content: center;
    overflow: hidden;
    background: rgb(224, 243, 219);
}

/* Tyylit kirjalle ja sen sisällölle */

.flipbook {
    width: 1000px;
    height: 600px;
    margin: 100px;
    position: relative;
    

}

/* Kansi */

.flipbook .hard{
    background: #AFF8D8 !important;
    color:#050505;
    font-weight: bold;
    border: none;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-size: 20px;
}

.flipbook .hard small{
    font-style: italic;
    font-weight: lighter;
    opacity: 0.7;
    font-size: 15px;
}

/* Sivujen pohja*/

.flipbook .page {
    background: white;
    display: flex;
    flex-direction: column;
    align-items: column;    
    gap: 10px;
    border: 1px solid rgba(0,0,0,0.11);
}

/* Sivujen sisältö*/

.flipbook .page .page-content {
  justify-content: center;
  font-size: 15px;
  padding-left: 20px;
  padding-top: 20px;
  line-height: 1.5;
  margin-bottom: 10px;
}


/* Kuvat sivulla*/

.page img{
    width: 70%;
    object-fit: cover;
    margin: auto;
}

/* Listat sivulla*/

.page ol{
    list-style-type: decimal;
    padding-left: 20px;
    margin: 0;
    counter-reset: item  
}

.page li {
  display: block
}

.page li:before { 
  content: counters(item, ".") " "; counter-increment: item 
}

/*Tablet sivulla*/

table, th, td {
  text-align: left;
  padding-bottom: 10px;
}

/*Kuvateksti*/
figcaption {
  background-color: #c6cac9;
  color: black;
  font-style: italic;
  padding: 2px;
  text-align: center;
  size: 5px;
}





/* Määritellään yläpalkin ulkonäkö */

.topnav {
    overflow: hidden;
    background-color: rgb(224, 243, 219);
    display: flex;
    justify-content: center; 

    gap: 5px;
    border: none;
    padding: 15px 32px;
    padding-top: 100px;
    font-size: 17px;
    
  }

  /* Tehdään yläpalkin napeista eri väriset */
    
  .topnav a{
    color: black; 
    display: flex;  
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-decoration: none;
    padding: 14px 16px;
  }
  .topnav a:hover {
    color: white;
  }
  .topnav a.active {
    color: white;
  }


  .topnav a:nth-child(1){
    color: black; 
    border: 2px solid #FFABAB;
  }
  .topnav a:nth-child(1):hover {
    background-color: #FFABAB;
    color: white;
  }
  .topnav a:nth-child(1).active {
    background-color: #FFABAB;
    color: white;
  }


  .topnav a:nth-child(2){
    color: black; 
    border: 2px solid #FF9CEE;
  }
  .topnav a:nth-child(2):hover {
    background-color: #FF9CEE;
    color: white;

  }
  .topnav a:nth-child(2).active {
    background-color: #FF9CEE;
    color: white;

  }


  .topnav a:nth-child(3) {
    border: 2px solid #D5AAFF;
  }
  .topnav a:nth-child(3):hover {
    background-color: #D5AAFF;
    color: white;

  }
  .topnav a:nth-child(3).active {
    background-color: #D5AAFF;
    color: white;

  }
  

  .topnav a:nth-child(4) {
    border: 2px solid #ACE7FF;
  }
  .topnav a:nth-child(4):hover {
    background-color: #ACE7FF;
    color: white;

  }

  /*Sivu valikko*/

  .sidenav {
    width: 200px;
    position: absolute; 
    top: 40%;
    left: 69.5%; 
    margin-left: 100px; 
    background-color: rgb(224, 243, 219);
    overflow: hidden;
    padding: 20px 10px;
  }
  
  .sidenav a {
    padding: 10px 10px 10px 10px;
    text-align: right;
    text-decoration: none;
    font-size: 17px;
    border: 2px solid #FFABAB;
    background-color: rgb(247, 252, 255);
    color: #9398c5;
    display: block;
    margin-bottom: 20px;
  }
  .sidenav a:hover {
    color: #9f59c7;
  }
