/* ========================= */
/* 🔹 ALKUPERÄINEN CSS (100%) */
/* ========================= */

body {background: url(""); color:#1e2545; font-family: "LatoLight", "Arial", "Helvetica"; }
a {color: #1e2545; text-decoration: underline;}
a:hover {color: #1e2545; text-decoration: none;}
p {margin: 15px 0; line-height: 22px;}
h1 {margin-bottom: 15px;color: #1e2545; font-weight: normal; }
h2 {margin-bottom: 15px;color: #1e2545; font-weight: normal; }
h3 {margin-bottom: 15px;color: #1e2545; font-weight: normal; }
h4 {margin-bottom: 15px;color: #1e2545; font-weight: normal; }
h5 {margin-bottom: 15px;color: #1e2545; font-weight: normal; }
h1 {font-size: 50px;color: #FFF;font-family: "LatoHairline", "Arial", "Helvetica"; text-shadow: 0px 0px 10px rgb(47, 13, 2); text-shadow: 2px 2px #000000;}
h2 {font-size: 40px; text-transform: uppercase; text-align: center; }
h3 {font-size: 18px; color: #2f5700;}
h4 {font-size: 20px; text-transform: uppercase; font-family: "LatoRegular", "Arial", "Helvetica";}
h5 {font-size: 15px; text-transform: uppercase; font-weight: bold; font-size: 100%;}
h6 {font-size: 14px; text-transform: uppercase; color: #1e2545;}



.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 9999;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: bold;
}

.logo img {
  height: 40px;
}

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  padding: 6px 10px;
}

.nav-container {
  position: relative;
  justify-content: center;
}

.nav a:hover {
  color: #9ad0ff;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}


.gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}

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

/* otsikot gallerioille */
.section h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  color: #9ad0ff;
}

.lightbox {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background: rgba(0,0,0,0.92);
  display:none;
  justify-content:center;
  align-items:center;
  z-index: 9999;
}

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

/* ruksinappi */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  user-select: none;
}

ul.a {
    list-style-type: circle;
    text-align: left;
}	

img,
object,
embed {max-width: 100%;
    box-shadow: 0px 2px 8px 3px rgba(0,0,0,0.5);
    border-radius: 5px 5px 5px 5px;
}
	
section, header, footer{position: relative; width: 100%; margin: 0; }

section.nolla{background: url("http://www.jaasjarvenosakaskunnat.fi/images/jaasjarvi.jpg") no-repeat  fixed; height: 560px;  
background-size: cover;
background-position: top;    
}
 
section.nolla h1 {
    text-align: center;
    position: absolute;
    top: 150px;
    width: 100%;
    text-transform: uppercase;
}
	
section.esittely{ background: url("images/auringonlasku.jpg") center center;  }
section.esittely .content{width: 800px; margin: 0 auto; padding: 40px 0 40px 0; background: url("") center 130px no-repeat;  }
section.esittely .content p{ font-size: 14px; color:#1e2545;}
section.esittely .content a{ font-size: 14px; color:#1e2545;}
section.esittely .content a:hover{ font-size: 14px; background-color: #FFF;}

section.mina .content{width: 800px; margin: 0 auto; padding: 40px 0 40px 0;}
section.mina .content h2{ text-align: center; padding: 30px 0; margin-bottom: 30px; text-transform: uppercase; border-bottom: #efefef solid 1px; }
section.mina .content .eka, 
section.mina .content .toka{ float: left; display: inline; width: 300px;  text-align: left;}
section.mina .content .toka{ float: right; text-align: left; width: 400px}
section.mina .content h4{text-align: left;}

section.yksi{background: url("http://www.jaasjarvenosakaskunnat.fi/images/kalasaalis.jpg") no-repeat center center fixed; height: 560px;  
background-size: cover;
}

section.luvat { background-color: #f5f2f23d;}
section.luvat .content{width: 800px; margin: 0 auto; padding: 10px 0 10px 0;}
section.luvat .content h2{ text-align: center; padding: 30px 0; margin-bottom: 30px; text-transform: uppercase; border-bottom: #efefef solid 1px; }
section.luvat .content .eka, 
section.luvat .content .toka{ float: left; display: inline; width: 300px; text-align: left;}
section.luvat .content .toka{ float: right; text-align: left; width: 400px}
section.luvat .content h4{text-align: left;}

section.yksi3{background: url("http://www.jaasjarvenosakaskunnat.fi/images/kalastusleiri2.jpg") no-repeat center center fixed; height: 660px;  
background-size: cover;
}

section.yksi2{background: url("http://www.jaasjarvenosakaskunnat.fi/images/P3251328.JPG") no-repeat center top fixed; height: 560px;  
background-size: cover;
}

section.yksi1{background: url("http://www.jaasjarvenosakaskunnat.fi/images/kalastusleiri13.jpg") no-repeat center center fixed; height: 560px;  
background-size: cover;
}

.clear:before, .clear:after {content: "\0020";display: block;}  
.clear:after {clear: both;}  
.clear {zoom: 1;} 

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #ec400a;
    color: white;
    text-align: center;
}

/* ========================= */
/* 🔧 FIX (lisätty loppuun) */
/* ========================= */

.header {padding: 0;}

.nav-container {
  padding: 0 20px;
  position: relative;
}

.logo {z-index: 2;}

.nav {z-index: 1;}

.hamburger {
   z-index: 10001;
}

@media (max-width: 480px) {
	section, header, footer{background-attachment: inherit !important; }
	section .content{ width: 90% !important; }
	section.luvat .content {width: 300px; margin: 0 auto; padding: 10px 0;  }
	section.mina .content {width: 300px; margin: 0 auto; padding: 10px 0;  }
	section.yksi{ background-image: none !important;}
	section.yksi1{ background-image: none !important;}
	section.yksi2{ background-image: none !important;}
	section.yksi3{ background-image: none !important;}
	section.yksi{height:0px !important;}
	section.yksi1{height:0px !important;}
	section.yksi2{height:0px !important;}
	section.yksi3{height:0px !important;}
	section.esittely p{text-align: left !important;}
	section.kuvat .content .toka{ float: left;}
	h3 {
		text-align:left;
	}

  h2	{font-size: 30px;
		text-transform: uppercase;
		text-align: left;}

	p {
		margin: 0px 0;
		line-height: 22px;
		text-align:left;}
}




@media only screen and (min-width: 480px) and (max-width: 767px) {
	section, header, footer{background-attachment: inherit !important; }
	section .content{ width: 400px !important; }
	section.nolla h1{ top: 100px; font-size: 24px;}
	section.luvat .content .eka, 
	section.luvat .content .toka{float: left; text-align: left; width: 400px; }
	section.mina .content .eka, 
	section.mina .content .toka{float: left; text-align: left; width: 400px; }
	section.kuvat .content iframe{width: 400px !important; height: auto !important; }
	section.yksi{background-image: none !important;}
	section.yksi1{background-image: none !important;}
	section.yksi2{background-image: none !important;}
	section.yksi3{background-image: none !important;}
	section.yksi{height:0px !important;}
	section.yksi1{height:0px !important;}
	section.yksi2{height:0px !important;}
	section.yksi3{height:0px !important;}
	section.esittely p{text-align: left !important;}
	section.kuvat .content .toka{ float: left;}
	h3 {
		text-align:left;}

	h2{  font-size: 30px;
		text-transform: uppercase;
		text-align: left;}

	p {
		margin: 0px 0;
		line-height: 22px;
		text-align:left;}
}


@media (min-width: 768px) and (max-width: 900px) {
	section .content{ width: 300px !important; overflow: hidden !important;}
    section .content {width: 90% !important;}
    section.nolla h1{ top: 100px; font-size: 20px;}
	section.nolla{height: 200px !important;}
	section.luvat .content .toka{float: left; text-align: center; width: 300px; }
	section.luvat .content .eka{float: left; text-align: left; width: 300px; }
	section.luvat .content p {font-size: 14px; color: rgb(30, 37, 69);}
	section.mina .content .toka{float: left; text-align: center; width: 300px; }
	section.mina .content .eka{float: left; text-align: left; width: 300px; }
	section.mina .content p {font-size: 14px; color: rgb(30, 37, 69);}
	section.yksi{background-image: none !important;} 
	section.yksi{height:0px !important;}
	section.esittely p{text-align: left !important;}
	section.yksi1{background-image: none !important;} 
	section.yksi1{height:0px !important;}
	section.yksi2{background-image: none !important;} 
	section.yksi2{height:0px !important;}
	section.yksi3{background-image: none !important;} 
	section.yksi3{height:0px !important;}

	h2{  font-size: 30px;
		text-transform: uppercase;
		text-align: left;}
    
    
    section.luvat .content h2 {
    text-align: left;
    margin-bottom: 30px;}

}









@media (max-width: 900px) {
  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
			}

  .nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  transform: none;
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.97);}
  .nav.active {
    display: flex;
  }
  .nav a {
    width: 100%;
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
  }
  
}

@media (max-width: 480px) {
	.hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
	.nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  transform: none;
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.97);
}
	.nav.active {
  display: flex;
}
	.nav a {
    font-size: 15px;
    padding: 12px 0;
  }
	.logo {
    font-size: 14px;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
	.hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
	.nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  transform: none;
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.97);
}

@media (min-width: 768px) and (max-width: 900px) {
	.hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
	.nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  transform: none;
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.97);
}
	.nav.active {
	display: flex !important;
	}

  .nav a {
    font-size: 17px;
  }
}

/* tabletti */
@media(max-width: 1000px){
	
	.hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
	.nav {
	position: fixed;
	top: 70px;
	left: 0;
	width: 100%;
	transform: none;
	display: none;
	flex-direction: column;
	background: rgba(0,0,0,0.97);
	}
.nav.active {
  display: flex;
}
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}


@media(max-width: 600px){
	.hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
	.nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  transform: none;
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.97);
}

.nav.active {
  display: flex;
}
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}