/*---------------------------
layout.css
Wordpress Theme - Deadalus

Created by Mohan Samarasinghe on 10/12/2025.
---------------------------*/
/*

	This CSS will determine the two column flex layout

*/

html, body { height: 100%; width: 100%; }			
	
*, *:before, *:after {
	background: transparent;
	border: 0;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

/*--[ Layout component Styles ]----------------------------------------------------*/
html {
	background-color: #fbf0e0;
	background-image: url("_img/html_bg.jpg");
	background-repeat: repeat;
}

header {
   box-shadow:
   -5px 0 8px -8px var(--bg-shadow),
   5px 0 8px -8px var(--bg-shadow);
   flex:0;
   display:flex;
   justify-content: center;
   max-width: 1024px;
   margin: 0 auto;
   padding: 0px;
   width: 100%;
   background-image: url("_img/page_bg.jpg");
   background-repeat: repeat;
}

main {
	background-image: url("_img/page_bg.jpg");
	background-repeat: repeat;
	box-shadow:
	  -5px 0 8px -8px var(--bg-shadow),
	  5px 0 8px -8px var(--bg-shadow);
	flex: 1;
	flex-grow: 1;
	max-width: 1024px;
	margin: 0 auto;
	padding: 0px;
	width: 100%;
}

body {
	display: flex;
	flex-direction: column;
	height: 100vh;
	min-height: 100%;
	/* Avoid the IE 10-11 `min-height` bug. */
	-webkit-font-smoothing: subpixel-antialiased;
}

article {
	padding: 20px;
	display:flex;
	flex-direction: column;
	height: 100%;
}

footer {
	flex:0;
	flex-shrink: 0;
	width: 100%;
	max-width: 1024px;
	margin: 0 auto;
	padding: 0px;
	box-shadow:
	  -5px 0 8px -8px var(--bg-shadow),
	  5px 0 8px -8px var(--bg-shadow);
	background-image: url("_img/page_bg.jpg");
	background-repeat: repeat;
	height: 200px;
	display: block;
}


/*--[ Footer Background Image Styles ]--------------------------------------------*/

.footerimg{
	width: 100%;
	height: 100%;
	background-image: url("_img/footer_bg.png");
	background-position: bottom;
	background-repeat: no-repeat;	
	background-size: 100%;	
	padding: 20px;
	text-align: center;	
	font-size: 0.8em;
	font-style: italic; 
}


/*--[ Main content area ]----------------------------------------------------------*/

.container {
	display: flex;
	flex-direction: row;
	flex-grow:1;
	height: 100%;
}

.maincolumn {
	flex: 1;
	flex-grow: 1;
}


.sidecolumn {
	width: 300px;
	flex-shrink: 0;
	height: auto;
	padding: 15px;
	margin-top: 20px;
	margin-bottom: 20px;
	margin-right: 20px;
	margin-left: 0px;
}

/*--[ Side Column Styles ]--------------------------------------------------------*/

.sidecolumn {
	background: var(--bg-element);
	border-radius: 8px;
}

/*--[ Main contents Styles ]--------------------------------------------------------*/

.contents{
   flex:1; 
   flex-grow: 1;
}

/*--[ Header Banner Styles ]------------------------------------------------------*/

.banner{
	width: 100%;
	height: 200px;
	background-image: url('_img/header_bg.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: top center;
}

.banner img{
	width: 60%;
	height: auto;
	padding-top: 7%;
	margin: 0 auto;
	opacity: 60%;
}

/*--[ Logo SVG Styles ]-----------------------------------------------------------*/

.banner svg{
	padding-top: 60px;
	width: 50%;
	height:auto; 
	fill: rgb(69, 83, 81, 0.5); 
	filter: drop-shadow(0 0 2px rgb(255,255,255,1)); 
	fill-rule:evenodd; 
	clip-rule:evenodd; 
	stroke-linejoin:round; 
	stroke-miterlimit:2;
	grid-area: 1 / 1;
}
/*--[ Previous and Next post Navigation links ]-----------------------------------*/

.post-navigation{
   flex-shrink: 0;
   flex-flow: 0;
   justify-content: end;
	padding:0px;
	margin: 0px;
	margin-bottom: 0px;
	font-family: var(--font-body);
	font-size: 14px;
	display: flex;
	gap: 4%;
}

/*----------------------------*/

.next-post{
	width: 48%;
	flex-shrink: 0;
	background: var(--bg-element);
	border-radius: 8px;
	text-align: right;
	display: flex;
	padding:0px;
	margin: 0px;
	align-items: center;
}

.next-icon{
	flex:0;
	flex-shrink: 0;
	padding: 10px 10px 10px 4px;
}

.next-text{
	flex:1;
	padding: 10px 4px 10px 10px;
}

/*----------------------------*/

.prev-post{
	width: 48%;
	flex-shrink: 0;
	background: var(--bg-element);
	border-radius: 8px;
	display: flex;
	padding:0px;
	margin: 0px;
	align-items: center;
}

.prev-icon{
	flex:0;
	flex-shrink: 0;
	padding: 10px 4px 10px 10px;
}


.prev-text{
	flex:1;
	padding: 10px 10px 10px 4px;
}

/*----------------------------*/

/*--[ Main Menu Styling ]---------------------------------------------------------*/

.menubar{
   max-width: 1024px; 
   margin: 0 auto; 
   padding: 0px;
   width: 100%;
   background-image: url("_img/page_bg.jpg");
   background-repeat: repeat;
   box-shadow:
   -5px 0 8px -8px rgba(0,0,0,0.25),
   5px 0 8px -8px rgba(0,0,0,0.25);
   line-height: 1;
}

.main-nav{
	padding: 0px;
	margin: 0px;
}
.main-nav ul{
	padding: 0px;
	margin: 0px;
}

.main-menu {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
	justify-content: center;
	align-items: center;
}

.main-menu li{
	list-style-type: none;
	margin:0px;
}

.main-menu li a {
	display: block;         /* smooth hitbox */
	text-decoration: none;
	color: var(--color-links);
	font-weight: 600;
	font-family: var(--font-nav);
	letter-spacing: 1px;
	padding: 10px 7px;
	margin: 0;
}

.main-menu li a:hover {
	color: rgba(240, 255, 206, 1);
	text-shadow: 0px 0px 3px rgba(0, 0, 0, 0.435);
}

/*--[ Menu Toggle Button ]--------------------------------------------------------*/

.menu-toggle {
	display: none; /* Hide toggle on desktop */
	background: none;
	font-size: 16px;
	padding: 9px;
	color: rgba(255, 103, 165, 1);
	width:100%;
	font-weight: 600;
	font-family: var(--font-nav);
	letter-spacing: 1px;
	text-align: center;
	text-shadow: 0px 0px 3px  rgba(250, 255, 209, 0.665);
}

/*--[ Styles Specific for tablet resolution or smaller ]--------------------------*/

@media (max-width: 768px) {
   
	.container {
		flex-direction: column;
		height: auto;
	}
	
	.sidecolumn {
		width: 100%;
		margin: 0 auto;
	}
	
	.banner img {
		padding-top: 10%;
		width: 70%;
	}
	
	header {
		height: 26vw;
		max-height: 26vw;
	}

   
	.menu-toggle {
		display: block;
	}
  
	.main-nav ul {
		display: flex;
		flex-wrap: wrap;
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out 0.1s;
		padding-left: 10px;
		padding-right: 10px;
	}

	.main-nav.active ul {
		max-height: 200px;   
		opacity: 1;
	}

	.main-nav.active ul a {
		flex:1;
		padding-bottom: 15px;
		padding-top: 5px;
		padding-left: 10px;
		padding-right: 10px;        
	}
		
	.main-menu li a {
		font-size: 20px;
		padding-bottom: 15px;
		padding-top: 5px;
		padding-left: 10px;
		padding-right: 10px;
   }
   

}

/*--[ Styles Specific for Phone resolution or smaller ]---------------------------*/

@media (max-width: 400px) {
	
	header {
		height: 27vw;
		max-height: 27vw;
	}

}