/* base styling */
:root {
		--text: #494941;
		--border: #494941;
		--bg: #6A9870;

		a:link { color: var(--text); }

	}
/* /base styling */


* { 
	box-sizing: border-box;
}
body {
	font-family: sans-serif;
	color: var(--text);
	background-color: #4C725F; /* taustaväri joka kaiken takana, vihertävä siis */
}

.parent {
	max-width: 1250px;     /* original oli 55rem; */
	margin: 1vw auto 12px auto;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;

}
/* these control the column widths */
.navigation { flex: 0 0 16%; }
.main-box { flex: 1 1 80%; }

/*                          ISO BANNERI 1250x400px          */
header {
	width: 100%;
	height: auto;                                /* change banner height here*/
	border: 10px ridge #D3C257;
	border-radius: 2px;

	img{
    width: 100%;
		height: 100%;
}
}
/*                          /ISO BANNERI           */


nav {
	/* navigaatio-boksi */
	border: 2px ridge var(--border);
	border-radius: 5px;
	padding: 14px;
	background: #F6F5DB;
  /* sticky nav seuraavat 3 riviä */
  position: sticky;
  top: 0;
  overflow: clip;
}

nav a {
/*                                    NAVIGAATION PAINIKKEET */
	display: block;
	margin: 5px;
	background: #FFFEE2;
	border: 1px ridge var(--border);
	border-radius: 5px;
	padding: 5px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	background: #F6F5DB;
}




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




section {
  /* borderit isolle sisältöboksille */
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: #F6F5DB;
	}



footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}
h1, h2, h3, h4, h5, h6, p  { 
	margin: 5px;
	line-height: 1.2;
}
h1 { 
	font-size: 1.4rem;
	font-weight: normal;
	text-align: center;
	padding-bottom: 5px;
}
h2 { 
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 1.1rem;
}
h4 { 
	font-size: 1rem;
	padding-left: 12px;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:visited {
	color: #6F6F63;
}