

:root {
	--primary-bg-color: #ffffff; /* Main background color */
	--primary-text-color: #212529;
	--tertiary-bg-color: #e9ecef; /* Borders, code blocks, etc. */
	--footer-bg-color: #f8f9fa; /* Footer background */
	--accent-color:  #0d6efd; /* Links and active elements */
}

		
[data-theme="dark"] {
	--primary-bg-color: #1c1c1c;
	--primary-text-color: #f0f0f0;
	--tertiary-bg-color: #333333;
	--footer-bg-color: #1c1c1c;
	--accent-color:  #3a97f9;
}
		

body {
	color: var(--primary-text-color);
	background-color: var(--primary-bg-color);
	font-family:"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans",Inter,BlinkMacSystemFont,"Helvetica Neue",sans-serif;
	font-size: 100%;
	line-height:1.75;
	margin: 0px;
	padding: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

div { 
	margin: 0; 
	padding: 0;
}  

a {
	text-decoration:none;
}

a:hover,
a:focus {
	color:var(--accent-color);
}

a.external:after {
	display:inline-block;
	content:'';
	width:0.8em;
	height:0.8em;
	background: url(../../womic/images/external.svg);
	background-size:cover;
	margin-left:5px;
}


/* header title */
h1 {
	font-size: 150%;
}

/* page header title */
h2 {
	font-size: 150%;
	margin:0.5em 0 0.5em 0;
}

/* page second title */
h3 {
	display: inline-block;
	font-size: 120%;
}

/* layouts */

#header {
	clear: both;
	width: 100%;
	border-bottom: 2px solid var(--tertiary-bg-color);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

#logo, #nav {
	display: inline-block;
}

#logo {
	font-size: 1.5em;
	padding:5px 10px;
}

/* navigation */
#nav ul {
	list-style-type: none;
	padding-left: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding: 5px 10px;
	margin: 0px 20px;
}

#nav ul li {
	margin: 0 20px 0 0;
}

#nav a {
	text-decoration: none; 
	text-align: left;
	font-size:100%;
	color: var(--primary-text-color);
}

#nav li.active a {
	border-bottom:1px solid var(--primary-text-color);
}

#theme-toggle {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.5em;
	color: var(--primary-text-color);
	padding: 0 10px;
	margin-left: auto;
}

#menu-toggle {
	display: none;
}


#container {
	box-sizing: border-box;
	flex: 1;
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: space-around;
}


#content {
	box-sizing: border-box;
	padding: 5px 10px; 
	width: 100%;
	max-width: 800px;
	order: 2;
}

#left-side {
	order: 1;
}

#right-side {
	order: 3;
}

#left-side, #right-side {
	box-sizing: border-box;
	padding: 5px;
	max-width: 300px;
	flex: 1;
}


#left-side > .ad, #right-side > .ad {
	position: sticky;
	top: 0;
}


@media (max-width: 1400px) {	
	#left-side {
		display: none;
	}
}

@media (max-width: 1100px) {
	#container {
		flex-direction: column;
		align-items: center;
	}	

	#right-side {
		display: none;
	}
}

@media (max-width: 800px) {
	#container {
		flex-direction: column;	
	}

	#content {
		width: 100%;
		max-width: 100%;
	}

	#header {
		position: relative;
		justify-content: space-between;
	}

	#menu-toggle {
		display: inline-block;
		background: none;
		border: none;
		font-size: 24px;
		cursor: pointer;
		color: var(--primary-text-color);
		padding: 0 15px;
	}

	#nav {
		display: none;
		width: 100%;
		background-color: var(--primary-bg-color);
		order: 10;
	}

	#nav.open {
		display: block;
	}

	#nav ul {
		display: block;
	}

	#nav ul li {
		margin: 0;
		text-align: center;
		border-bottom: 1px solid var(--tertiary-bg-color);
	}

	#nav a {
		display: block;
		padding: 1em;
	}

	#nav li.active a {
		border-bottom-width:0px;
	}

	body {
		padding-top: 0;
	}
}


/* footer */
#footer {
	clear: both;
	box-sizing: border-box;
	width: 100%;
	text-align: center; 
	padding: 20px 0;
	border-top: 2px solid var(--tertiary-bg-color);
	/*background-color: var(--footer-bg-color);*/
}

/* table */
.table-wrapper {
	overflow-x: auto;
	margin: 20px 0;
	-webkit-overflow-scrolling: touch;
}

table { 
	width: 100%;
	border-collapse: collapse; 
	margin: 0;
}

table, th, td {border: 1px solid var(--tertiary-bg-color);}
th, td {padding: 5px 10px; }


/* FAQ */
div.question {
	font-style: italic; 
	font-weight: bold; 
	margin: 40px 0px 5px; 
}

div.answer {
	font-style: normal; 
	margin-top: 5px;
}

/* image */
img.resize {
	display: block;
	margin: 20px 10px;
	max-width: 80%;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
	cursor: zoom-in;
}


/* code */
div.code {
	background-color: var(--tertiary-bg-color);
	font-style: italic;
	margin: 10px;
	padding: 10px 10px;
	text-align: left;
	border-radius:5px;
}

		
span.circle {
	display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    padding: 10px;
	margin:20px 5px 20px 0px;
    border: 3px solid var(--primary-text-color);
	color: var(--primary-text-color);
    text-align: center;
    font: 24px Arial, sans-serif;
}

/* SVG for action icon */
svg.action {
  fill: var(--primary-text-color);
  background-color: var(--tertiary-bg-color);
  height: 1.5em;
  vertical-align: bottom;
  margin-right: 0.2em;
  padding:2px;
  transition: all 0.2s ease-in-out;
}

/* Style the tab */
.tabs {
	border:2px solid var(--tertiary-bg-color);
	border-radius: 10px;
}

.tab {
  overflow: hidden;
  border-bottom: 1px solid var(--tertiary-bg-color);
  padding: 5px 10px;
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  color: var(--primary-text-color);
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  margin: 15px 20px 15px 0px;
  padding-bottom:5px;
  transition: 0.3s;
  font-size: 100%;
}


/* Create an active/current tablink class */
.tab button.active {
	color: var(--accent-color);
	border-bottom:3px solid var(--accent-color);
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 10px 20px;
  /*border: 1px solid #ccc;*/
  border-top: none;
}

.tabcontent.active {
  display: block;
  /*border: 1px solid #ccc;*/
  border-top: none;
}


/* box-cover include box-label and box-action. */
details > summary {
	list-style: none; /* Remove default marker */
	width:100%;
	padding:10px 0px;
	display:flex;
	flex-direction:row;
	align-items:center;
	cursor: pointer;
	transition: color 0.2s;
}

details > summary:hover {
	color: var(--accent-color);
}

details > summary::-webkit-details-marker {
  display: none; /* Chrome */
}

details > summary::before {
	content: '▸';
	margin-right: 10px;
	transition: transform 0.2s;
}

details[open] > summary::before {
	transform: rotate(90deg);
}

details > div {
	margin: 5px 0 15px 22px;
	padding-left: 10px;
	border-left: 2px solid var(--tertiary-bg-color);
}

/* Grid Layout for Homepage */
.columns {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 20px 0;
}

.column {
	flex: 1;
	min-width: 280px;
	padding: 20px;
	border: 1px solid var(--tertiary-bg-color);
	border-radius: 5px;
	background-color: var(--primary-bg-color);
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 10px 20px;
	background-color: var(--accent-color);
	color: #ffffff;
	border-radius: 5px;
	text-decoration: none;
	margin-top: 15px;
	border: none;
	cursor: pointer;
	font-size: 100%;
	transition: opacity 0.2s;
}

.btn:hover,
.btn:focus {
	opacity: 0.9;
	color: #ffffff;
	text-decoration: none;
}

/* Lightbox */
#lightbox {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	display: none;
	justify-content: center;
	align-items: center;
	cursor: zoom-out;
}

#lightbox img {
	max-width: 95%;
	max-height: 95%;
	object-fit: contain;
}
