﻿/*====================================================
*
* Global styles
*
====================================================*/


/**
* Web fonts
*/
@import url('https://fonts.googleapis.com/css?family=Passion+One:400,700,900&display=swap');
/* font-family: 'Passion One', cursive; */
.fancy-font {
	font-family: 'Passion One', cursive;
	font-weight: normal;
	letter-spacing: 0.03em;	
}

@import url('https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,500,500i,700,700i,900,900i');
/* font-family: 'Roboto', sans-serif; */

/* 
END: Web fonts 
*/


html, body {
  height: 100%;
}

body {
	min-height: 100%;
}

body {
	background: #c6eaea;
	color: #333;
	font-family: 'Roboto', helvetica, arial, univers, sans-serif;
	font-size: 15px;
	margin: 0;
	/*overflow-x: hidden;*/
	padding: 0;
}

@media(min-width: 1010px) {
	body {
		overflow-x: hidden;
	}
}

.container {
	position: relative;
}

.container,
#page,
#header,
#main,
#footer {
	min-width: 1000px !important;	
}

a {
	color: #286785;
	outline: none !important;
}

a:hover {
	color: #387795;
}




/**
* Detect if touchscreen (iphone/tablet)
* If so, display message
*/

@media (hover: none) and (pointer: coarse) and (max-width: 768px) {
}

@media (max-width: 990px) {
	#device-message {
		display: block !important;
	}
	
	#device-message:before {
		background: #000;
		content: " ";
		display: block;
		width: 100%;
		height: 100%;
		opacity: 0.7;
		
		position: fixed;
		left: 0;
		top: 0;
		z-index: 9999;
	}
	
	#device-message .well {
		border: 5px solid #399;
		-moz-border-radius: 12px;
		-webkit-border-radius: 12px;
		border-radius: 12px;
		font-size: 1.15em;
		line-height: 1.25em;
		padding: 30px;
		width: 80%;
		
		position: fixed;
		left: 10%;
		top: 20%;
		z-index: 99999;
	}
	
	#device-message .well .title {
		border-bottom: 1px solid #ddd;
		font-weight: 700;
		margin: 0 0 25px 0;
		padding: 0 0 10px 0;
		text-transform: uppercase;
	}
	
	#device-message .well .title .icon {
		color: #c33;
		font-size: 1.25em;
	}
	
	#device-message .well .sub-title {
		color: #222;
		margin-bottom: 15px;
	}
	
	#device-message .well .flip-device {
		margin: 25px 0 0 0;
		max-width: 180px;
	}
}




/**
* Header
*/
#header {
	background: #399;
	border-bottom: 3px solid #fff;
	height: 90px;
	margin: 0 0 90px 0;
	position: relative;
	text-align: center;
}

@media(max-height: 740px) {
	#header {
		height: 70px;
		margin: 0 0 90px 0;
	}
}

#header .page-title {
	background: transparent url(/Content/images/page-titles/welcome.png) no-repeat center center;
	background-size: 500px auto;
	display: inline-block;
	text-indent: -9999px;
	
	width: 500px;
	height: 140px;
	
	position: absolute;
	z-index: 999;
	left: calc(50% - 250px);
	bottom: -175px;
}

@media(max-height: 740px) {
	#header .page-title {
		bottom: -155px;
	}
}

.login-page #header .page-title {
	background-image: url(/Content/images/page-titles/login.png);
}

.home-page #header .page-title {
	background-image: url(/Content/images/page-titles/library.png);
}

.about-page #header .page-title {
	background-image: url(/Content/images/page-titles/about-us.png);
}

.settings-page #header .page-title {
	background-image: url(/Content/images/page-titles/settings.png);
}

.options-page #header .page-title {
	background-image: url(/Content/images/page-titles/story-settings.png);
}



/* Navigation */
#info-button {
	position: absolute;
	top: 50px;
	right: calc(50% - 550px);
	z-index: 999;
	
	top: -125px;
	
	text-align: right;
}

#info-button img {
	width: 70px;
	height: auto;
}

@media(max-width: 1200px) {
	#info-button {
		right: 40px;
	}
}




/**
* Main
*/
#main {
	min-height: 420px;
}

@media(max-height: 740px) {
}




/**
* Footer
*/
#footer {
	background: #399;
	border-top: 3px solid #fff;
	color: #fff;
	height: 80px;
	position: absolute;
	
	bottom: 0;
	left: 0;
	
	width: 100%;
	text-align: center;
}

@media(max-height: 700px) {
	#footer {
		position: relative;
	}
}

#footer:before {
	background: #399;
	content: " ";
	display: block;
	width: 100%;
	height: 30px;
	
	position: fixed;
	bottom: -10px;
	left: 0;
}

/*
@media(max-width: 1024px) {
	#footer {
		width: auto;
	}
}
*/

#footer .copyright {
	margin-top: 20px;
}

#footer .logo img {
	max-width: 360px;
	
	position: absolute;
	bottom: -45px;
	left: calc(50% - 180px);
}

#footer .foxes img {
	max-width: 200px;
	/*margin-top: -50px;*/
	
	position: absolute;
	bottom: -80px;
	right: 0;
}

@media(max-width: 1100px) {
	#footer .logo img {
		max-width: 320px;
		bottom: -40px;
		left: calc(50% - 160px);
	}

	/*
	#footer .foxes img {
		max-width: 200px;
		right: 30px;
	}
	*/
}




/**
* Typography
*/
h1,h2,h3,h4,h5,h6 {
	/*color: #036;*/
	color: #147;
	line-height: 1.25em;
}

h1 {
	font-size: 40px;
}

h2 {
	font-size: 34px;
}

h3 {
	font-size: 28px;
}

h4 {
	font-size: 22px;
}

h5 {
	font-size: 18px;
}

h6 {
	font-size: 16px;
}

.fancy-header {
	font-family: 'Passion One', cursive;
	letter-spacing: 0.02em;
}

h1.fancy-header {
	font-size: 42px;
}

h2.fancy-header {
	font-size: 36px;
}

h3.fancy-header {
	font-size: 30px;
}

h4.fancy-header {
	font-size: 24px;
}

h5.fancy-header {
	font-size: 20px;
}

h6.fancy-header {
	font-size: 18px;
}


/**
* Buttons
*/
.btn-default {
	color: #333;
	background-color: #e9e9e9;
	border-color: #d0d0d0;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	font-size: 1.1em;
	font-weight: 600;
	padding: 8px 24px;
}

.btn-default:hover {
	color: #333;
	background-color: #d9d9d9;
	border-color: #c0c0c0;
}

.btn-primary {
	color: #fff;
	background-color: #147;
	border-color: #1070a0;
	-moz-border-radius: 6px;
	-webkit-border-radius: 6px;
	border-radius: 6px;
	font-size: 1.1em;
	font-weight: 600;
	padding: 8px 24px;
}

.btn-primary:hover {
	color: #fff;
	background-color: #258;
	border-color: #006090;
}


/**
* Forms
*/
.form-group {
	position: relative;
}

.checkboxes-group .form-group {
	margin: 0 0 8px 0;
}

.form-actions {
	border-top: 1px solid #a6caca;
	margin: 20px 0;
	padding: 20px 0;
}


/* Fancy Checkboxes */
.fancy-checkbox {
    position: relative;
}

.fancy-checkbox [type="checkbox"] {
	display: none;
}

.fancy-checkbox [type="checkbox"] + label {
	margin-left: 25px;
}

.fancy-checkbox [type="checkbox"] + label::before, 
.fancy-checkbox [type="checkbox"]:not(.filled-in) + label::after {
	position: absolute;
    top: -4px;
    left: 0;
    width: 26px;
    height: 24px;
	z-index: 0;
	
	cursor: pointer;
    content: '';
    border: 2px solid #286785;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
    border-radius: 3px;
    margin-top: 2px;
}

.fancy-checkbox [type="checkbox"]:checked + label::after {
	position: absolute;
    top: -4px;
    left: 0;
    width: 26px;
    height: 24px;
	z-index: 0;
	
	cursor: pointer;
    content: '';
    border: 2px solid #286785;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
    border-radius: 3px;
    margin-top: 2px;
	background: #286785;
}

.fancy-checkbox [type="checkbox"]:checked + label::before {
	position: absolute;
    top: -3px;
    left: 0;
    width: 10px;
    height: 18px;
	z-index: 3;
	
    border-top: 0 solid transparent;
    border-left: 0 solid transparent;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
    border-radius: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
	-webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}


/* Fancy Radio Buttons */
.fancy-radio {
    position: relative;
}

.fancy-radio [type="radio"] {
	display: none;
}

.fancy-radio [type="radio"] + label {
	margin-left: 34px;
}

.fancy-radio [type="radio"] + label::before, 
.fancy-radio [type="radio"]:not(.filled-in) + label::after {
	position: absolute;
    top: -4px;
    left: 0;
    width: 26px;
    height: 24px;
	z-index: 0;
	
	cursor: pointer;
    content: '';
    border: 2px solid #286785;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
    border-radius: 3px;
    margin-top: 2px;
}

.fancy-radio [type="radio"]:checked + label::after {
	position: absolute;
    top: -4px;
    left: 0;
    width: 26px;
    height: 24px;
	z-index: 0;
	
	cursor: pointer;
    content: '';
    border: 2px solid #286785;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
    border-radius: 3px;
    margin-top: 2px;
	background: #286785;
}

.fancy-radio [type="radio"]:checked + label::before {
	position: absolute;
    top: -1px;
    left: 2px;
    width: 9px;
    height: 16px;
	z-index: 3;
	
    border-top: 0 solid transparent;
    border-left: 0 solid transparent;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
    border-radius: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
	-webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
}




