/* -------------------------------- 

Primary style

-------------------------------- */
*, *::after, *::before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-size: 16px;
  font-family: "Arial", sans-serif;
  color: #2c343b;
  background-color: #fff;
  /*overflow-y:scroll;*/
}

:focus {
outline: 0;
}

.cd-primary-nav a:hover, .footer-nav a:hover {
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid #66b2ff;
}
a {
  color: #cdcdcd;
  text-decoration: none;
}
.active{
	color: #fff !important;
	border-bottom:2px solid #66b2ff;
}
img {
  max-width: 100%;
}
.top{
	background-color: #777;
	bottom: 55px;
	color: #fff;
	display: none;
	opacity: 0.5;
	padding: 4px 7px;
	position: fixed;
	right: 15px;
	text-decoration: none;
}
.top:hover{
	opacity:1;
	transition:1s;
}
/* -------------------------------- 

Main Components 

-------------------------------- */

/* BREAKING NEWS BANNER */

.breakingNewsBanner {
    border: 0px solid #000000;
    width: 99.5%;
    /* height: 30px; */
    font-size: 16px;
	line-height: 1.5;
    color: #000000;
    text-align: left;
    font-weight: bold;
    margin-left: 0px;
    padding: 3px 0px 3px 0px;
    z-index: 50000;
    background-color: #b3b3b3;
    color: white;
    position: relative;
}
.breakingNewsBanner a {
    text-decoration: none;
}
.close_breaking {
	cursor: pointer;
    position: absolute;
    top: 3px;
    right: 10px;
}
.breakingNewsTitle {
    /*color: #f2f2f2; /* #a00e0e /
    font-weight: normal;*/
    /* font-family: Arial Black; */
}
.breakingNewsCopy {
    color: white;
    display: block;
    font-weight: bold;
	max-width: calc( 100% - 30px );
}

/* HEADER */

.cd-header {
  position: absolute;
  z-index: 2;
  /*top: 0;*/
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media only screen and (min-width: 768px) {
	.cd-header {
		height: 70px;
		background-color: #000;
	}
}

#cd-logo {
  float: left;
  margin: 13px 0 0 2%;
}
#cd-logo img {
  display: block;
}
@media only screen and (min-width: 768px) {
  #cd-logo {
    margin: 23px 0 0 1%;
  }
}
@media only screen and (max-width: 390px) {
  #cd-logo img{
    width: 80%;
  }
   #cd-logo {
    margin: 15px 0 0 0;
	width:80%;
  }
}


.cd-primary-nav {
  /* mobile first - navigation hidden by default, triggered by tap/click on navigation icon */
  float: right;
  margin-right: 2%;
  width: 44px;
  height: 100%;
  cursor: pointer;
  background: url("../img/mobile_nav.png") no-repeat center center;
}
@media only screen and (max-width: 280px) {
  .cd-primary-nav {
	margin-right: 0px;
  }
}
.cd-primary-nav ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  cursor: default;
  -webkit-transform: translateY(-100%);
  -moz-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  -o-transform: translateY(-100%);
  transform: translateY(-100%);
}
.cd-primary-nav ul.is-visible {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  -webkit-transform: translateY(50px);
  -moz-transform: translateY(50px);
  -ms-transform: translateY(50px);
  -o-transform: translateY(50px);
  transform: translateY(50px);
}
.cd-primary-nav a {
  display: block;
  height: 50px;
  line-height: 50px;
  padding-left: 5%;
  background: #21272c;
  border-top: 1px solid #333c44;
  color: #cdcdcd;
}
@media only screen and (min-width: 769px) {
  .cd-primary-nav {
    /* reset navigation values */
    width: auto;
    height: auto;
    background: none;
  }
  .cd-primary-nav ul {
    position: static;
    width: auto;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
    line-height: 70px;
  }
  .cd-primary-nav ul.is-visible {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
  }
  .cd-primary-nav li {
    display: inline-block;
    margin-left: 1em;
	cursor: default;
  }
  .cd-primary-nav a {
    display: inline-block;
    height: auto;
	font-family: Arial, sans-serif;
    font-weight: regular;
    line-height: normal;
    background: transparent;
    padding: 4px;
    border-top: none;
  }
}

/* -------------------------------- 

Slider

-------------------------------- */
.cd-hero {
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cd-hero-slider {
  position: relative;
  height: 360px;
  overflow: hidden;
}
.cd-hero-slider li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.cd-hero-slider li.selected {
  /* this is the visible slide */
  position: relative;
}
.cd-hero-slider li.contest {
  background-image: url(../img/WinTrip_bkgd.jpg);
  background-color: #222;
}
@media only screen and (min-width: 768px) {
  .cd-hero-slider {
    height: 700px;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-hero-slider {
    height: 900px;
  }
}

/* -------------------------------- 

Single slide style

-------------------------------- */
.cd-hero-slider li {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.cd-hero-slider li.home {
  background-image: url(../img/bkgd2019.jpg);
  background-color: #222;
}

.cd-hero-slider .cd-full-width,
.cd-hero-slider .cd-half-width {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  left: 0;
  top: 0;
  /* this padding is used to align the text */
  padding-top: 100px;
  text-align: center;
  /* Force Hardware Acceleration in WebKit */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
}
.cd-hero-slider .cd-img-container {
  /* hide image on mobile device */
  display: none;
}
.cd-hero-slider .cd-img-container img {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
}
.cd-hero-slider .cd-bg-video-wrapper {
  /* hide video on mobile device */
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.cd-hero-slider h2, .cd-hero-slider p {
  text-shadow: 2px 1px 1px rgba(0, 0, 0, 1);
  line-height: 1.2;
  margin: 0 auto 10px;
  color: #ffffff;
  width: 90%;
  max-width: 800px;
}
.cd-hero-slider h2 {
  font-size: 36px;
}
.cd-hero-slider p {
  font-size: 18px;
  line-height: 20px;
}
.cd-btn:hover {
  background-color: #2677ca;
}
.cd-btn {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 10px;
  background-color: #66b2ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.85);
  -webkit-transition: background-color 0.2s;
  -moz-transition: background-color 0.2s;
  transition: background-color 0.2s;
}
@media only screen and (max-width: 593px){
	.cd-btn { margin-top: -10px !important; }
}
.cd-hero-slider .cd-btn.secondary {
  background-color: rgba(22, 26, 30, 0.8);
}
.cd-hero-slider .cd-btn:nth-of-type(2) {
  margin-left: 1em;
}

.no-touch .cd-hero-slider .cd-btn.secondary:hover {
  background-color: #161a1e;
}
@media only screen and (min-width: 768px) {
  .cd-hero-slider .cd-full-width,
  .cd-hero-slider .cd-half-width {
    padding-top: 150px;
  }
  .cd-hero-slider .cd-img-container {
    display: block;
  }
  .cd-hero-slider h2, .cd-hero-slider p {
    max-width: 880px;
  }
  .cd-hero-slider h2 {
    font-size: 48px;
	font-family: Arial Black, sans-serif;
    font-weight: bold;
  }
  .cd-hero-slider .cd-btn {
    font-size: 1.4rem;
  }
}
@media only screen and (min-width: 1170px) {
  .cd-hero-slider .cd-full-width {
    padding-top: 190px;
  }
  .cd-hero-slider h2{
    margin-bottom: 5px;
  }
  .cd-hero-slider h2 {
    font-size: 48px;
	margin-bottom: 5px;
  }
  .cd-hero-slider p {
    font-family: Arial, sans-serif;
    font-weight: bold;
	font-size: 16px;
	letter-spacing: .5px;
	text-transform: uppercase;
	margin-bottom: 50px;
	margin-top: 0px;
	padding: 0;
	text-shadow: 2px 1px 1px #000;
  }
}


/* -------------------------------- 

Main content

-------------------------------- */
.cd-main-content {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 15px 10px;
}
.cd-main-content p {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 30px;
  color: #555;
  margin: 20px 0;
}
.cd-main-content p.intro-message{
	font-weight:bold;
	border-bottom: 2px solid #898989;
	width: 425px;
	margin-top: 40px;
	margin-bottom: 5px;
}
.cd-main-content p.title{
	font-size: 24px;
	font-weight: bold;
	padding-bottom: 0px;
	margin-bottom: 15px;
	border-bottom: 2px solid #ccc;
}
p.tagline{
	font-style:italic;
	font-weight:bold;
	text-transform:none;
	font-size:120%;
	letter-spacing:.65px;
}
p.imageCaption{
	display:block;
	position:inherit;
	bottom:7px;
	right:12px;
	margin:0;
	padding:2px 7px 0 0;
	font-weight:regular;
	font-size:70%;
	text-transform:none;
	color:#999;
	text-align:right;
	letter-spacing:0;
	line-height:12px;
	font-weight:normal;
}
.bc-signature{
	text-align: right;
	padding: 5px 10px 0 0 !important;
	margin: 0 !important;
	font-size: 12px !important;
	color: #787878 !important;
}
div.spacer{
	width:100%;
	height: 50px;
}
@media only screen and (max-width: 769px) {
	div.spacer{
		height:25px;
	}
	p.tagline {
		font-size: 90%;
	}
	.cd-primary-nav {
		margin-right:0;
	}
	#cd-logo{
		margin-left:0;
	}
	p.imageCaption{
		font-size: 60%;
	}
	.cd-btn {
		margin-top: 0px;
	}
}

@media only screen and (min-width: 1170px) {
  .cd-main-content {
    padding: 15px 0 50px;
  }
  .cd-main-content p {
    font-size: 16px;
  }
}


/*   Gallery Section */
.image-gallery{
	width: 100%;
	margin: 0 auto;
	display: inline-block;
	padding: 10px 0;
	height: auto;
}
.imagebox:hover, .imagebox-lg:hover{
    border: 3px solid #66b2ff;
}
.imagebox{
    border: 3px solid rgba(0,0,0,0.65);
	border-radius: 3px;
    display: inline-block;
    height: auto;
    margin: 1% 1.7%;
    padding: 0;
    width: 22%;
	overflow:hidden;
}
.imagebox-lg{
    border: 3px solid rgba(0,0,0,0.65);
	border-radius: 3px;
    display: inline-block;
    height: auto;
    margin: 0 0 0 2px;
    padding: 0;
    width: 99.2%;
	overflow:hidden;
}
.row1{
	margin-left: 2px;
}
.row3{
	margin-right: 0px;
}
@media only screen and (max-width: 1150px) {
	.row1{
		margin-left: 0px;
	}
}
@media only screen and (max-width: 1000px) {
	.imagebox{
		margin: 1% 1.25%;
	}
}
@media only screen and (max-width: 810px) {
	.imagebox{
		margin: 3% auto;
		display: block;
		width: 55%;
	}
	.imagebox img {
		width: 100%;
		height: 100%;
	}
	.image-gallery{
		padding: 0;
	}
}

.earthcam-net-services{
	width: 100%;
	margin: 0 auto;
	display: inline-block;
	padding: 10px 0;
	height: auto;
}
.service-box{
    display: inline-block;
    height: auto;
    margin: 5px .2%;
    padding: 0;
    width: 19%;
	overflow:hidden;
}
.service-box img{
	padding-bottom: 10px;
}
@media only screen and (max-width: 1170px) {
	.service-box{
		width: 18.98%;
	}
}
@media only screen and (max-width: 1000px) {
	.service-box{
		width: 30%;
		margin-bottom: 5px;
	}
}
.earthcam-net-services p{
	font-size: 80%;
	padding: 0;
	margin: 0;
	text-align:center;
	line-height: 16px;
}
.ectv-image{
	float:right;
	margin:10px 0 0 15px;
}
@media only screen and (max-width: 540px) {
	.ectv-image{
		float: left;
		margin: 0px 35px 20px;
		margin-right: 200px;
	}
}
.about-link:hover,
.cctv-link:hover {
	color: #66b2ff !important;
	border-bottom: 2px solid #66b2ff;
}
.cctv-link {
	color:#555 !important;
}
.about-link,
.ernest-link{
	font-family: Arial;
	font-weight: bold;
	color: #2677ca;
	font-size: 18px;
	border-bottom: 2px solid #2677ca;
}


/*  Contact Form */
#form {
	padding: 0;
	height: auto;
}

#form-left {
	width: 48%;
	float: left;
	margin-right: 2%;
	}
	#form-left input:hover, #form-left .input-bg:hover,
	#form-left input:focus, #form-left .input-bg:focus{
		opacity: 1;
	}
	#form-left input {
		width: 100%;
		margin: 0 0 0 0;
		border: none;
		text-align: left;
		background-color: #ccc;
		font-size: 16px;
		padding: 10px;
		font-family: Arial, sans-serif;
		color: #333;
		border-radius: 3px;
		opacity:.60;
	}
	#form-left .input-bg {
		background-color: #eee;
		height: 40px;
		margin-bottom: 10px;
		position: relative;
		border-radius: 7px;
	}
	#form-left .active {
		background-color: #eeeeee;
	}
#form-right {
	width: 48%;
	float: right;
	}
	#message:hover, #form-right .message-bg:hover,
	#message:focus, #form-right .message-bg:focus{
		opacity: 1;
	}
	#message {
		width: 100%;
		height: 220px;
		margin: 0;
		border: none;
		padding: 10px;
		text-align: left;
		background-color: #ccc;
		font-size: 16px;
		font-family: Arial, sans-serif;
		color: #333;
		border-radius: 7px;
		opacity: .60;
	}
	#form-right .message-bg {
		background-color: #eeeeee;
		height: 210px;
		width: 100%;
		border-radius: 7px;
	}
	#form-right .active {
		background-color:#eee;
	}
label {
	display: block;
	font-size: 18px;
	font-family: Arial. sans-serif;
	font-weight: bold;
}
label.error {
	position: absolute;
	top: -16px;
	right: 49px;
	padding: 3px;
	color: #da3939;
	font-size: 1.0em;
	text-align: right;
	font-style: italic;
	font-weight: normal;
}
.invalid{
	background-color: #FDD !important;
}
.submit {
	float:right;
	padding:1px 25px;
	cursor:pointer;
}
@media only screen and (max-width: 700px) {
	.submit, #form-right  {
		float: left;
	}
	#form-right, #form-left{
		width: 90%;
	}
}

/*Contest form additional*/

.grecaptcha-badge { bottom: 50px !important; }
.imagePlaceholder { width: 100%; height: 400px; }
#acceptDiv { margin-top: 15px; }
#extLabel {
	float: right;
	margin-right: 2%;
}
#imgSpace { padding-top: 31%; }
#phoneLabel, #extLabel { display: inline; } 
#form-left #extension { width: 23%; }
#rules {
	border: #ccc solid 1px;
	width: 100%;
	height: 400px;
	overflow-y: scroll;
	text-align: left;
}
#imgWrapper { margin-top: 50px; position: relative; max-width: 1902px; left: 50%; transform: translateX(-50%); }
@media only screen and (min-width: 768px){
	#imgWrapper { margin-top: 70px; }
}
@media only screen and (max-width: 946px){
	.grecaptcha-badge { bottom: 90px !important; }
}
@media only screen and (max-width: 700px) {
	#extLabel { margin-right: 8%; }
}
@media only screen and (max-width: 540px) {
	#extLabel { margin-right: 2%; }
}
@media only screen and (max-width: 475px) {
	.grecaptcha-badge { bottom: 160px !important; }
}
/* Footer content

-------------------------------- */
.footer-wrapper {
	background: rgba(0,0,0, 0.8);
	width: 100%;
	position: absolute;
}
.footer-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0px 0;
}
.footer-nav {
/* reset navigation values */
	width: auto;
	height: auto;
	background: none;
}
.footer-nav ul {
	width: auto;
	line-height: 37px;
}
.footer-nav ul.footer-menu {
	float: left;
	padding-left: 10px;
}
.footer-nav ul.footer-social {
	float: right;
	padding-right: 15px;
}
.footer-menu li {
	display: inline-block;
	margin-left: 5px;
	text-align: left;
	padding-top: 5px;
}
@media only screen and (max-width: 340px) {
	.footer-menu li {
		margin-right: 2px;
	}
}

.footer-social li {
	display: inline-block;
	padding: 8px 0 0;
	margin-right: 1px;
	margin-left: 0px;
	text-align: right;
}
.footer-social img {
	border-radius: 5px;
}

.footer-nav a {
	display: inline-block;
	height: auto;
	font-family: Arial, sans-serif;
	font-size: 11px;
	font-weight: bold;
	line-height: normal;
	background: transparent;
	padding: 0px 3px;
	border-top: none;
	color: #999;
	text-align: left;
}
.footer-social li span.copyright:hover{
	color:#888 !important;
}
.footer-social li span.copyright{
	color:#aaa !important;
	font-size:10px;
	vertical-align:middle;
	padding-bottom:15px;
}
@media only screen and (max-width: 730px) {
	.footer-nav a {
		font-size: 11px;
		padding: 0 1px;
	}
	.footer-nav ul.footer-social {
		float: left;
		padding-left: 15px;
	}
	a.top{
		display: none !important;
	}
}
@media only screen and (max-width: 390px) {
	.footer-nav a {
		font-size: 10px;
		padding: 0;
	}
}
/* -------------------------------- 

Javascript disabled

-------------------------------- */
.no-js .cd-hero-slider li {
  display: none;
}
.no-js .cd-hero-slider li.selected {
  display: block;
}

.no-js .cd-slider-nav {
  display: none;
}
