
html, body{
	height: 100%;
	padding: 0;
	margin: 0;
}

body{
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #333;
}

label{
	font-weight: normal;
}

input[type=text],
input[type=email],
input[type=tel],
textarea{
	padding: 5px;
	border: 1px solid #AAA;
	border-radius: 4px;
}

button:disabled{
	opacity: 0.5;
}

#headerBar{
	float: left;
	width: 100%;
	height: 50px;
	background-color: #333;
}

#headerBar .btnLogout{
	float: right;
	margin: 10px 10px 0 0;
}

#headerBar .swMotif{
	height: 80px;
	margin-top: 5px;
	margin-left: 40px;
	position: absolute;
}

#headerBar .channelName{
	float: left;
	position: absolute;
	color: #DDD;
	margin-left: 180px;
	margin-top: 16px;
	font-size: 1.4em;
}

#layoutFrame{
	float: left;
	width: 100%;
}

#sidemenu{
	float: left;
	width: 170px;
	padding-top: 45px;
	padding-right: 10px;
}

#sidemenu a{
	display: block;
	width: 97%;
	float: left;
	clear: left;
	color: #171531;
	padding: 10px 15px;
	margin-bottom: 8px;
	background-color: #13f3f3;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
			box-sizing: border-box;
	border-top-right-radius: 4px;
	border-bottom-right-radius: 4px;
	border: 1px solid #0eafaf;
	border-left: none;
}

#sidemenu a:hover,
#sidemenu a.current{
	background-color: rgb(16, 206, 206);
	text-decoration: none;
}

#sidemenu a.current{
	cursor: default;
	width: 99%;
}

#sidemenu .spacer{
	float: left;
	width: 100%;
	height: 20px;
}

#sidemenu a.walkpage{
	background-color: #BC146D;
	border-color: #7f0e48;
	color: white;
}

#sidemenu a.walkpage:hover{
	background-color: #A21861;
}

.pageBody{
	padding-left: 170px;
}

.pageBody .bodyContent{
	padding: 1em;
	width: 100%;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
			box-sizing: border-box;
}

h1{
	margin-bottom: 0.5em;
}

.fullWidth{
	width: 100%;
}

input[type=text]:invalid:focus{
	border-color: red;
}

select, 
input[type="file"] {
    height: 28px;
    line-height: 28px;
}

.primaryButtonGroup{
	float: left;
	width: 100%;
}

.primaryButtonGroup a{
	clear: left;
	float: left;
	width: 270px;
	margin-bottom: 10px;
}

.secondaryButtonGroup a{
	clear: left;
	float: left;
	margin-bottom: 10px;
}


/* --------------------- Buttons ---------------------- */
/* ---------------------------------------------------- */

.btn-xlarge,	
.btn-xlarge:hover{	
	background: #DDD;
	border: 1px solid #999;
	font-weight: bold;
	font-size: 2em;
	padding: 14px;
}	

.btn-backstripe,
.btn-flatstripe,
.btn-polkadot,
.btn-concentric{
	text-shadow: 0 0 5px rgba(0,0,0,0.4);
	color: #EEE;
}	

.btn-backstripe:hover,
.btn-flatstripe:hover,
.btn-polkadot:hover,
.btn-concentric:hover{
	color: white;
}	

/* Backstripe */

.btn-backstripe,
.btn-backstripe:hover{
	background-color: #C300CC;
	background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,.2) 5px, rgba(255,255,255,.2) 10px),
	 	 	 	 	  linear-gradient(to bottom,#C300CC,#870096);
	background-position: 0 0, 0 0;
}

.btn-backstripe:hover{
	background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(255,255,255,.2) 5px, rgba(255,255,255,.2) 10px),
	 	 	 	 	  linear-gradient(to bottom,#C300CC,#870096);
	background-position: 6px 0, 6px 0;
}

/* Flatstripe */

.btn-flatstripe,
.btn-flatstripe:hover{
	background-color: #fc0913;
	background-image: repeating-linear-gradient(transparent, transparent 5px, rgba(255,255,255,.2) 5px, rgba(255,255,255,.2) 10px),
	 linear-gradient(to bottom,#fc0913,#960022);
}

.btn-flatstripe:hover{
	background-image: repeating-linear-gradient(transparent, transparent 6px, rgba(255,255,255,.2) 6px, rgba(255,255,255,.2) 12px),
	 linear-gradient(to bottom,#fc0913,#960022);
}

/* Polkadot */

.btn-polkadot,
.btn-polkadot:hover{
	background-image: 	radial-gradient(rgba(255,255,255,0.3) 19%, transparent 20%),
						radial-gradient(rgba(255,255,255,0.3) 19%, transparent 20%),
						linear-gradient(to bottom,#85f809,#5DB300);
	background-size: 30px 30px, 30px 30px, 100% 100%;
	background-position: 0 0, 15px 15px, 0 0;
	background-repeat: repeat;
	transition: background-image .2s;
	-webkit-transition: background-image 1s;
}

.btn-polkadot:hover{
	background-image: 	radial-gradient(rgba(255,255,255,0.3) 26%, transparent 27%),
						radial-gradient(rgba(255,255,255,0.3) 26%, transparent 27%),
						linear-gradient(to bottom,#85f809,#5DB300);
}

/* Concentric */

.btn-concentric,
.btn-concentric:hover{
	background: #029AAB;
	background-image: repeating-radial-gradient(circle, rgba(255,255,255,0.2), rgba(255,255,255,0.2) 5px, transparent 5px, transparent 10px),
	 linear-gradient(to bottom,#13f3f3,#029AAB);
}

.btn-concentric:hover{
	background: #029AAB;
	background-image: repeating-radial-gradient(circle, rgba(255,255,255,0.2), rgba(255,255,255,0.2) 6px, transparent 6px, transparent 12px),
	 linear-gradient(to bottom,#13f3f3,#029AAB);
}

/* ---------- Touch-friendly radio toggle group ---------- */
/* ------------------------------------------------------- */

.radioToggleGroup,
.radioToggleGroup legend,
.radioToggleGroup .radioWrap{
	border: none;
	width: auto;
	display: block;
	float: left;
	padding: 0;
}

.radioToggleGroup{
	margin-bottom: 10px;
}

.radioToggleGroup legend,
.radioToggleGroup .radioWrap label{
	line-height: 2.8;
	height: 34px;
}

.radioToggleGroup legend{
	margin: 0 5px;
	font-size: 1.1em;
}

.radioToggleGroup .radioWrap{
	border-radius: 4px;
}

.radioToggleGroup .radioWrap label{
	display: block;
	float: left;
	background: #DDD;
	background: transparent;
	margin: 0;
	padding-left: 12px;
	padding-right: 12px;
	cursor: pointer;
	color: #666;
	text-shadow: 0 1px 0 rgba(255,255,255,0.5);
	box-shadow: inset 1px 1px 1px rgba(255,255,255,0.5),
				inset -1px -1px 1px rgba(0,0,0,0.5);
}

.radioToggleGroup .radioWrap label:hover{
	background: #EEE;
	background: rgba(255,255,255,0.5);
}

.radioToggleGroup .radioWrap label:first-of-type{
	border-top-left-radius: 2px;
	border-bottom-left-radius: 2px;
}

.radioToggleGroup .radioWrap label:last-child{
	border-top-right-radius: 2px;
	border-bottom-right-radius: 2px;
}

.radioToggleGroup .radioWrap input[type=radio]{
	display: none;
}

.radioToggleGroup .radioWrap input:checked + label{
	height: 34px;
	background-color: #CCC;
	line-height: 2.7;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
	cursor: default;
	color: black;
	border-bottom: 3px solid #00AE31;
}


/* ----------- Tables -------------- */

table caption{
	text-align: left;
}

th.numeric,
td.numeric{ 
	text-align: right;
}

th, td{
	vertical-align: top;
	padding: 5px;
}

tbody th[scope=row]{
	text-align: right;
	padding-right: 10px;
}

th[scope=row] label{
	font-weight: bold;
}

thead th{
	text-align: left;
	font-size: 1.1em;
	border-bottom: 1px solid #AAA;
	padding-right: 50px;
	font-weight: bold;
	color: #666;
}

.oddrow td, table.shadeAlternate tbody tr:nth-child(odd){
	background-color: #EEE;
}

th a{
	font-weight: bold;
	text-decoration: none;
	color: #666666;
}

.addlink{
	color: #009900;
}

.addlink:hover{
	color: #00FF00;
}

.editlink{
	color: #CC6600;
}

.editlink:hover{
	color: #FF6600;
}



.deleteLink{
	padding: 3em 0 1em 0;
	text-align: right;
	font-size: 0.9em;
}

.deleteLink a{
	color: #4466BB;
}

/* --------- Breadcrumb --------- */

.breadcrumb{
	border: 1px solid #ddd;
	background: transparent;
}

.breadcrumb > *{
	display: inline-block;
}

.breadcrumb{
	padding: 0;
}

.breadcrumb > *{
	padding: 5px 8px;
	border-right: 1px solid #CCC;
}

.bc-separator{
	color: #BBB;
}

.breadcrumb > a:hover{
	background-color: #DDD;
	text-decoration: none;
}

.bc-current{
	font-weight: bold;
}

/* -------- Home page ---------- */

.tblStories{
	width: 100%;
	margin-bottom: 1em;
}

.tblStories .name{
	font-size: 1.1em;
	font-weight: bold;
}

table.tblStories tbody tr:target{
	border: 1px solid green;
	background-color: #cdffc1;
} 

table.tblStories tbody tr:hover{
	background-color: #DDD;
	cursor: pointer;
}

.notvisible, 
.notvisible a{
	color: #BBB;
}

.notvisible i{
	opacity: 0.5;
}

/* --------------- Edit Points Map --------------- */

.directionsToFirst{
	float: left;
	width: 100%;
	padding: 20px;
	margin-bottom: 40px;
}

#mapwrap, 
#map_canvas{
	float: left;
}

#mapwrap{
	width: 100%;
}

#mapPointsScrollWrap{
	width: 100%;
	float: left;
	height: 300px; /* This will get overridden by JS */
	padding-top: 20px;
	overflow: auto;
}

.mapPointsScrollShadowBar{
	width: 98%;
	float: left;
	height: 3px;
	margin-top: -302px; /* This will get overridden by JS */
	background-color: white;
	box-shadow: 0 3px 4px 2px rgba(0,0,0,0.3);
}

#mapwrap fieldset{
	float: right;
}

#map_canvas{
	width: 100%;
	height: 280px;
	margin-bottom: 10px;
}

#savebutton{
	width: 140px;
	text-align: left;
}

.icon-spin{
    animation: spin 1s infinite linear;
    -moz-animation: spin 1s infinite linear;
    -webkit-animation: spin 1s infinite linear;
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg);}
    to { transform: scale(1) rotate(360deg);}
}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg);}
    to { -moz-transform: rotate(360deg);}
}

@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg);}
    to { -webkit-transform: rotate(360deg);}
}

#pointFormsWrap{
	float: left;
	clear: left;
	width: 100%;
}

#pointFormsWrap .pointForm{
	width: 100%;
	float: left;
	clear: left;
	padding-left: 40px;
	padding-top: 10px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	background: url(/storyadmin/images/Map-Marker-Green.png) no-repeat;
	background-position: 10px 10px;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
			box-sizing: border-box;
}

#pointFormsWrap .pointForm:nth-child(odd){
	background-color: #EEE;
}

#pointFormsWrap .pointForm:first-child{ background-image: url(/storyadmin/images/marker1.png); }
#pointFormsWrap .pointForm:nth-child(2){ background-image: url(/storyadmin/images/marker2.png); }
#pointFormsWrap .pointForm:nth-child(3){ background-image: url(/storyadmin/images/marker3.png); }
#pointFormsWrap .pointForm:nth-child(4){ background-image: url(/storyadmin/images/marker4.png); }
#pointFormsWrap .pointForm:nth-child(5){ background-image: url(/storyadmin/images/marker5.png); }
#pointFormsWrap .pointForm:nth-child(6){ background-image: url(/storyadmin/images/marker6.png); }
#pointFormsWrap .pointForm:nth-child(7){ background-image: url(/storyadmin/images/marker7.png); }
#pointFormsWrap .pointForm:nth-child(8){ background-image: url(/storyadmin/images/marker8.png); }
#pointFormsWrap .pointForm:nth-child(9){ background-image: url(/storyadmin/images/marker9.png); }
#pointFormsWrap .pointForm:nth-child(10){ background-image: url(/storyadmin/images/marker10.png); }
#pointFormsWrap .pointForm:nth-child(11){ background-image: url(/storyadmin/images/marker11.png); }
#pointFormsWrap .pointForm:nth-child(12){ background-image: url(/storyadmin/images/marker12.png); }
#pointFormsWrap .pointForm:nth-child(13){ background-image: url(/storyadmin/images/marker13.png); }
#pointFormsWrap .pointForm:nth-child(14){ background-image: url(/storyadmin/images/marker14.png); }
#pointFormsWrap .pointForm:nth-child(15){ background-image: url(/storyadmin/images/marker15.png); }
#pointFormsWrap .pointForm:nth-child(16){ background-image: url(/storyadmin/images/marker16.png); }
#pointFormsWrap .pointForm:nth-child(17){ background-image: url(/storyadmin/images/marker17.png); }
#pointFormsWrap .pointForm:nth-child(18){ background-image: url(/storyadmin/images/marker18.png); }
#pointFormsWrap .pointForm:nth-child(19){ background-image: url(/storyadmin/images/marker19.png); }
#pointFormsWrap .pointForm:nth-child(20){ background-image: url(/storyadmin/images/marker20.png); }
#pointFormsWrap .pointForm:nth-child(21){ background-image: url(/storyadmin/images/marker21.png); }
#pointFormsWrap .pointForm:nth-child(22){ background-image: url(/storyadmin/images/marker22.png); }
#pointFormsWrap .pointForm:nth-child(23){ background-image: url(/storyadmin/images/marker23.png); }
#pointFormsWrap .pointForm:nth-child(24){ background-image: url(/storyadmin/images/marker24.png); }
#pointFormsWrap .pointForm:nth-child(25){ background-image: url(/storyadmin/images/marker25.png); }
#pointFormsWrap .pointForm:nth-child(26){ background-image: url(/storyadmin/images/marker26.png); }
#pointFormsWrap .pointForm:nth-child(27){ background-image: url(/storyadmin/images/marker27.png); }
#pointFormsWrap .pointForm:nth-child(28){ background-image: url(/storyadmin/images/marker28.png); }
#pointFormsWrap .pointForm:nth-child(29){ background-image: url(/storyadmin/images/marker29.png); }
#pointFormsWrap .pointForm:nth-child(30){ background-image: url(/storyadmin/images/marker30.png); }

.pointForm > *,
.directionsLabel,
.pointForm .gpsRow label{
	float: left;
}
	
/* By default the rows are hidden */
.pointFormRow{
	display: none;
}

#mapPointsScrollWrap.order .orderRow,
#mapPointsScrollWrap.directions .directionsRow,
#mapPointsScrollWrap.technical .gpsRow,
#mapPointsScrollWrap.unlocking .unlockingRow{
	display: block;
	width: 100%;
	float: left;
}

.pointForm label,
.directionsLabel{
	margin-right: 10px;
	margin-top: 2px;
	width: 120px;
}

.pointForm .pointName{
	width: 320px;
	margin-right: 10px;
	margin-bottom: 5px;
}

.pointForm .gpsRow{
	clear: left;
	float: left;
	width: 100%;
}

.pointForm .gpsRow input{
	float: left;
	width: 120px;
	margin-right: 6px;
}

.pointForm .unlockingRow input[type=checkbox]{
	margin-right: 5px;
}

.pointForm .unlockingRow label{
	width: auto;
	cursor: pointer;
}

.directionsLabel{
	clear: left;
}

.directionsTo{
	width: 100%;
	max-width: 540px;
	height: 110px;
	float: left;
}

.pointForm .distanceToNext{
	height: 22px;
	line-height: 22px;
	width: auto;
	float: left;
}



/* ------------------------------------------------ */

.chapterText{
	width: 98%;
	margin-left: 1%;
}

.longTextInput,
.mediumTextInput{
	width: 100%;
	min-width: 500px;
	max-width: 1000px;
}

.mediumTextInput{
	height: 150px;
}

.longTextInput{
	height: 300px;
}

input.inlineInput{
	border: none;
	background-color: transparent;
	vertical-align: inherit;
	cursor: inherit;
	font-size: inherit;
	width: 300px;
	display: inline;
	box-shadow: none;
	padding: 0;
	margin: 0;
	line-height: inherit;
	-webkit-appearance: none;
}

td.incpriority{
	width: 80px;
}

tr.newPointRow td{
	border-top: 1px solid #AAA;
}

/* --------- Story -------- */

.directionsToFirst{
	border: 1px solid #AAA;
}

.tblStory,
.directionsToFirst{
	width: 100%;
	max-width: 820px;
}

.tblStory .chapterSpecific{
    background-color: #FFF;
}

.tblStory .pointName{
	padding: 20px;
}

.tblStory .pointName h2{
	margin-top: 0;
}

.tblStory .pointName p{
	color: #888;
}

.tblStory .story{
    max-width: 420px;
    padding-bottom: 16px;
}

.tblStory .story h4{
	margin-top: 0;
}

.tblStory .adminfield{
    width: 80px;
}

.tblStory input{
	float: left;
}

td.image{
	width: 90px;
	padding-bottom: 16px;
}

.directionsToBox > span{
	font-style: italic;
}

.directionsToBox .dirLabel{
	padding: 6px 10px;
	font-weight: bold;
	margin-right: 5px;
}

.addChapterRow td{
	padding-bottom: 16px;
}

.addChapterRow section > *{
	display: block;
	width: 100%;
	float: left;
}

.addChapterRow section header{
	font-size: 1.2em;
	float: left;
	font-weight: bold;
	margin-bottom: 4px;
}

.addChapterRow section form *{
	float: left;
	margin-right: 5px;
}

.addChapterRow section form label{
    padding-top: 5px;
}

.dirDirections, 
.chapterSpecific.pointName, 
.addChapterRow td:first-child,
.tblStory td.incpriority{
	border-left: 1px solid #AAA;
}

.dirDirections{
	border-bottom: 1px solid #AAA;
}

.deleteField, 
.dirDirections, 
.addChapterRow td:last-child,
.tblStory .pointName{
	border-right: 1px solid #AAA;
}

.tblStory .pointSeparator td{
	height: 50px;
}

.imgPointer{
	margin-right: 10px;
}

/* --------------  */

td span.filesize{
	font-size: 0.9em;
	opacity: 0.7;
	margin-left: 1em;
}


fieldset.addNew{
	border: 1px solid #AAA;
	padding: 1em;
	width: auto;
}

fieldset.addNew legend{
	border: none;
	font-size: 1.3em;
	width: auto;
	padding: 0 1em;
	margin: 0;
}

fieldset.addNew form{
	margin: 0;
}

fieldset.addNew label{
	float: left;
	clear: left;
	width: 200px;
}

/* ------------- Resources ------------- */
/* ------------------------------------- */

.resourceWrap .description{
	float: left;
	width: 100%;
}

.resourceWrap .description p{
	font-size: 1.2em;
	line-height: 1.6em;
}

.resourceWrap .description img{
	float: left;
	margin: 0 1em 1em 0;
}

.resourceWrap table{
	line-height: 30px;
}

.resourceWrap table caption,
.resourceWrap table th,
.resourceWrap table td{
	padding: 0 10px;
}

.resourceWrap table caption{
	border-bottom: 1px solid #888;
	font-weight: bold;
	text-align: left;
	font-size: 1.2em;
}

ul.resourceList{
	float: left;
	list-style: none;
	width: 100%;
	margin: 0;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
			box-sizing: border-box;
}

ul.resourceList li{
	float: left;
	clear: left;
	height: 40px;
	line-height: 40px;
	font-size: 1.4em;
	font-weight: bold;
	margin-bottom: 1em;
}

ul.resourceList i.rsrcThumb{
	display: block;
	width: 40px;
	height: 40px;
	background-size: cover;
	float: left;
	margin-right: 1em;
	border-radius: 50%;
}