/*
	Theme Name: CloudAhoy Help 2015-01-30
	Theme URI: http://cloudahoy.com
	Description: Theme for CloudAhoy help system, based on HTML5 Blank WordPress Theme
	Version: 1.2
	Author: Andrew Simpson
	Author URI: http://cloudahoy.com
	Tags: Blank, HTML5, CSS3

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/

/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
}
body {
	font:300 14px/1.4 'Open Sans', Helvetica, Arial, sans-serif;
	color:#444;
}
/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
}
a {
	color:#444;
	text-decoration:none;
}
a:hover {
	color:#444;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}
input:focus {
	outline:0;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
}
/* header */
.header {

}
/* logo */
.logo {

}
.logo-img {

}
/* nav */
.nav {

}
/* sidebar */
.sidebar {

}
/* footer */
.footer {

}

/*------------------------------------*\
    PAGES
\*------------------------------------*/



/*------------------------------------*\
    IMAGES
\*------------------------------------*/



/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

@font-face {
	font-family:'Font-Name';
	src:url('fonts/font-name.eot');
	src:url('fonts/font-name.eot?#iefix') format('embedded-opentype'),
		url('fonts/font-name.woff') format('woff'),
		url('fonts/font-name.ttf') format('truetype'),
		url('fonts/font-name.svg#font-name') format('svg');
    font-weight:normal;
    font-style:normal;
}

/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:320px) {

}
@media only screen and (min-width:480px) {

}
@media only screen and (min-width:768px) {

}
@media only screen and (min-width:1024px) {

}
@media only screen and (min-width:1140px) {

}
@media only screen and (min-width:1280px) {

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

/*
.alignnone {
	margin:5px 20px 20px 0;
}
*/
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}

.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#000 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}


/* cloudahoy-specific */

#sidebar-left {
    background: #666;
    position: absolute;
    width: 250px;
    top: 49px;
    left: 0;
    bottom: 19px;
    overflow-y: scroll;
}

#main-wrapper {
    overflow-y: scroll;
    position: absolute;
    top: 49px;
    left: 250px;
    right: 0;
    bottom: 19px;
    padding: 10px;
}

#main-content {
    position: relative;
    display: none;
}

@media (min-width: 660px) {
    body.sidebar-collapsed #main-content {
        width: 620px;
    }
}

@media (min-width: 870px) {
    body.sidebar-expanded #main-content {
        width: 620px;
    }
}

#main-content h1:first-child {
    margin-top: 0;
    max-width: 480px;
}

footer.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: #666;
    color: #ddd;
}

footer.footer p {
    margin: 0;
}

footer.footer a {
    color: #eef;
}

header.header {
    background: #666;
    padding: 5px;
    height: 49px;
}

header.header > .header-inner {
    position: relative;
    width: 100%;
}

header.header .logo-link {
    position: absolute;
    left: 0;
}

header.header .help-right-button-group {
    position: absolute;
    right: 0;
    top: 4px;
}

header.header #help-my-debriefs {
    display: none;
    color:#fff;
    background-color: #333;
    border: 1px solid #333;
    border-radius:4px;
    text-shadow:none;
    padding: 4px;
    margin: 0 6px 0 0;
    vertical-align: middle;
}

header.header #help-sign-up {
    display: none;
    color:#000;
    background-color: #FDB813;
    border: 1px solid #FDB813;
    border-radius:4px;
    text-shadow:none;
    margin: 0 6px 0 0;
    padding: 4px;
    vertical-align: middle;
}

@media (min-width: 490px) {
    body.not-inline-help header.header #help-sign-up,
    body.not-inline-help header.header #help-my-debriefs {
        display: inline-block;
    }

    /* hide the signup/my-debrief buttons if we're using the inline help
     * inside the app */
    body.inline-help header.header #help-sign-up,
    body.inline-help header.header #help-my-debriefs {
        display: none;
    }
}

header.header #help-sign-up:hover,
header.header #help-my-debriefs:hover {
    border: 1px solid #FDB813;
    text-decoration: none;
    background-color: #333;
    color: #FDB813;
}

header.header #help-new-tab {
    display: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px;
    margin-right: 5px;
    cursor: pointer;
    vertical-align: middle;
}

@media ( min-width: 480px ) {
    body.inline-help header.header #help-new-tab {
        display: inline-block;
    }
}

header.header #help-new-tab:hover {
    background: #444;
}

header.header #help-new-tab .icon {
    margin: 0 5px;
}

header.header .logo {
    display: inline-block;
    vertical-align: middle;
    width: 122px;
    height: 39px;
    background: url('img/logo.png');
    background-size: 122px 39px;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    header.header .logo {
        background-image: url('img/logo@2x.png');
    }
}

header.header .site-title {
    color: #fff;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 10px;
}

header.header form.search {
    position: absolute;
    top: 3px;
    left: 125px;
    margin-left: 20px;
    vertical-align: middle;
}

header.header form.search .search-submit {
    font-size: 20px;
    color: #fff;
    vertical-align: middle;
    margin: 0 0 2px 5px;
    cursor: pointer;
}

header.header form.search .search-input {
    padding: 5px;
    letter-spacing: 1px;
    width: 120px;
}

@media ( min-width: 540px ) {
    header.header form.search .search-input {
        width: auto;
    }
}

#search-results h2 {
    margin-bottom: 0;
}

#sidebar-left .collapse {
    padding: 10px;
    background: #ddd;
    cursor: pointer;
    text-align: center;
}

#sidebar-left .collapse i.fa {
    font-size: 30px;
    vertical-align: middle;
}

#sidebar-left .collapse span {
    vertical-align: middle;
}

#btn-sidebar-expand {
    position: fixed;
    left: 10px;
    top: 60px;
    font-size: 35px;
    cursor: pointer;
    display: none;
}

.ca-help-post-summary {
    /*background: #FCF9DF;*/
    background: #fbb614
}

.ca-help-post-summary,
.ca-help-post-example,
.ca-help-post-further-reading {
    padding: 8px;
    border: none;
    margin: 10px 0;
    border-radius: 6px;
    clear: both;
}

.ca-help-post-example {
    background: #D9F9D9;
    float: right;
    margin: 0px 10px 10px 10px;
}

.ca-help-post-example.float-left {
    float: left;
}

.ca-help-post-example.float-right {
    float: right;
}

.ca-help-post-example.float-none {
    float: none;
    display: block;
    margin: 10px 0;
}

.ca-help-post-further-reading {
    background: #eee;
}

.ca-help-post-box {
    padding: 10px;
}

.ca-help-post-box pre {
    margin: 0;
}

.ca-help-post-summary-before,
.ca-help-post-example-before,
.ca-help-post-further-reading-before {
    clear: both;
}

.ca-help-post-summary > p:last-child,
.ca-help-post-example > p:last-child,
.ca-help-post-further-reading > p:last-child {
    margin: 0;
}

.ca-help-post-summary > h1.heading,
.ca-help-post-example > h1.heading,
.ca-help-post-further-reading > h1.heading,
.ca-help-post-box > h1.heading {
    font-size: 16px;
}

a {
    color: #66f;
    text-decoration: none;
}
a:hover {
    color: #66f;
    text-decoration: underline;
}
a:focus {
    outline:0;
}

img {
    vertical-align: middle;
    max-width: 100%;
    border: 0;
    height: auto;
}

#btn-get-url {
    position: absolute;
    top: 0;
    right: 0;
    width: 130px;
    background: #eee;
    border: 1px solid #aaa;
    padding: 5px;
    cursor: pointer;
    display: none;
}

#btn-get-url .icon {
    font-size: 20px;
    display: inline-block;
    vertical-align: middle;
}

#btn-get-url p {
    width: 90px;
    margin: 0;
    text-align: right;
    display: inline-block;
    vertical-align: top;
}

#show-url {
    display: none;
    background: #ccc;
    padding: 5px;
    position: absolute;
    left: 0;
    right: 0;
    top: 40px;
    height: 35px;
    border-radius: 5px;
    display: none;
}

#show-url .inner {
    position: relative;
}

#show-url .inner-two {
    position: absolute;
    right: 30px;
    left: 0;
    top: 0;
}

#show-url input {
    position: absolute;
    margin: 0 0 0 5px;
    width: 100%;
}

#show-url .close {
    font-size: 15px;
    cursor: pointer;
    position: absolute;
    right: 7px;
    top: 5px;
}

/* help-home additions */
.htitle {
    font-size: 22px;
    color: #333333;
    font-weight: bold;
}

.htitle .ttopics {
    padding: 10px 20px 10px 40px;
    float: left;
    background-color: #666;
    color: #fff;
    border-right: 10px solid #fff;
    border-bottom: 10px solid #fff;
    background-image: url("/assets/content/uploads/2015/01/topics-arrow.png");
    background-repeat: no-repeat;
    background-position: left center;
}

.htitle .tvideos {
    padding: 10px;
    background-color: #eee;
    text-align: center;
    height: 64px;
}

.videocollection {
    background-color: #eee;
    padding: 10px 0 0px 3%;
    clear: both;
    float: left;
}

.videobox {
    width: 47%;
    float: left;
    margin-right:3%;
    margin-bottom:10px;
}

.videobox .vtitle {
    padding-top: 6px;
    padding-bottom: 6px;
    color:#595959;
    font-weight: bold;
}

.videobox .video {
    background-color: #fff;
    border: solid #ccc 1px;
}
.videobox .video img{
    width:100%;
}

.videobox .vmore {
    text-align: right;
    padding-top: 6px;
    padding-bottom: 6px;
}

#link-cloudahoy-home {
    display: none;
    position: absolute;
    color: #fff;
    font-weight: bold;
    top: 9px;
    font-size: 16px;
    left: 370px;
}

@media ( min-width: 680px ) {
    body.not-inline-help #link-cloudahoy-home {
        display: block;
    }
}

table.flights td {
    border: 1px solid black;
    padding: 5px;
    text-align: center;
}

table.flights td img {
    margin: 0;
}

.popup-link.popup {
    position: absolute;
    top: 10%;
    bottom: 10%;
    right: 10%;
    left: 10%;
    background: #fff;
    border-radius: 10px;
    border: 4px solid #444;
    z-index: 2;
    display: none;
}

.popup-link.popup .iframe-container {
    position: absolute;
    top: 50px;
    right: 0;
    bottom: 20px;
    left: 0;
}

.popup-link.popup iframe {
    width: 100%;
    height: 100%;
}

.overlay-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba( 0, 0, 0, 0.5 );
    z-index: 1;
    display: none;
}

.popup-link.popup .close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
}

.popup-link.popup .close i.fa {
    margin-left: 5px;
    font-size: 24px;
    vertical-align: middle;
}

code {
    border: 1px solid #e1e1e8;
    white-space: nowrap;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    padding: 2px 4px;
    color: #d14;
    white-space: nowrap;
    background-color: #f7f7f9;
}
