/*###########################
########### INDEX ###########
###########################*/

html{
  background-image: url('bgimages/Syksy/Syksy_1.jpg');
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

body{
  position: relative;
  margin: 0;
  z-index: -1;
}

#content{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#overlay{
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 2160px;
}

.logo {
  width: 200px;
  float: right;
  margin: 20px;
  opacity: 1;
}

.contentblock{
  /* width: 80%;
  height: 80%; */
  padding-top: 15px;
  padding-bottom: 15px;
  padding-left: 30px;
  padding-right: 30px;
  background-color: rgba(230, 230, 230, 0.75);
  /* background-color: rgba(0, 0, 0, 0.9); */
  border-radius: 5px;
  margin: 150px 10%; 
  text-align: left;
  /* box-shadow: 0px 0px 1px 1px black; */
}

#oletkirjautunutulos{
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 24px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 3px;
  border-radius: 3px;
}

/*###########################
###### NAVIGATION MENU ######
###########################*/

  /* Menun tausta */
  .sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 10; /*Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
    white-space: nowrap;
  }
    
  /* Linkit */
  .sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 25px;
    color: #818181;
    display: block;
  }
    
  /* Mouse hover efektit */
  .sidenav a:hover {
    color: #f1f1f1;
  }

  #navbtn {
    font-size: 50px;
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    padding-bottom: 5px;
    width: max-content;
    height: max-content;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;

    -webkit-transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
  }
  #navbtn:hover {
    cursor: pointer;
    color: #818181;

    -webkit-transform: rotate(-90deg);
    transform: rotate(-90deg);
  }

  /* Sulkemisnapin sijainti ja tyyli */
  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }

  .navlinks {
    font-weight: bold;
  }

  /* Työntöefekti pääsivun freimille */
  #main {
    transition: margin-left .5s;
  }

/*#########################
##### SALASANASUOJAUS #####
##########################*/

  #form{
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 5%;
  }

/*####################
##### JÄSENSIVUT #####
####################*/

#tervetuloa{
  position: fixed;
  bottom: 30px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 3px;
  border-radius: 3px;
  font-size: 20px;
}

#nappi_ulos{
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 24px;
}

#nappi_ulos:hover{
  cursor: pointer;
}

#saalisilmoitusform{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#saalisilmoitusform:nth-child(3){
  margin-left: auto;
}

tr, td{
	padding: 5px;
	border-radius: 2px;
	border-color: rgba(0, 0, 0, 0.9);
	border-collapse: collapse;
	background-color: rgba(0, 0, 0, 0.1);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 18px;
}

#johtokuntataulukko{
	width: 100%;
	margin: 10px auto;
}

.johtokunta_tehtava{
	font-weight:bold;
}

/*###############
##### FONTS #####
###############*/

  h1{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 30px;
    /* color: white; */
  }
  h2{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 25px;
    /* color: white; */
  }
  p{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 20px;
    /* color: white; */
  }
  

/*###########################
###### MOBILE OPTIMIZ. ######
###########################*/

  /* Pienemmillä näytöillä säädetään fonttikokoa */
  @media screen and (max-width: 800px) {
    h1{
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-size: 24px;
    }
    h2{
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-size: 20px;
      /* color: white; */
    }
    p{
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-size: 16px;
    }
    .sidenav {
        padding-top: 20px;
    }

    .sidenav a {
        font-size: 22px;
    }

    #menubtn {
        font-size: 45px;
        font-weight: bold;
    }

    .logo {
      width: 150px;
    }

    #tervetuloa{
      font-size: 10px;
    }

    #nappi_ulos{
      font-size: 12px;
    }

    #oletkirjautunutulos{
      font-size: 10px;
    }

    tr, td{
      font-size: 9px;
    }
  }