/* 
==========================================================
    CSS File: style.php
    Version: 1.0.4
    Author: Graeme Coles-Andrew
    Description: stylz
	License: Creative Commons
==========================================================
*/

/* Basic reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Content fills screen */
html, body {
	height: 100%;
}

/* Body elements */
body, input, button {
	font-family: Arial, sans-serif;
	line-height: 1.6;
	font-size: 1em;
}
body {
	background-image: url("/images/background.jpg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
}
main {
	padding: 20px;
	max-width: 800px;
	margin: 0 auto;
	background-color: #FFF;
}
button {
	padding: 1px 10px;
	font-weight: bold;
	border: solid 1px #777;
	background-color: #FFF8DC;
	color: #777;
	border-radius: 3px;
}
hr {
	margin: 10px 0;
	color: #C19A6B;
}
img {
	border: 0;
}
fieldset {
	border: dashed 1px #ddd;
	padding: 10px;
	margin-bottom: 20px;
}
legend {
	font-size: 1.2em;
	font-weight: bold;
}
caption {
	text-align: left;
	font-size: 1.2em;
}
p {
	margin-bottom: 10px;
}
p.question {
	font-weight: bold;
}
blockquote {
	margin-left: 30px;
	padding-left: 10px;
	border-left: dashed 1px #ddd;
}
.small, figcaption {
	font-size: 0.8em;
}

/* Search box */
#search {
	padding-left: 5px;
	width: 75%;
	max-width: 500px;
}
#searchResults {
	margin-top: -9px;
	border: 1px solid #777;
	border-radius: 3px;
	max-height: 200px;
	overflow-y: auto;
	display: none;
	z-index: 1000;
	position: absolute;
	background-color: #fff;
	width: 75%;
	max-width: 500px;
}
.searchItem {
	padding: 8px;
	cursor: pointer;
	border-bottom: 1px solid #FFF8DC;
}
.searchItem:hover {
	background-color: #FFF8DC;
}
.searchItem a {
	display: block;
	width: 100%;
}

/* Links */
a {
	text-decoration: none;
	text-underline-offset: 3px;
}
a[rel="external noopener"]::after {
	content: ' ↗';
	margin-left: 0.25em;
	display: inline-block;
	vertical-align: super;
	font-size: 0.8em;
	transition: transform 0.2s ease;
	opacity: 0.6;
}
a[rel="external noopener"]:hover::after {
	transform: translate(2px, -2px);
	opacity: 1;
}
a:not([name]), a:visited, a:hover {
	color: #007BEE;
}
a:hover {
	text-decoration: underline;
}
a[name] {
	color: #000;
	text-decoration: none;
}

/* Lists */
ul, ol {
	margin-left: 30px;
	padding: 10px;
}
ul.transfers {
	margin-left: 0;
}
ul.transfers li {
	list-style-type: none;
	padding: 20px;
	max-width: 550px;
	margin: 0 auto 15px;
	border: transparent 1px #000;
	text-align: center;
}
ul.transfers li span.date {
	font-size: 0.8em;
}
/* also works:
ul.transfers li.next {
    padding-bottom: 60px;
    background-image: url("/images/logo_200x50.png");
    background-repeat: no-repeat;
    background-position: center bottom;
}
*/
ul.transfers li.next:after {
    content: '↓';
    display: block;
    height: 10px;
	font-size: 1.5em;
}
ul.transfers li.outcome {
	background-color: #FFF8DC;
}

/* Headings */
h1 {
	margin: 10px 0 20px 0;
	font-size: 2em;
}
h2 {
	padding: 10px 0;
	font-size: 1.5em;
	border-top: 1px solid #FFF8DC;
}
h3 {
	margin: 20px 0 0 0;
	font-size: 1.2em;
}

/* Footer */
footer {
    margin-top: 20px;
    text-align: center;
    font-size: 1em;
    color: #000;
	background-color: #FFF8DC;
	justify-content: space-between;
    align-items: center;
	width: 100%;
	padding: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}
footer a {
	text-decoration: underline;
	color: #000 !important;
	margin: 0 15px;
}

/* Nav */
.logo, #logo {
	width: 200px;
	height: 50px;
	border-radius: 8px;
}
nav {
	position: sticky;
    background-color: #C19A6B;
    padding: 10px 20px;
	left: 0;
	top: 0;
	width: 100%;
	margin: 0;
	z-index: 1000;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
	display: flex;
    justify-content: space-between;
    align-items: center;
}
nav ul {
    list-style: none;
    display: flex;
    padding: 0;
}
nav ul li {
    margin: 0 15px;
    display: inline;
}
nav a, nav ul li a {
    color: #FFF !important;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover, nav ul li a:hover {
    color: #007BEE;
}

/* Breadcrumbs */
.breadcrumb {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	padding: 10px 20px;
	max-width: 800px;
	margin: 0 auto;
	background-color: #FFF8DC;
}
.crumb {
	margin-right: 8px;
}
.crumb a {
	text-decoration: none;
	color: #000;
}
.crumb a:hover {
	text-decoration: underline;
}
.crumb + .crumb::before {
	content: "›";
	margin: 0 8px;
}
.crumb.active {
	color: #6c757d;
}

/* Hamburger menu */
.hamburger {
    display: none;
    font-size: 30px;
    color: #FFF;
    cursor: pointer;
}
#patties {
	display: flex;
}

/* Data table */
.dataTable, .dataTableSimple {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}
.dataTable tr, .dataTableSimple tr {
	border: 1px solid #ddd;
}
.dataTable tr:hover, .dataTable th, .dataTableSimple tr:hover, .dataTableSimple th {
	background-color: #FFF8DC;
}
.dataTable th, .dataTable td, .dataTableSimple th, .dataTableSimple td {
	padding: 8px;
	border: 0;
	text-align: left;
}

/* Lightbox */
.thumbnail-container {
    text-align: center;
    margin-top: 50px;
}
.thumbnail {
    width: 150px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.thumbnail:hover {
    transform: scale(1.1);
}
.lightbox {
    display: none; /* Hidden initially */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}
.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover, .close:focus {
    color: #ccc;
}

/* Charts */
svg {
	border: 1px dashed #C19A6B;
	padding: 0 5px;
	max-height: 250px;
	height: auto;
}
svg rect, svg circle, svg path {
    fill: #007BEE;
    stroke: #C19A6B;
    stroke-width: 2;
	fill-opacity: 0.2;
}
/*
svg.venn {
	width: 100%;
	height: auto;
	max-width: 100%;
	display: block;
}
*/
svg circle.venn1, svg circle.venn2 {
	fill: #007BEE;
	fill-opacity: 0.2;
}
svg text {
    font-size: 16px;
    text-anchor: middle;
    fill: #000;
}

/* Flow text round image */
img.flowimage {
	width: 30%;
	max-width: 200px;
	float: left;
	margin-right: 20px;
	height: auto;
	border-radius: 20px;
	border: 1px dashed #000;
}

/* Mobile styles */
@media (max-width: 768px) {
	/* larger input boxes */
	input, button {
		line-height: 2.0;
	}
	/* nav */
    #patties {
        display: none; /* Hide nav list by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: #C19A6B;
        position: absolute;
        top: 60px;
        left: 0;
        padding-top: 10px;
    }
    /* show hamburger icon on mobile */
    .hamburger {
        display: block;
    }
    /* menu items */
    #patties li {
        text-align: center;
		border-top: 1px solid #fff;
    }
    /* show nav list when active */
    #patties.active {
        display: flex;
    }
    /* nav links */
    #patties li a {
        font-size: 20px;
        color: #FFF;
		padding: 10px 0;
		width: 100%;
		display: block;
    }
	/* data tables */
	.dataTable
	, .dataTable body
	, .dataTable th
	, .dataTable td
	, .dataTable tr {
		display: block;
	}
	.dataTable th {
		display: none;
	}
	.dataTable td {
		border: none;
		position: relative;
		padding-left: 50%;
	}
	.dataTable td::before {
		content: attr(data-label);
	}
	.dataTable td:first-child {
		padding-left: 5px;
	}
	/* flow text round image */
	img.flowimage {
		display: none;
	}
}