* {
    box-sizing:border-box;
    padding:0;
    margin:0;
    font-family: 'Ubuntu', sans-serif;
    font-weight: 300;
}

*:focus
{
	outline: 0;
}

html
{
	width:100%;
	height:100%;
    margin:0;
}


body
{
	position: relative;
  	margin: 0;
    min-height: 100%;
    display:flex;
    flex-direction:column;
}

#event_header {
    width:100%;
    background-color:#003876;
    min-height:70px;
}

#main_nav {
    width:100%;
    max-width:1150px;
    margin:auto;
    display:flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width:1149px) {
    #main_nav {
        flex-direction: column;
    }
}

@media (min-width:1150px) {
    #main_nav {
        flex-direction: row;
    }
}

#mobile_top {
    display:flex;
    justify-content:stretch;
    align-items:center;
}

@media (max-width:1149px) {
    #mobile_top {
        width:100%;
    }
}

@media (min-width:1150px) {
    #mobile_top {
        width:300px;
    }
}

@media (max-width:1149px) {
    #mobile_bottom {
        display:none;
        justify-content:stretch;
        align-items:center;
        width:100%;
        background-color:white;
        flex-direction:column;
    }
}

@media (min-width:1150px) {
    #mobile_bottom {
        display:flex;
        justify-content:stretch;
        align-items:center;
        width:850px;
        flex-direction:row-reverse;
    }
}

#event_logo {
    width:300px;
    height:70px;
    padding:10px;
}

#event_logo img {
    height:50px;
}

#burger_menu {
    height:70px;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    flex:1;
}

@media (min-width:1150px) {
    #burger_menu {
        display:none;
    }
}

#burger_menu img {
    height:22px;
    padding-right:10px;
}

#nav_links {
    list-style-type: none;
    width:100%;
    display:flex;
    justify-content:space-evenly;
    align-items: center;
    flex-wrap:wrap;
}

#nav_links a, #nav_links a:hover {
    text-decoration:none;
    height:70px;
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

@media (max-width:1149px) {
    #nav_links a {
        color:black;
    }
}

@media (min-width:1150px) {
    #nav_links a {
        color:white;
    }
}

#nav_links a:hover {
    color:#ff0000;
}

@media (max-width:1149px) {
    #nav_links .selected_link li {
        border-bottom:2px solid black;
    }
    
}

@media (min-width:1150px) {
    #nav_links .selected_link li {
        border-bottom:2px solid white;
    }    
}

.nav_link {
    font-weight:400;
    padding-bottom:3px;
    font-size:20px;
}

#event_selector select {
    font-size: 20px;
}

@media (max-width:1149px) {
    #mobile_bottom, #nav_links {
        flex-direction:column;
    }
    .nav_link, #event_selector {
        margin-bottom:5px;
    }
    #event_selector {
        padding-top:10px;
    }
}

section {
    flex:1;
    display:flex;
}

/*Fonts*/

.RRPublish {
    font-family: 'Ubuntu', sans-serif;
    font-weight: 400;
}

.divDetails {
    font-family: 'Ubuntu', sans-serif;
}

/*Colors*/
.RRPublish > div.SelectorParent > div.SelectorMenu > div > div:nth-child(1) {
    background-color:#E3E3E3 !important;
    color:black !important;
}

/*RACE RESULT Integration*/
#raceresult_integration {
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content: flex-start;
    align-items:center;
}

#divRRPublish {
    width:100%;
    max-width:1150px;
}

/* RACE RESULT Corrections */
.RRPublish div.ListHeaderFooter {
    max-width: none !important;
}

.RRPublish .Loading
{
    background-image:url('img/loading.svg') !important;
    background-repeat:no-repeat !important;
}

.RRPublish > div.SelectorParent > div.Selector > div > select {
    font-weight:300 !important;
}

/* Hide search, favourites, and hidden fields on mobile*/

.RRPublish div.ListControl {
    display:none;
}


.RRPublish .MainDiv table tr td:last-child {
    display:none;
}

.listGrouping {
    display:table-cell !important;
}

.RRPublish table.hasBrokeCols > tbody > tr.brokeCols, .RRPublish table.hasBrokeCols > tbody > tr.brokeColsButtons > td {
    display:none;
}

.RRPublish table.hasBrokeCols > tbody > tr.open, .RRPublish table.hasBrokeCols > tbody > tr.open:hover {
    background-color:white !important;
}


.RRPublish table.hasBrokeCols > tbody > tr.open > td {
    border-bottom:#ddd 1px solid !important;
}

/*Hide social network buttons */
.divDetailsInner .divDetailsSocial {
    display:none;
}

/* Hide default RACE RESULT branding */
.RRPublish div.MainDiv + div {
    display: none !important;
  }

.RRPublish div.MainDiv + div div {
display: none !important;
background-image:none !important;
}

/* Add custom branding */

#timer_footer {
    width:100%;
    height:50px;
    background-color:#E3E3E3;
    display:flex;
    align-items: center;
    justify-content: center;
}

.timer_footer_logo {
    width:100px;
}

#timer_logo {
    height:40px;
    background: url("img/timer.png");
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
}

#rr_logo {
    height:15px;
    background: url("img/raceresult.png");
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
}

/* Racemap */

#racemap_integration {
    flex:1;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content:center;
    width:100%;
}

#map_frame {
    width:100%;
    flex:1;
}


