/* 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-container { flex: 1 1 80%; }

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

	img{
		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;
	/* Home ja Back to top keskelle oikeeoppisesti/semmin löl */
	/* en löydä sitä videota ny mikä näytti sen helpommin CSS puolel. Koitin inlinena html puolel mut jostai syyst tekee nappulasta korkeamman, joten anti olla toistaseks ainaki */

}

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-box-container {
	display:block;
} */

section {
  /* borderit isoille sisältöbokseille */
	border: 2px ridge var(--border);
	border-radius: 5px;
	background: #F6F5DB;
	padding: 14px 28px 14px 28px; /* top, right, bottom, left*/
	margin: auto auto 5px auto;

	         .box {
						 display: grid;
						 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
						 gap: 0.5rem;
						 
						  .info-card-left {
							 p { padding-inline-start: 0.7rem;}
						 }
						  .profile-pic {
            	img {
          		width:400px;
	           	border-radius: 5px;
	             }
						 }
						  .info-card-right {
							p { padding-inline-start: 0.7rem;}
						 }
							 
        	} 
		}
	
.profilegallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	grid-auto-rows: var(--row-height, max(300px));
	gap: 0.5rem;
    }

    img {
    	width: 100%;
    	height: 100%;
    	object-fit: cover;
			
    }

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;
	padding-bottom: 5px;
}
h3 { 
	font-size: 1.1rem;
}
h4 { 
	font-size: 1rem;
}

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

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