/* SITE THEME COLOUR */
body {
	background-color: #fff;
	color: #000;
	font-size: 1.2rem;
}

.aaTheme, .aaTheme:hover, .itemAction, .itemAction:hover {
	/* !important required to override itemAction hover */
	background: #5514B4 !important;
	color: #fff !important;
}
.itemActionDisabled {
	cursor: default;
	opacity: 0.3;
}

.aaThemeText { color: #5514B4; }
.aaThemeBorder { border: 1px solid #5514B4; }

.aaH1 { font-size: 2.5rem; padding-bottom: 16px; padding-top: 12px; line-height: 1.2;}
.aaH2 { font-size: 1.7rem; padding-bottom: 12px; }
.aaP { font-size: 1.2rem; padding-bottom: 12px; }

h1 { font-size: 2.5rem; padding-bottom: 16px; padding-top: 12px; line-height: 1.2; }
h2 { font-size: 1.7rem; padding-bottom: 12px; }
h3 { font-size: 1.5rem; padding-bottom: 12px; }
.xlarge { font-size: 2.5rem; }
.large { font-size: 1.7rem; }
.small { font-size: 1rem; }

div.aaContainer {
	width: 100%; max-width: 1200px; margin: 0px auto; padding: 16px;
}

div.aaBreadcrumb {
	border-bottom: 1px solid #bbb; margin-bottom: 12px;
}
div.aaBreadcrumb div.aaBreadcrumbSeparator {
	display: inline-block;
	padding-left: 10px;
	padding-right: 10px;
}

div.aaHero {
	width: 100%; max-width: 1920px;
	height: 400px;
	margin: 16px auto 0px auto;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}
@media screen and (max-width: 992px) and (min-width: 601px) {
	div.aaHero {
		height: 300px;
	}
}
@media (max-width:600px) {
	div.aaHero {
		height: 200px;
	}
}

a.hoverUnderline { text-decoration: none; }
a.hoverUnderline:hover { text-decoration: underline; }

a.aaHoverUnderline { text-decoration: none; }
a.aaHoverUnderline:hover { text-decoration: underline; }

/* FULL-SCREEN SECTIONS */
.aaFullscreen { height: calc(100vh - 70px); width: 100%; overflow: hidden; }
.aaFullscreen ~ .containerCentre { display: table; } /* ~ = only apply if both "fullscreen" and "containerCentre" classes apply to element */
.aaFullscreen .centre { display: table-cell; text-align: center; vertical-align: middle; }

/* ACTION BUTTONS */
.itemAction {
	border-radius: 5px;
	font-family: BTFont_Rg,Calibri,Verdana,sans-serif;
	/*font-family: 'Century Gothic',Arial,sans-serif;*/
	/*font-family: 'GT Walsheim Regular','Century Gothic',Arial,sans-serif;*/
	font-size: 16px;
}
.itemAction:hover { }

/* FOOTER */
.aaFooter {
	max-width: 1920px; margin: 0px auto;
}
.aaFooter p.title {
	border-bottom: solid 1px #ddd
}
.aaFooter a.title {
	text-decoration: none
}

/* TOOLTIP - based on https://www.w3schools.com/css/css_tooltip.asp */

.tooltip {
    position: relative;
    display: inline-block;
	bottom: 100%;
}
.tooltip .tooltiptext {
    visibility: hidden;
    background-color: #fff;
    color: #333;
    text-align: center;
    padding: 2px 0;
	border: 1px solid #666;
    border-radius: 4px;
 
    position: absolute;
	z-index: 1;
	
    width: 140px;
    bottom: 130%;
    left: 50%; 
    margin-left: -110px;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
}
.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    top: 100%;
    right: 22px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #666 transparent transparent transparent;
}

/* Background is two images side by side, show left greyscale image normally and right colour image when hovering */
.colourHover { display: inline-block; background-size: auto 100%; width: 28px; height: 28px; margin: 0px 8px; }
.colourHover:hover { background-position: right; }

/* Anchors need to be moved up, so that they're not hidden behind the fixed navigation bar */
.anchor {
	position: relative;
	top: -80px;
	width: 0px; height: 0px; overflow: hidden;
}

/* 16:9 image container */

div.aa16x9 {
	position: relative; padding-bottom: 56.25%; height: 0;
	background-color: #f2f2f2;
}
div.aa16x9 div,iframe {
	position: absolute;
	top: 0px; left: 0px; width: 100%; height: 100%;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

/* Tab bar */

div.aaTabBar {
	border-width: 0px 0px 2px 0px;
}
div.aaTabBar .tab {
	display: inline-block; margin: 0px; padding: 6px 18px;
}
div.aaTabBar .unselected {
	background-color: #eee !important;
}

/* News item */

div.aaNewsItem {
}

div.aaNewsItem div.newsText {
	background: #f2f2f2;
	height: 232px; overflow: hidden;
	padding-top: 8px;
}

div.aaNewsItem div.newsTitle {
	padding-bottom: 8px;
	line-height: 1.2;
}

div.aaNewsItem div.newsButton {
	background: #f2f2f2;
	padding: 8px 16px 16px 16px !important;
}

div.aaNewsItem div.learningText {
	height: 222px; overflow: hidden;
}

/* Instance banner */

div.aaInstanceBannerTop {
	top: 0px;
	border-top: 0px;
	border-bottom-left-radius: 14px;
	border-bottom-right-radius: 14px;
	box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);
}
div.aaInstanceBannerBottom {
	bottom: 0px;
	border-bottom: 0px;
	border-top-left-radius: 14px;
	border-top-right-radius: 14px;
}

div.aaInstanceBanner {
	pointer-events:none;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	/*background: #fc0;*/
	background: repeating-linear-gradient(
		-45deg,
		#fc6,
		#fc6 15px,
		#333 15px,
		#333 30px
	);
	text-shadow:
		-1px -1px 1px #000,
		1px -1px 1px #000,
		-1px 1px 1px #000,
		1px 1px 1px #000;
	color: #fff;
	padding: 2px 32px;
	border: 1px solid #666;
	box-shadow: 0px 0px 8px 2px rgba(0,0,0,0.5);
	font-family: arial;
	font-weight: bold;
	font-size: 16px;
	text-align: center;
	animation: aaInstanceBanner 2s ease infinite;
	z-index: 2;
}

@keyframes aaInstanceBanner {
	  0% {opacity: 0.0}
	 50% {opacity: 0.6}
	100% {opacity: 0.0}
}

span.required {
	color: #f00;
	font-size: smaller;	
}

img.aaInfo {
	width: 26px;
	height: 20px;
	vertical-align: text-top;
}

div.aaModal {
	overflow-y: auto;
	overflow-x: hidden;
	background-color:rgb(28, 23, 36);
	background-color:rgba(28, 23, 36, 0.8);
}

div.aaModalContent {
	overflow: hidden;
	border-width: 4px;
	margin-bottom: 10px;
}

div#modalDescription {
	/*max-height: 350px;*/
	max-height: calc(100vh - 260px);
	
	overflow-y: auto;
}

div.aaModalFooter {
	background: #f2f2f2;
}

span.highlight {
	background: #FF0;
	color: #F00;
	font-weight: bold;
}

div.aaWelcome {
	padding: 32px;
}
div.aaWelcomeDesktop {
	padding-right: 24px;
}
div.aaWelcomeDesktop img {
	width: 100%; border-radius: 50%;
}
div.aaWelcomeMobile {
	padding-right: 16px; padding-bottom: 16px; float: left;
}
div.aaWelcomeMobile img {
	width: 150px; border-radius: 50%;
}

/* Portrait video modal */
.aa-vmodal-content{
	margin:auto;background-color:#fff;position:relative;padding:0;outline:0;
}
.aa-vmodel-content-portrait {
	/*width: calc((100vh - 200px) * 0.5625);*/
	width: calc(56.25vh - 100px);
}
.aa-vmodel-content-landscape {
	/* Whatever the smallest of the browser width -60px, or browser height *(16/9) - 320px */
	width: calc(min(100vw - 60px, 178vh - 320px));
}
.aa-vmodal-close{
	cursor: pointer; padding-left: 10px; padding-right: 10px;
}
.aa-vmodal-title{
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Photo of a person introducing a page */
div.aaWelcomePhoto {
	padding-right: 10%;
}
@media (max-width:600px) {
	div.aaWelcomePhoto {
		float: left;
	}
}

