/*
** $Id$
** CSS for Model Rail Directory
** Copyright (C) 2023 Ian Hartas, Weston Technologies Ltd
*/

* {
	box-sizing: border-box; 
}

.row::after {
	content: "";
	clear: both;
	display: block;
}

[class*="col-"] {
	float: left;
}

html {
	font-family: Arial, Verdana, sans-serif;
	border: 0;
	margin: 0;
	padding: 0;
	background: grey;
	background-image: url("/images/background_200.png");
}

h1
{
	text-align: center;
	margin: 0px 0px 5px 0px;
}
h2
{
	text-align: center;
	margin: 0px 0px 5px 0px;
}
h3
{
	text-align: center;
	margin: 0px 0px 5px 0px;
}
h4
{
	text-align: center;
	margin: 0px 0px 5px 0px;
}

hr
{
	clear: both;
}

ul
{
	list-style-type: none;
	padding: 1px 2px 1px 2px;
	margin: 0;
	border: 0;
}

li
{
	padding: 0 5px 5px 5px;
}

fieldset
{
	background: grey;
	background-image: url("/images/background_200.png");
	padding: 10px 0;
	margin: 5px;
}

fieldset th, td
{
	text-align: left;
}

legend
{
	/* background-color: firebrick; */
	/* background-color: #f4592f; */
	background-color: #ff5500;
	color: white;
	padding: 5px 10px;
	border-radius: 25px;
	border-color: white; 
	border-style: solid;
	border-width: 3px; 
	box-shadow: 0 0 0 1px black;
	margin: 0 10px;
	font-size: 80%;
}

a
{
	color: black;
}

a:visited
{
	color: black;
}
a:hover
{
	font-style: italic;
}

p
{
	text-align: justify;
}

form, select, input
{
	padding: 2px;
	margin: 2px;
}

.normal_ul
{
	list-style-type: square;
	padding: 0px;
	margin: 0 0 0 15px;
}

.normal_ul li
{
	padding: 0px;
	margin: 0 0 0 15px;

}

.centered
{
	margin: auto;
	text-align: center;
}

.header {
	padding: 2px 0px 5px 5px;
	max-width: 300px;
}

.aside {
	background-color: grey;
	background-image: url("/images/background_200.png");
	padding: 1px;
	color: white;
	text-align: center;
	/* box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); */
}

.admin
{
	border: 1px outset gray;
	border-collapse: collapse;
	width: 100%;
}

.admin tr td
{
	border: 1px outset black;
	border-collapse: collapse;
	padding: 1px
}

.admin tr th
{
	border: 1px outset black;
	border-collapse: collapse;
	padding: 1px
}

.tdcenter
{
	text-align: center;
	margin: auto;
}

.footer 
{
	background-color: black;
	color: white;
	text-align: center;
	padding: 15px;
}
.footer a
{
	color: white;
}
.footer a:visited
{
	color: white;
}

/* For desktop: */
.col-1 {width: 8.33%;}
.col-2 {width: 16.66%;}
.col-3 {width: 25%; max-width: 200px;}
.col-4 {width: 33.33%;}
.col-5 {width: 41.66%;}
.col-6 {width: 50%;} 
.fullcentre { margin: 5px; padding: 5px; /* max-width: auto; */ }
.col-7 {width: 58.33%;}
.col-8 {width: 66.66%;}
.col-9 {width: 75%;} 
.col-10 {width: 83.33%;}
.col-11 {width: 91.66%;}
.col-12 {width: 100%;}

@media only screen and (min-width: 890px) 
{
	.dropdown::after { content: "on the right"; }
}

@media only screen and (max-width: 890px) 
{
	.dropdown::after { content: "at the foot of the page"; }
}
@media only screen and (max-width: 768px) 
{
	/* For mobile phones: */
	[class*="col-"] {
	  width: 100%;
	max-width: 100%; 
	}
}

.gridcontainer 
{
	display: grid;
	grid-template-columns: auto auto;
	background-color: grey;
	background-image: url("/images/background_200.png");
}

.gridcontainer > div 
{
	background-color: grey;
	background-image: url("/images/background_200.png");
}

div.container {
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	border: 0;
	margin: 0;
	padding: 0;
}
div.logo {
	width: 100%;
	height: 45px;
	display: inline-block;
	position: relative;
	color: white;
}
div.logo > div {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 25px;
}
/* Inner loop with text */
/* top x 2 + height should equal 100% */
div.logo > div:nth-child(1) {
	z-index: 2;
	left: 0px;
	top: 23%;
	height: 54%;
	text-align: center;
	border-color: white; 
	border-style: solid;
	border-width: 3px; 
	box-shadow: 0 0 0 1px black;
	/* background-color: firebrick; */
	background-color: #ff5500;
	padding: 1px 0 0 0; /* to bump the text down a small amount */
}
/* Background outer loop */
/* width + 2 x left should equal 100% */
div.logo > div:nth-child(2) {
	z-index: 1;
	top: 0px;
	left: 18%;
	width: 64%;
	border-color: white;
	border-style: solid;
	border-width: 3px;
	box-shadow: 0 0 0 1px black;
	/* background-color: firebrick; */
	background-color: #ff5500;
}

div.middlecontainer {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	margin: 0;
	padding: 0;
}
div.logomaker {
	width: 50%;
	min-height: 100px;
	display: inline-block;
	position: relative;
	color: white;
	text-align: center;
	margin: auto;
	font-size: 240%;
	padding: 20px 0;
}
div.logomaker > div {
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 60px;
}
/* Inner loop with text */
/* top x 2 + height should equal 100% */
div.logomaker > div:nth-child(1) {
	z-index: 2;
	left: 0px;
	top: 23%;
	height: 54%;
	text-align: center;
	color: white;
	border-color: white; 
	border-style: solid;
	border-width: 3px; 
	box-shadow: 0 0 0 1px black;
	/* background-color: firebrick; */
	background-color: #ff5500;
	padding: 1px 0 0 0; /* to bump the text down a small amount */
}
/* Background outer loop */
/* width + 2 x left should equal 100% */
div.logomaker > div:nth-child(2) {
	z-index: 1;
	top: 0px;
	left: 18%;
	width: 64%;
	border-color: white;
	border-style: solid;
	border-width: 3px;
	box-shadow: 0 0 0 1px black;
	/* background-color: firebrick; */
	background-color: #ff5500;
	height: 100%;
}

.logomakertoptext
{
	display: flex;
	align-items: flex-start;
	justify-content: center;
	font-size: 45%;
}

.logomakerbottomtext
{
	display: flex;
	align-items: flex-end; 
	justify-content: center;
	font-size: 45%;
}

.logomakerdivider
{
	height: 16%;
}

.item17
{
	text-align: center;
}

.item18
{
	text-align: center;
}

.bodytext
{
	  text-align: justify;
	  display: block;
}

.imageleft
{
	  margin: 0px;
	  border: 0px;
	  float: left;
	  clear: both;
	  overflow: auto;
	  padding: 5px;
}

.imageright
{
	  margin: 0px;
	  border: 0px;
	  float: right;
	  overflow: auto;
	  padding: 5px;
}

.imagecentre
{
	  margin: auto;
	  border: 0px;
	  overflow: auto;
	  padding: 5px;
}

.divc
{
	  text-align: center;
	  margin: auto;
	  border: 0px;
	  padding: 0px;
}

.divclear
{
	clear: both;
}

.article_select
{
	border-color: grey;
	border-style: solid;
	border-width: 1px;
	margin: 0px;
	padding: 5px;
}

.desc_th
{
	vertical-align: text-top;
}

.totem_outer
{
	padding: 20px;
	background: white;
}

.totem_form
{
}

.moreinfoitem
{
	  display: none;
}

.faqitem
{
	display: none;
	text-align: justify;
	margin: 5px;
	padding: 10px;
	border: 0px;
}

/* 
** Configure the size of the map 
** Height only, width can float.
*/
#map 
{
	height: 500px; 
}
