/* 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: hidden;

}

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;
}

section {
  /* borderit isolle sisältöboksille */
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: #F6F5DB;
	padding: 28px;
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;


	/*                                                                RAMBLES SKROLLILOOTA */
	            .updates-scrollbox {
	              max-width: 100%;
                  flex-grow: 1;
	                flex-shrink: 1;
	                flex-basis: auto;
	            }

                .scrollbox-outer {
                  background: #FFFEE2; border: 1px solid #494941; border-radius: 5px; box-sizing: border-box; background-clip: padding-box; overflow-x: hidden;
                }
                .scrollbox-inner {
                  height: 200px; min-height: 60px; padding: 8px; color: #494941; background: transparent; border-radius: 12px; scrollbar-color: #494941 #fffee2; scrollbar-width: thin; background-clip: padding-box; overflow-y: scroll; overflow-x: hidden; text-align: left;
                }
	             .scrollbox-inner::-webkit-scrollbar {
                  width: 10px;
                  background: #fffee2;
                }
                .scrollbox-inner::-webkit-scrollbar-thumb {
                  background: #494941;
                  border-radius: 12px;
                }
                .scrollbox-inner::-webkit-scrollbar-track {
                  background: #fffee2;
                  border-radius: 12px;
	              }
	         .text-box {
	         flex-grow: 1;
	         flex-shrink: 1;
	         flex-basis: auto;

	}
}
	/*                                                                /RAMBLES SKROLLILOOTA */

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;
}