/* base styling */
:root {
		--text: #493941;
		--border: #ffffff;


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


	}
/* /base styling */


* { 
	box-sizing: border-box;
}
body {
	font-family: sans-serif;
	color: var(--text);
	background-color: #D66565; /* 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;
	
	  /* border: 5px ridge var(--border); */
	  border-radius: 5px;
	  background-image: url('https://sagastree.neocities.org/Doll_profiles/Dahlia/cute-sweets.gif'), 
		  linear-gradient(to right, rgb(30 75 115 / 0%), transparent);
    background-color: #ffffff;
    background-repeat: repeat;
    background-attachment: fixed;

}
/* 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: 5px ridge #ffffff; */
	border-radius: 5px;
	margin: 10px 10px 5px 10px;

	img{
		height: 100%;
		object-fit: cover;
		overflow: hidden;
		border-radius: 5px;
}
}
/*                          /ISO BANNERI           */


nav {
	/* navigaatio-boksi */
	/* border: 2px ridge var(--border); */
	border-radius: 5px;
	padding: 14px;
	background: #ECC7DB;
	margin: 0px 5px 5px 10px;
  /* sticky nav seuraavat 3 riviä */
  position: sticky;
  top: 0;
  overflow: hidden;
	/* Home ja Back to top keskelle oikeeoppisesti/semmin löl */
	/* taisin fixata inlinena jotenki */

}

nav a {
/*                                    NAVIGAATION PAINIKKEET */
	display: block;
	margin: 5px;
	background: #ECC7DB;
	border: 10px solid transparent;
  border-image: url('whitelace.png') 17 round;
	padding: 5px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	background: #ECC7DB;
}

/* .main-box-container {
	display:block;
} */

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

	         .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(500px));
	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);
}