/* Basic styling */

*{
	box-sizing: border-box;
}

body{
	font-family: "Arial", sans-serif;
	font-size: 16px;
	background-color: #f1f1f1;
	max-width: 490px; /* Shouldn't be needed, since if the screen is that wide this will be overridden. It's just here so that things don't get messed up if media queries don't work.*/
	margin-left: auto; 
	margin-right: auto; /* for centering */
	padding: 0;
	color: #333333; /* global text colour; sometimes overridden. */
	line-height: 1.4em; 
}

p{
	font-size: 100%;
	text-align: left;
	line-height: 1.4em;
	margin: 0.75em 0 1.5em 0;
}

h1{
	font-size: 250%;
}
h2{
	font-size: 200%;
}
h3{
	font-size: 150%;
}
h1, h2, h3{
	line-height: 1.4em;
	color: #3B9BD5;
	margin: 0.2em;
}

header, main, aside{
	background-color: #ffffff;
}
aside h1{
	font-size: 150%;
	color: #333333;
}
aside, aside p{
	text-align: center;
}

section, article, aside, address{
	padding: 0.5em 0.5em 0.5em 0.5em;
}

.imgContainer{
	
}
.imgContainer img{
	width: 100%;
	height: 100%;
}
.imgContainer video{
	max-width: 100%;
	height: auto;
}
.imgContainer2 video{
	max-width: 360px;
	height: auto;
}

nav{
	margin: 0.5em 0em 0.5em 0em;
}

nav ul{
	display: none;
	padding: 0;
}
nav ul li{
	list-style: none;
	list-style-position: inside;
	
}
#currentPage, nav ul a{
	display: block;
	width: 100%;
	padding: 0.5em 1.5em 0.5em 1.5em;
}
#currentPage{
	color: #f1f1f1;
	background-color: #333333;
}
nav ul a, nav ul a:visited{
	color: #333333;
	background-color: #f1f1f1;
	text-decoration: none;
}
nav ul a:hover, nav ul a:active{
	color: #f1f1f1;
	background-color: #3B9BD5;
}


#menyToggle{
	display: block;
	padding: 1em 1em 1em 1em;
	border: 0.125em solid;
	border-radius: 1em;
	border-color: #3B9BD5;
	background-color: #3B9BD5;
	width: auto;
	text-align: center;
	vertical-align: center;
	font-weight: bold;
	color: #ffffff;
}
#menyToggle:hover{
	background-color: #52B8E9;
	border-color: #52B8E9;
}

.banner{
	background: url("../img/Banner.png");
	background-color: color: #3B9BD5;
	background-size: 100% 100%;
}
.banner, .banner h1, .banner h2, .banner h3{
	color: #ffffff;
}

.banner2{
	background-color: #3B9BD5;
	color: #ffffff;
	text-align: center;
}
.banner2 h1, .banner2 h2, .banner2 h3, .banner2 p{
	color: #ffffff;
	text-align: center;
}

.banner3{
	background-color: #dfeef1;
	text-align: center;
}
.banner3 h1{
	font-size: 200%;
}
.banner3 p{
	text-align: center;
}

.center{
	text-align: center;
}
.center h1, .center h2, .center h3, .center p{
	text-align: center;
}

.number{
	font-size: 400%;
	color: #3B9BD5;
	font-weight: 700;
	line-height: 1em;
	padding-top: 0.3em;
}
.column4{
	background-color: #ffffff;
	padding: 0.5em 0.5em 0.5em 0.5em;
	margin: 1em 0em 1em 0em;
}
.column4 h1, .column4 h2, .column4 h3, .column4 p{
	color: #333333;
}
.column4 h2{
	font-size: 150%;
}

footer{
	background-color: #000000;
	color: #ffffff;
	margin: 0;
}
footer h1, footer h2, footer h3, footer p, footer a, footer a:visited{
	color: #ffffff;
	text-align: center;
}
footer a:hover, footer a:active{
	color: #3B9BD5;
}

address{
	font-style: normal;
	
}
address h1{
	text-transform: uppercase;
	font-size: 100%;
	text-align: left;

}
address p{
	padding: 0;
	margin: 0;
	line-height: 1.75em;
	text-align: left;
}

.clear2{
	float: left;
	clear: both;
}

.auto-resizable-iframe {
  max-width: 100%;
  margin: 0px auto;
}

.auto-resizable-iframe > div {
  position: relative;
  padding-bottom: 75%;
  height: 0px;
}

.auto-resizable-iframe iframe {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.smallImg {
	float: left;
}

.smallImg img {
	width: 222px; 
	height: auto; 
	object-fit: contain;
	text-align: center;
}

/* Cool effect stuff */

a, #menyToggle{
	/* The prefixed versions cause validation warnings, but they are supposed to make this work in quite a few older browsers. */
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
	/* Applying transitions to 'all' causes some odd transisitons when zooming only text, but that seems acceptable compared to applying transitions seperately to color, box-shadow, height and width. */
}

/* Resize to viewport */
@media (min-width: 540px) {
	body{
		max-width: 900px; /* Again, shouldn't be needed, but is, since it must override the smaller value set for a really small screen. */
	}
	
	section, article, aside, address, main, footer, header, .column4, .column3, .column2{
		float: left;
		width: 100%;
	}
	
	.column2 {
		width: 48.5%;
		margin: 0.5%;
	}
	
	.column3, address {
		width: 32%;
		margin: 0.5%;
		padding-top: 5em;
	}
	
	.column4 {
		width: 48.5%;
		margin: 0.5%;
	}
	
	.clear{
		float: left;
		clear: both;
	}
}

@media (min-width: 900px) {
	/* main styling*/
	body{
		max-width: 1140px; /* This one's important; apart from overriding the smaller value, it prevents the page from getting wider than it is designed for. */
	}
	.column4 {
		width: 23.5%;
		margin: 0.5%;
		height: 30em;
		overflow: auto;
	}
	
	.clear{
		float: left;
		clear: none;
	}
	
	nav{
		margin: 0.5em 0em 0.5em 0em;
		width: 100%;
		background-color: #ffffff;
		float: left;
		padding: 0;
		margin: 0;
	}

	nav ul{
		display: block;
		padding: 0;
		margin: 0;
	}
	nav ul li{
		list-style: none;
		list-style-position: inside;
	}
	#currentPage, nav ul a{
		display: block;
		width: auto;
		padding: 0.5em 0.5em 0.5em 0.5em;
		float: left;
		font-weight: bold;
		font-size: 85%;
	}
	#currentPage{
		color: #f1f1f1;
		background-color: #333333;
	}
	nav ul a, nav ul a:visited{
		color: #333333;
		background-color: #ffffff;
		text-decoration: none;
	}
	nav ul a:hover, nav ul a:active{
		color: #f1f1f1;
		background-color: #3B9BD5;
	}


	#menyToggle{
		display: none;
	}
}
