* {
    box-sizing:border-box;
    padding:0;
    margin:0;
    font-family: 'aktiv-grotesk', sans-serif;
    font-weight: 300;
}

*:focus
{
	outline: 0;
}

html
{
	width:100%;
	height:100%;
    margin:0;
    background-color: #f3f3f3;
}


body
{
	position: relative;
  	margin: 0;
    min-height: 100%;
    display:flex;
    flex-direction:column;
}

#event_header {
    width:100%;
    background-color:#000000;
    min-height:50px;
}

#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:50px;
    padding:10px;
}

#event_logo img {
    height:30px;
}

#burger_menu {
    height:50px;
    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:50px;
    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:#EFEFEF;
}

@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:16px;
}

#language_selector select {
    font-size: 16px;
}

@media (max-width:1149px) {
    #mobile_bottom, #nav_links {
        flex-direction:column;
    }
    .nav_link, #language_selector {
        margin-bottom:5px;
    }
    #language_selector {
        padding-top:10px;
    }
}

section, footer {
    flex:1;
    display:flex;
}

/*Fonts*/

.RRPublish {
    font-family: 'aktiv-grotesk', sans-serif;
    font-weight: 400;
}

.divDetails {
    font-family: 'aktiv-grotesk', 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, #divRRRegStart {
    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:700 !important;
}

.RRPublish > div.ListControl > div.ListControlSearch > input {
    height: 27px !important;
    background-image:url(https://www.timit.pro/events/graphics/icons/search.svg) !important;
    background-size:16px;
}

.RRPublish > div.ListControl > div.ListControlSearch > button.btnFavorites, .RRPublish div.NoFavorite, table.divDetailsParent div.NoFavorite, .RRPublish table:not(.hasBrokeCols) tr.Hover:not(.MultiLine) td:last-child {
    background-image:url(https://www.timit.pro/events/graphics/icons/favorite_greyoutline.svg) !important;
}
@media only screen and (min-width:641px) {
    .RRPublish table:not(.hasBrokeCols) tr.Hover:not(.MultiLine):hover td:last-child {
        background-image:url(https://www.timit.pro/events/graphics/icons/favorite_greenoutline.svg) !important;
    }
   }

.RRPublish > div.ListControl > div.ListControlSearch > button.btnFavorites.checked, .RRPublish table:not(.hasBrokeCols) tr.Favorite:not(.MultiLine):not(.brokeCols) td:last-child, .RRPublish table:not(.hasBrokeCols) tr.Favorite:not(.MultiLine):not(.brokeCols):hover td:last-child, .RRPublish div.Favorite, table.divDetailsParent div.Favorite {
    background-image:url(https://www.timit.pro/events/graphics/icons/favorite_greenfill.svg) !important;
}

div.RRLiveUpdate {
    background-image:url(https://www.timit.pro/events/graphics/icons/liveUpdate.svg) !important;
}

/*Hide social network buttons */
.divDetailsInner .divDetailsSocial {
    display:none;
}

/* Racemap */

#racemap_integration {
    flex:1;
    display:flex;
    flex-direction:column;
    align-items: center;
    justify-content:center;
    width:100%;
}

#map_frame {
    width:100%;
    flex:1;
}

#event_banner, #event_banner img {
    width:100%;
    max-width:1150px;
}

/* Event Selector */

.event_selector{width:1150px;text-align:left;margin:0 auto 0 auto}

@media only screen and (max-width:1152px)
    {
        .event_selector{width:99.5%}}
        div.search {
            margin:15px auto;
            text-align:center;
            position:relative;
            max-width:800px;
            display:flex;
            border:1px solid #ddd;
            background-color:#fff
        }
        div.search>input {
            padding:10px;
            font-size:1.4em;
            width:100%;
            box-shadow:none;
            border:0;
            outline:0;
            -webkit-appearance:none;
            -moz-appearance:none;
            appearance:none;
            background-color:transparent
        }
        
@media only screen and (max-width:680px) {
    div.search {
        padding:0;
        margin:15px 2%;
        width:96%;
    }
    div.search>input {
        font-size:1.2em;
    }
}
#divEventsMain {
    min-height:300px;
    background-color:#f9f9f9;
    padding-top:5px;
    font-family:'Open Sans',Arial,sans-serif
}
div.search>div.yearSelect {
    width:20%;
    min-width:100px;
    border-right:1px solid #eee;
    background-color:#fdfdfd;
    padding:0 0 0 30px;
    position:relative;
    background-image:url(https://timit.pro/events/graphics/icons/search.svg);
    background-size:16px;
    background-repeat:no-repeat;
    background-position:left 12px center;
    z-index:1;
    font-size:1.1em
}
div.search>div.yearSelect>select {
    width:100%;
    border:0;
    background-color:transparent;
    height:47px;
    cursor:pointer;
    text-align:center
}
div.search>input + div {
    background-image:url(https://timit.pro/events/graphics/icons/clear.svg);
    background-position:center;
    background-repeat:no-repeat;
    background-size:50% auto;
    position:absolute;
    height:20px;
    width:20px;
    top:50%;
    right:20px;
    margin-top:-10px;
}

/* Mobile App footer */
footer {
    display:flex;
    justify-content:center;
    align-items:center;
}

#mobile_app_footer {
    margin-top:20px;
    width:100%;
    max-width:1150px;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction: column;
}
#mobile_app_footer p {
    width:100%;
    text-align:center
}
#mobile_app_footer a {
    color:#4F4F4F;
    text-decoration:underline;
}

#mobile_app_badges {
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.app_badge img {
    height:50px;
}
.app_badge {
    padding:20px;
}

/* Presenter Links */
#presenter_buttons {
    display:flex;
    width:100%;
    height:100%;
    flex:1;
    flex-direction:column;
    align-items:center;
    justify-content:space-evenly;
}

a.presenter_button {
    width:250px;
    padding:20px;
    color:white;
    background-color:black;
    text-decoration:none;
    display:flex;
    align-items:center;
    justify-content:center;
}


