/* Main styles */
body {
	font-family: 'Roboto Condensed', sans-serif;
	line-height: 1.4em;
	background: url(https://www.nextgen.racingnsw.com.au/custom/desktop/images/body-bg-img.jpg) #36485f top center no-repeat;  
}

h1, h2, h3, h4 {
	color: #374961;
}

/* Margins */
.mt5 {margin-top: 5px;}
.mt10 {margin-top: 10px;}
.mt20 {margin-top: 20px;}
.mb5 {margin-bottom: 5px;}
.mb10 {margin-bottom: 10px;}
.mb20 {margin-bottom: 20px;}
.mr5 {margin-right: 5px;}
.mr10 {margin-right: 10px;}
.mr20 {margin-right: 20px;}
.ml5 {margin-left: 5px;}
.ml10 {margin-left: 10px;}
.ml20 {margin-left: 20px;}

/* Bold, Italics & Normal */
b, strong {font-weight: bold;}
i, em {font-style: italic;}
.bold {font-weight: bold;}
.normal {font-weight: normal;}

/* Float */
.floatLeft {float: left;}
.floatRight {float: right;}

/* Default link styling */

a {
	text-decoration: none;
	color: #000;
}

a:hover {
	text-decoration: underline;
	color: #00b5ec;
}

a h1:hover, a h2:hover, a h3:hover, a h4:hover {
	color: #00b5ec !important;
}

/* Image width */
img {width: 100%}

/* Default table styling */
table {
	width: 100%;
	font-size: 14px;
}

th {
	text-align: left;
	font-weight: bold;
}

/* General font awesome styling */
.fa-square {
	font-size: 12px;
    vertical-align: middle;
    color: #00b5ec;
    margin-right: 5px;
}

.fa-facebook-f {
	color: #4461b1; 
}

.fa-twitter {
	color: #1fa0fb;
}

/* Section header styling */
h2.sectionHeader {
	background-color: #374961;
    border-radius: 3px;
    color: #fff;
    padding: 2px 0px 2px 10px;
    font-size: 14px;
}

.fa-square.red {
	color: red;
}

/* Upcoming events - Headers */
h3.upcomingEventsHeader {
	color: #000;
    padding: 2px 0px 2px 10px;
    font-size: 14px;	
    font-weight: bold;
}

.today {
	background-color: #cbf7d4;
}

.acceptances {
	background-color: #fdff82;
}

.weights {
	background-color: #f5afb9;
}

.nominations {
	background-color: #daecf6;
}

.upcoming {
	background-color: #81d8f6;
}

.barrierTrials {
	background-color: #f3dfd8;
}

/* Upcoming events - Smaller text for track condition */
.upcomingEventsGoing {
	font-size: 11px;
	font-weight: normal;
}


/* Upcoming events - Fixed column widths & styling */
#upcomingEvents table td:nth-child(1) {
	width: 40px;
}

#upcomingEvents table td:nth-child(2) {
	font-weight: bold;
}

#upcomingEvents .fa-chevron-right {
	font-size: 10px;
	color: #56c7e9;
}

#upcomingGroupRaces table td:nth-child(2) {
	font-weight: bold;
	color: #00b5ec;
}




.viewAll, .viewAll a {
	color: #00b5ec;
	font-size: 12px;
	text-decoration: none;
}

.viewAll a:hover{
	text-decoration: underline;
}

.tableWeights td:nth-child(3), .tableUpcoming td:nth-child(3) {
	text-align: right;
	padding-right: 10px;
}

#wrapper {
	display: -ms-grid;
	-ms-grid-columns: 1fr;
	display: grid;
	grid-template-columns: 1fr;
	background: transparent;
}

#headerContainer, #menuContainer, #tickerContainer, #header, #mainContainer, #footerContainer {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

#headerWrapper {
	display: -ms-grid;
	-ms-grid-columns: 1fr;
	display: grid;
	grid-template-columns: 1fr minmax(auto, 1280px) 1fr;
	background-color: transparent;
}

#headerBgLeft {
	grid-column: 1 / 2;
	background-color: #00b5ec;
	height: 40px;
}

#headerBgRight {
	grid-column: 3 / 4;
	background-color: #00b5ec;
	height: 40px;
}

#headerContainer {
	grid-column: 2 / 3;
	display: -ms-grid;
	-ms-grid-columns: 230px 1fr;
	-ms-grid-rows: 40px 1fr;
	display: grid;
	grid-template-columns: 230px 1fr;	
	grid-template-rows: 40px 1fr;
}

#logo {
	-ms-grid-row: 1;
	-ms-grid-row-span: 3;	
	-ms-grid-column: 1;
	-ms-grid-column-span: 2;	
	grid-column: 1 / 2;
	grid-row: 1 / 3;
	height: 121px;
	text-align: center;
}

#logo img {
	width: 146px;
	height: 78px;
	margin-top: 19px;
}

#tickerContainer {
	display: -ms-grid;
	-ms-grid-row: 1;
	-ms-grid-row-span: 2;
	-ms-grid-column: 2;
	-ms-grid-column-span: 2;
	grid-column: 2 / 3;
	grid-row: 1 / 2;
	display: grid;
	align-items: center;
	background-color: #00b5ec;
}

#ticker {
	padding-left: 20px;
}

.tickerNtg {
	color: #fff;
}

a.tickerViewFormButton {
	text-decoration: none;
}

.tickerViewFormButton {
	color: #fff;
	background-color: #36485f;
	padding: 2px 12px;
    border-radius: 3px;
    margin: 0px 10px;
}

.tickerViewFormButton:hover {
	background-color: #36485fa6;
	cursor: pointer;
}

.circle {
	background-color: #36485f;
    border-radius: 3px;
    color: #fff;
    padding: 2px 8px;
    font-weight: bold;
}

#menuContainer {
	-ms-grid-row: 2;
	-ms-grid-row-span: 2;
	-ms-grid-column: 2;
	-ms-grid-column-span: 2;
	grid-column: 2 / 3;
	grid-row: 2 / 3;
	display: grid;
    align-items: center;

}

#accountLinks {
	grid-column: 8 / 10;
	text-align: right;
	color: #fff;
	padding: 9px;
	font-size: 13px;
}

#menuWrapper {
	display: grid;
	grid-template-columns: 1fr;
	background: transparent;
	position: fixed; /* Set the navbar to fixed position */
    top: 30px; /* Position the navbar at the top of the page */
    width: 100%; /* Full width */
    z-index: 99;
}

#menu {
	background-color: transparent;
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
}

#menu li {
	display: block;
	float: left;
	margin-right: 20px;
	padding: 5px;
	border-bottom: 2px solid transparent;
}

#menu li:hover {
	color: #0C324F;
	cursor: pointer;
	border-bottom: 2px solid #00b5ec;
    
}

#menu li a {
	color: #fff;
	text-decoration: none;
	font-size: 18px;
}


#mainWrapper {
	display: grid;
	grid-template-columns: 1fr minmax(1004px, 1280px) 1fr;
}

#skyScraperLeft {
	grid-column: 1 / 2;
	overflow: hidden;
	background: transparent;
}

#skyScraperRight {
	grid-column: 3 / 4;
	overflow: hidden;
	background: transparent;
}

#skyScraperBannerLeft {
	display: none;
	width: 160px;
	margin: 0px 20px auto auto;
}

#skyScraperBannerRight {
	display: none;
	width: 160px;
	margin: 0px auto auto 20px;
}

#mainContainer {
	grid-column: 2 / 3;
	display: grid;
	grid-template-columns: repeat(9, 1fr);
	grid-gap: 20px;
	max-width: 1240px;
	padding: 20px;
	background-color: #fff;
	align-items: start;
}

#leftContainer {
	grid-column: 1 / 7;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 10px 20px;
	align-content: start;
}

#rightContainer {
	grid-column: 7 / 10;
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 10px;
	align-content: start;
}


#promoArea {
	display: none;
	grid-column: 1 / 3;
}

#featuredStory {
	grid-column: 1 / 3;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 20px;
}

#featuredStoryImage {
	grid-column: 1 / 2;
	position: relative;
}

#featuredStoryImage p {
	background-color: #384861;
	padding: 2px 12px;
	color: #fff;
	font-size: 14px;
	position: absolute;
}

#featuredStoryImage img {
	grid-column: 1;
}

#featuredStoryText {
	grid-column: 2 / 3;
}

#featuredStoryText h2 {
	color: #324959;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.1em;
}

#featuredStoryText p:first-of-type {
	font-size: 14px;
    margin-top: 10px;
    border-bottom: 1px solid #cecece;
    padding-bottom: 10px;
}

#featuredStoryText p {
	margin-top: 10px;
	font-size: 15px;
}

#featuredStoryText .author {
	color: #00b5ec;
	font-weight: bold;
}

#latestNews {
	grid-column: 1 / 2;
	display: grid;
	grid-gap: 10px;
	align-content: start;
}

.latestNewsBlock {
	grid-column: 1 / 2;
	display: grid;
	grid-template-columns: 120px 1fr;
	grid-template-rows: 80px;
	grid-gap: 10px;
}

.latestNewsImage {
	grid-column: 1 / 2;
}

.latestNewsText {
	grid-column: 2 / 3;
	font-size: 13px;
	border-bottom: 1px dashed #bdbdbd;
}

.latestNewsText h4 {
	font-size: 15px;
    line-height: 1.3em;
    font-weight: bold;
}

#middleBlock {
	grid-column: 2 / 3;
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 10px;
	align-content: start;
}

#notices p {
	font-size: 14px;
	border-bottom: 1px dashed #bdbdbd;
	padding: 5px 0px;
    line-height: 1.3em;
}

#twitterRnsw {
	grid-column: 1 / 2;
}

#twitterStewards {
	grid-column: 2 / 3;
}

#searchBox {
	grid-column: 1;
	background-color: #384861;
	border-radius: 3px;
	padding: 10px;
	display: grid;
	align-content: center;
}

#searchBox input {
    padding: 10px 16px;
    border-radius: 3px;
    border: none;
    width: 65%;
}

#searchBox label {
	border-radius: 3px;
    background-color: #00b5ec;
    padding: 9px 16px;
    color: #fff;
    font-size: 14px;
    margin-left: 10px;
}

#upcomingEvents {
	grid-column: 1;
}

#upcomingGroupRaces {
	grid-column: 1;
}

#upcomingGroupRaces table tr {
	border-bottom: 1px dashed #bdbdbd;
}

#rnswVideoPlayerContainer {
	display: grid;
	justify-items: right;
	z-index: 99;
}

#rnswVideoPlayerContainer.dock {
	position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 99;
}

#rnswVideoPlayerContainer.undock {
	position: fixed;
	z-index: 99;
}

#rnswVideoPlayerContainer.hide {
	position: fixed;
    bottom: -300px;
    right: 0px;
    left: unset !important;
    top: unset !important;
}

#rnswVideoPlayerContainer.firstOpen {
	bottom: 0px;
    right: 0px;
}

#rnswVideoPlayerTab {
	background-color: #000;
    width: 100%;
    text-align: center;
    color: white;
    padding: 4px 0px;
    z-index: 99;
}

#rnswVideoPlayerTab:hover {
	cursor: move;
}

#rnswVideoPlayerToggle {
	background-color: #00b5ec;
	padding: 2px;
	font-size: 13px;
	margin-left: 10px;
	border-radius: 3px;
}

#rnswVideoPlayerToggle:hover {
	cursor: pointer;

}

.slide-up {bottom: 0px !important;}




#footerWrapper {background: transparent;}

#footerContainer {
	display: grid;
	grid-template-columns: 1fr;
	grid-gap: 10px;
	background-color: #00b5ec;
	color: #fff;
}

#footerContainer p{
	padding: 10px;
}

#footerMenu {
	grid-column: 1;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	margin-top: 20px;
}

#footerMenu h4 {
	color: #334863;
	font-weight: bold;
	font-size: 15px;
	margin-bottom: 10px;
}

#footerMenu a {
	text-decoration: none;
	color: #fff;
	font-size: 14px;
}

#footerMenu a:hover {
	text-decoration: underline;
}

#footerMenuOne {
	display: grid;
	justify-content: center;
}

#footerMenuOne img {
	width: 150px;
}

#footerMenuOne a {
	color: #334863;
}

#footerBottom {
	-ms-grid-row: 1;
	-ms-grid-column: 1;
	-ms-grid-column-span: 2;
	grid-column: 1 / 2;
	font-size: 13px;
    padding: 10px;
    background-color: #0095c0;
    text-align: center;
}

#promoArea {
	height: 60px;
}

#breakingNews {
	grid-column: 1 / 3;
	background-color: #ea2d2d;
	padding: 5px;
	color: #fff;
}

#breakingNewsLabel {
	color: yellow;
}

#breakingNews a, #breakingNews a:hover {
	color: #fff;
}

@media only screen and (max-width: 1639px) {
    #skyScraperBannerLeft, #skyScraperBannerRight {
    	display: none;
    }
}