
/**********************************************************************

KaksiMaailmaa.css, version 0.96, 2026-03-03. 

***********************************************************************/

:root {
	--main-bg-color: #F7F7F7;
	--header-bg-color: #CACACA;
	--bgcolor-darker: #D9D9D9;
	--regular-text-color: #2A2A2A;
	--h2-color: #5E4F28;
	--h2-color-light: #8E7F58;
	font-size: 16px;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	/* outline: 1px solid red;  /* Reserve for debugging. */
}

body {
	display: flex;
	flex-direction: column;
	color: var(--regular-text-color);
	background: var(--main-bg-color);
	font-family: 'Open Sans';
}

footer {
	display: flex;
	justify-content: center;
	margin-top: 50px;
	background-color: var(--bgcolor-darker);
}

footer p {
	font-size: small;
	padding-top: 20px;
	padding-bottom: 20px;
	color: var(--h2-color-light);
}

.container-header {
	display: grid;
	grid-template-columns: 200px auto auto auto 50px;
	background-color: var(--main-bg-color);
	padding: 10px;
}

.logo {
	max-width: 200px;
	padding-top: 10px;
}

.mainmenu {
	display: none; /* mobile first approach */
	gap: 20px;
	font-family: "Nunito Sans";
	margin-left: 20px;
	padding-top: 18px;
}

.mainmenu a {
	color: var(--h2-color-light);
	padding-right: 10px;
}

.mainmenu a:link, .mainmenu a:visited {
  text-decoration: none;
}

.mainmenu a:hover, .mainmenu a:active {
	font-weight: bold;
	color: var(--h2-color);
}

.img-dropdownbtn {
	width: 29px;
}

.dropbtn {
	background-color: var(--main-bg-color);
	color: var(--main-bg-color);
	padding: 10px;
	border: none;
	border-radius: 6px;
}

.dropbtn:hover, .dropbtn:focus {
	background-color: var(--h2-color-light);
	min-width: 16px;
	min-height: 16px;
}

.dropdown {
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	margin-right: 12px;
	right: 0;
	background-color: #f1f1f1;
	min-width: 160px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 1;
}

.dropdown-content a {
	display: block;
	color: var(--h2-color-light);
	padding: 12px 16px;
	text-decoration: none;
}

.dropdown a:hover, .dropdown a:active 
{
	background-color: #ddd;
	font-weight: bold;
	color: var(--h2-color);
}

.show {display:block;}

#cookie-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 400px;
    background: white;
    color: black;
    padding: 20px;
    border-width: 0px;
    border-radius: 6px;
    box-shadow: 10px 10px 5px gray;
}

#cookie-banner p {
	margin-bottom: 20px;
}

#cookie-banner button {
    margin-left: 10px;
    margin-top: 2px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    min-width: 150px;
}

#cookie-banner button.accept {
    background-color: #4CAF50;
    color: white;
}

#cookie-banner button.reject {
    background-color: #888;
    color: white;
}

h2 {
	color: var(--h2-color-light);
	font-size: 1.2em;
	font-weight: bold;
	padding-bottom: 10px;
	margin-top: 20px;
}


section {
	display: grid;
	align-items: stretch;
	grid-template-columns: repeat( auto-fit, minmax(400px, 1fr) );
	margin-left: clamp(10px, 10%, 150px);
	margin-right: clamp(10px, 10%, 100%);
	max-width: 1400px;
}

section p {
	padding-left: 10px;
	padding-bottom: 10px;
}

.format-ingress {
	font-size: 1.5rem;
	color: var(--h2-color-light);
	padding-left: 0;
	padding-top: 30px;
	text-align: center;
	font-style: italic;
}

.list-item {
	padding-bottom: 0;
}

.italic {
	font-style : italic
}

.format-img-portrait {
	display: block;
	margin: auto;
}

.format-img-resizable {
	display: block;
	width: 90%;
	height: auto;
	max-width: 100%;
	margin: 0 auto;
    box-shadow: 10px 10px 5px gray;	
}

.col2col {
	min-width: 400px;
}

@media screen and (min-width: 875px) {
	.mainmenu { display: flex; }
	.dropbtn { display: none; }
	.layout-column-twocol { max-width: 50%; }
	.format-ingress {
		padding-left: 10%;
		padding-top: 130px;
	}
}


