/*
Moment Studio custom theme.
Bill Borman 2019
*/

/*	Global reset	*/
* {margin: 0; padding: 0; border: none;}

/*	Colours	*/
a,
a:link,
a:visited,
a:active,
code,
dt,
h2,
h3,
h4,
h5, 
#footer a,
#footer a:link,
#footer a:visited, 
#footer a:active {
	color: #1771bd;
}

a:hover,
#footer,
#footer a:hover {color: #1e2435;}

/* Font stuff */
h1 {
	color:#001147;
    font-size:28px;
    font-weight:bold;
    line-height:26px;
    padding: 10px 0 2px 0; /* top right bottom left */
	margin-bottom: 15px;
	text-decoration:none;
	border-bottom: 1px dashed #aaccff;
	text-transform: uppercase;
}

h2 {
    color:#000000;
    font-size:24px;
    font-weight:bold;
    padding: 12px 0 2px 0;
	margin-top: 25px;
	margin-bottom: 12px;
	padding-bottom:10px;
	text-decoration:none;
	border-bottom: 1px dashed #aaccff;
	text-transform: uppercase;
}

h3 {
    color:#1c407c;
    font-size:18px;
    font-weight:bold;
    line-height:16px;
    padding:2px 0 2px 0;
	text-decoration:none;
	margin-top:30px;
	margin-bottom:10px;
	text-align:center;
	text-transform: uppercase;
}

h1 a, h2 a, h3 a, h4 a {
   text-decoration:none;
   color:#001147;
}

h1 a:active, h1 a:hover, h2 a:active, h2 a:hover, h3 a:active, h3 a:hover, h4 a:active, h4 a:hover  {
    text-decoration:none;
    color:#1f74c5;	
}

/* Spacing for paragraphs */
p  {
	margin-bottom: 1.0em;
}

body, input, textarea {
	color:#222;    
	font-size:16px;
	font-family:Arial,sans-serif;
    line-height:22px;
}

pre {
	overflow:auto;
	width:auto;
	border:solid gray;
	border-width:.1em .1em .1em .4em;
	padding:.2em .6em;
}

hr {
  border-top: 1px dashed #cccccc;
  width: 100%;
}

/* IDs */

#maincontainer {
	margin:0 auto;
	width:85%;
	max-width:800px;
	clear:both;	
}
#header {
	width:100%;
	background:url('images/layout/header1.jpg') no-repeat right bottom;
	border-bottom: 1px solid #dddddd;
}

@media only screen and (max-width: 850px) {
    #header {
        background: none;
    }
}

#footer {
	margin-top:25px;
	clear:both;
	width:100%;
	height:95px;
	border-top: 1px solid #CCCCCC;
	text-align: center;
	background:url('images/layout/header2.jpg') no-repeat left bottom;
	line-height: 50px;
	color:#666666;
	font-size:14px;
}

#blurb {
	margin: auto;
	text-align: center;
	width:100%;
	max-width:500px;
	color:#333333;
    font-size:16px;
    font-style:italic;
	padding: 2em 0.5em 0em 0.5em;
}

#main {
  margin:auto;
  text-align:center;
  width:100%;
  max-width:800px;
  color:#333333;
  font-size:16px;
  padding:0.5em 0.5em 2em 0.5em;

  display:flex;
  justify-content:center;  /* centers the row */
  gap:16px;
  flex-wrap:wrap;          /* allows wrapping on small screens */
}

.box {
  border-radius:10px;
  border-style:dotted;
  border-width:1px;
  border-color:#BBBBBB;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  padding:10px;
  /* don’t let them stretch */
  flex:0 0 auto;
}

/* Label under the image */
.box-label {
  margin: 0.5em 0 0 0;
  line-height: 1.4;
}

/* Make images centered and stop old float from interfering */
.info-image {
  border-radius:10px;
  border-style:solid;
  border-width:1px;
  border-color:#888888;
  display:block;
  float:none;          /* override previous float */
  margin:0.5em auto;   /* center it */
  max-width:100%;
  height:auto;
}

.banner-image {
	display: block;
	width: 100%; /* Scale smaller if there isn't enough space for max-width */
	max-width: 600px;
	height: auto;
	margin: 0 auto; /* Centers it */
	
	border-radius:10px;
	border-style:solid;
	border-width:1px;
	border-color:#888888;
	vertical-align:center;
}

.headerimage {
	margin-top:35px;
}

.inner-margin{
	margin: 10px; /* Margins for inner DIV inside each column, to provide padding */
	margin-top:0;
}