html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
	height: auto;
	width: auto;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

html {
	overflow-y: scroll;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

body {
	background-image:url("/img/background.jpg");
	background-color:#eeeeee;
	height: auto;
	width: auto;
}

h1, h2, h3, p, li {
	font-family: Arial, "MS Trebuchet", sans-serif;
}

#main {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 50px;
	width: 50%;
    max-width: 800px;
	height: auto;
	margin-top: 8em;
	border-bottom: #000000 1px solid;
	border-right: #000000 1px solid;
	border-top: #f3f3f3 1px solid;
	border-radius: 10px 10px 10px 10px;
    box-shadow: 10px 10px 5px #333333;
    -moz-box-shadow: 10px 10px 5px #333333;
    -webkit-box-shadow: 10px 10px 5px #333333;
}

.main ul {
	padding: 0;
	margin: 0;
}

.main li  {
	text-align: center;
	font-size: 18px;
    list-style: none;
    position: relative;
}
.main a { 
	outline: none;
}

.main li > a:link, .main li a:visited {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: bold;
    display: block;
    color: #262626;
    padding: 12px 28px;
    text-decoration: none;
    text-transform: capitalize;
     
    /* CSS3 Text Shadow */   
    text-shadow: 0px 1px 1px #fff;
     
    /* CSS3 Background Gradient */
    background-image: -moz-linear-gradient(top, #cacaca, #848484);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cacaca), to(#848484));
}

.main li a:hover    {
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0px -1px 1px #000;
      
    /* Background Gradient */
    background-image: -moz-linear-gradient(top, #929292, #545454);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#929292), to(#545454));
}

.main li:first-child { 
     /* Rounded Corners */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -moz-border-radius-topright: 10px;
    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
}

.main li:nth-last-child(2) a, .main ul {
    /* Rounded Corners */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    -moz-border-radius-bottomleft: 10px;
    -moz-border-radius-bottomright: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
}

#sync {
    background: url('/img/sync_icon.png');
    background-size: 63% 100%;
    background-repeat: no-repeat;
    max-height: 100%;
    max-width: 100%;
    height: 0.5em;
    width: 0.1em;
    z-index: 2;
    position: absolute;
    top: 0.3em;
    left: 1em;
    float: left;
}

#sync:hover {
    background: url('/img/sync_icon_hover.png');
    background-size: 63% 100%;
    background-repeat: no-repeat;
}

#status.statusFrameDown {
	border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    -moz-border-radius-bottomleft: 0px;
    -moz-border-radius-bottomright: 0px;
    -webkit-border-bottom-left-radius: 0px;
    -webkit-border-bottom-right-radius: 0px;
}

#main li:last-child div {
    /* Rounded Corners */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    -moz-border-radius-bottomleft: 10px;
    -moz-border-radius-bottomright: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
}

a.active:link, a.active:active, a.active:visited {    
    color: #fff !important;
    text-shadow: 0px -1px 1px #000!important;
    background-image: -moz-linear-gradient(top, #444, #666)!important;
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#444), to(#666))!important;
      
    /* Box Shadow */
    box-shadow: inset 0 0 10px #000;
    -moz-box-shadow: inset 0 0 10px #000;
    -webkit-box-shadow: inset 0 0 10px #000;
}

li.header {
	font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    font-weight: bold;
    display: block;
    color: #ffffff;
    padding: 12px 28px;
    text-decoration: none;
    text-transform: capitalize;

    /* CSS3 Text Shadow */   
    text-shadow: 0px 1px 1px #000000;
     
    /* CSS3 Background Gradient */
    background-image: -moz-linear-gradient(top, #212121, #515151);
    background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#212121), to(#515151));
}

.menuFrame {
	background-color: #dddddd;
}

input {
	text-align: center;
}

#admin ul li, #catCam ul li {
	padding-top: 5px;
	padding-bottom: 5px;
}

#admin input[type=button], #catCam input[type=button] {
	width: 70%;
	height: 3em;
	border-radius: 10px;
	background-color: #efefef;
}

#admin input, #catCam input {
	width: 69%;
	height: 2.3em;
	border-radius: 10px;
}

input[type=button].liveFeed {
    width: 34.5% !important;
}

#catCamFrame img {
	max-width:100%;
	max-height:100%;
}

li.strava-link a {
    font-weight: 400 !important;
    text-shadow: none !important;
    background-image: url('http://badges.strava.com/logo-strava-echelon.png');
      
    /* Box Shadow */
    box-shadow: none ;
    -moz-box-shadow: inset none;
    -webkit-box-shadow: inset none;
}

#miningTable, #statusTable, #workoutTable, #workoutStatisticsTable, #workoutEffortsTable {
	margin-left: auto;
	margin-right: auto;
	padding: 10px;
}

#miningTable td, #statusTable td, #workoutTable td, #workoutStatisticsTable td,
#workoutEffortsTable td, #workoutEffortsTable th {
    min-width: 42px;
	text-align: left;
	padding-left: 20px;
	padding-right: 15px;
	padding-top: 5px;
	padding-bottom: 5px;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}

#workoutEffortsTable th {
    font-weight: 600;
    border-top: 0px;
}

td.data-description {
    padding-left: 0px !important;
}

td.total-column {
    padding-right: 0px !important;
}

.date {
    font-size: 12px;
}

#activity, #loadWorkout, #activityEfforts {
    width: 24%;
    height: 3em;
    margin: 5px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #efefef;
}

#workoutTable tr th, #statusTable tr th {
    border-bottom: 1px solid #000;
    font-weight: 600;
}

#workoutTable th, #statusTable th {
    padding-top: 15px;
}

.smallInfo {
    font-size: 10px;
}

#printerlive {
    height: 100%;
    width: 100%;
}

.loader {
    max-width: 100px;
    max-height: 100px;
    width: 1.5em;
    height: 1.5em; 
    z-index: 2;
    position: absolute;
    float: right;
}

.sync-loader img {
    top: 0.3em;
    right: 6em;
}

.standard-load img {
    top: 0.6em;
    right: 6em;
}

.wind-direction {
    width: 25px;
    height: 25px;
    margin-bottom: -5px;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    display: inline-block;
}

.n {
    background: url('/img/wind_directions/n.gif');
}

.ne {
    background: url('/img/wind_directions/ne.gif');
}

.e {
    background: url('/img/wind_directions/e.gif');
}

.se {
    background: url('/img/wind_directions/se.gif');
}

.s {
    background: url('/img/wind_directions/s.gif');
}

.sw {
    background: url('/img/wind_directions/sw.gif');
}

.w {
    background: url('/img/wind_directions/w.gif');
}

.nw {
    background: url('/img/wind_directions/nw.gif');
}

#map {
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    min-height: 200px;
    min-width: 368px;
    height: auto;
    width: 50%;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}

@media only screen and (max-device-width: 1080px) {

	#main {
		width: 93%;
		margin-top: 20%;
	}

	#main li {
		font-size: 1em;
	}

	#main li.header {
		font-size: 20px;
	}

	#main li a {
		font-size: 20px;
	}

	#admin input[type=button], #catCam input[type=button] {
		font-size: 14px;
		width: 70%;
		height: 3em;
		border-radius: 10px;
		background-color: #ffffff;
	}

	#admin input, #catCam input {
		width: 69%;
		height: 2.3em;
		border-radius: 10px;
	}

    #activity, #loadWorkout, #activityEfforts {
        font-size: 14px;
        width: 70%;
        height: 3em;
        border-radius: 10px;
        background-color: #ffffff;
        margin-bottom: 5px;
    }

    select {
        padding: 0 0 0 10px;
    }

	#miningTable td, #statusTable td, #workoutTable td, #workoutStatisticsTable td,
    #workoutEffortsTable td, #workoutEffortsTable th{
		text-align: left;
		padding-left: 5px;
		padding-right: 5px;
		padding-top: 5px;
		padding-bottom: 5px;
	}

    #map {
        min-height: 200px;
        min-width: 280px;
    }

    td.data-description {
        margin-right: -25px !important;
        padding-right: -10px !important;
    }

    td.total-column {
        padding-right: 0px !important;
    }

    #printerlive {
        height: 100%;
        width: 100%;
    }

    .loader {
        max-width: 100px;
        max-height: 100px;
        width: 1.5em;
        height: 1.5em;
        margin: 0px;
        position: absolute;
        float: right;
    }

    .sync-loader img {
        top: 0.4em;
        right: 2em;
    }

    .standard-load img {
        top: 0.6em;
        right: 2em;
    }

    .wind-direction {
        margin-bottom: -6px;
    }
}
