/*
** $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: ivory;
}
ul
{
  list-style-type: none;
  padding: 1px 2px 1px 2px;
  margin: 0;
  border: 0;
}

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

fieldset
{
	background: ivory;
	padding: 10px 0;
	margin: 5px;
}

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

legend
{
	background-color: firebrick;
	color: white;
	padding: 5px 10px;
	border-radius: 25px;
	border-color: white; 
	border-style: solid;
	border-width: 3px; 
	box-shadow: 0 0 3px 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: ivory;
  padding: 1px;
  color: black;
  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
}

.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: ivory;
}

.gridcontainer > div 
{
  background-color: ivory;
}

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 2px 1px black;
  background-color: firebrick;
  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 3px 1px black;
  background-color: firebrick;
}

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;
  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;
  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;
    overflow: auto;
    padding: 5px;
}

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

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

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

.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;
}

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