/* Copyright (c) Janne Edelman <janne.edelman@gmail.com> */

@font-face {
    font-family: 'Exo';
    src: url('/css/Exo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('/css/Lato.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
  --radius: 2px;
  --baseFg: black;
  --baseBg: white;
  --accentFg: black; /*#006fc2;*/
  --accentBg: #EAFAF6;
  --accentHg: #68b89f;
  --disabledBg: #999999;
  --disabledFg: var(--accentBg);
  --barFg: #eeeeee;
  --barBg: #289A76;
  --listBg1: white;
  --listBg2: #EAFAF6;
  --invalidBg1: #ffdddd;
  --invalidBg2: #ffffaa;
  --formTipFg: #777777;
  --inputBorder: #aaaaaa;
  --focusBorder: var(--barBg);
  --buttonShadow: #999999;
  --mobileSize: 600px;
  --secondFg: #555555;
  --sitewidth: 1000px;
}

* {
    box-sizing: border-box;
    z-index: 0;
}

html, body {
    //font-family: Lato, Helvetica, Arial, sans-serif;
    font-family: Lato, sans-serif;
    font-size: 1em;
    font-weight: 400;
}

@media only screen and (max-width: 600px) {
    html, body {
	//font-size: 14px;
    }
}


#container {
    top: 0;
    left: 0;
    margin: auto;
    width: 100%;
    max-width: var(--sitewidth);
    height: auto;
    /*position: absolute;*/
    display: block;
}

#site-logo {
    /*background: url(/img/banner.jpg) no-repeat top left;
    background-size: cover;*/
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    max-width: var(--sitewidth);
    height: auto;
    max-height: 110px;
    border-bottom-color: var(--barBg);
    border-bottom-width: 1px;
    border-bottom-style: solid;
    padding-bottom: 10px;
}

#content:after {
    content: "";
    clear: both;
    display: table;
}

#mobilemenu {
    width: 35px;
    height: 33px;
    position: absolute;
    top: 1px;
    right: 5px;
    padding: 3px 4px;
    border-radius: 5px;
    border-color: var(--barFg);
    border-width: 2px;
    border-style: solid;
    background-color: var(--barBg);
    display: none;
    flex-wrap: wrap;
    align-items: center;
}

.mm-bar1, .mm-bar2, .mm-bar3 {
    width: 100%;
    height: 3px;
    background-color: var(--barFg);
    transition: 0.2s;
}

/* MENUS */
.menus {
    float: right;
    display: flex;
    width: calc(100% - 170px); //calc(var(--sitewidth) - 170px);
    min-height: 60px;
    flex-wrap: wrap;
}

/* SITE-MENU */
.site-menu {
    /*background: #99BEF2;
    background-image: linear-gradient(to bottom, rgba(153,190,242,1), rgba(153,190,242,0));*/
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 0px;
    padding-bottom: 6px;
    width: calc(100% - 170px); //calc(var(--sitewidth) - 170px);
    min-height: 45px;
    height: 45px;
    /*float: right;*/
    display: flex;
    justify-content: center;
}

.site-menu a, .site-menu span {
    //border-color: var(--barBg);
    //border-left-width: 6px;
    //border-left-style: solid;
    //border-bottom-width: 1px;
    //border-bottom-style: solid;
    //color: black;
    color: rgb(0,0,0,0.55);
    //font-size: 1.2em;
    font-weight: 400;
    display: block;
    padding: 8px 5px 8px 5px;
    margin-top: 2px;
    margin-bottom: 2px;
    margin-left: 2px;
    margin-right: 6px;
    text-decoration: none;
    line-height: 100%;
    text-transform: uppercase;
}

.site-menu a:hover {
    /*background-color: rgba(32,77,148,0.5);
    color: #CCEEFA;*/
    color: rgb(45, 48, 51);
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.site-menu a:hover:before, .site-menu a.active:before, .site-menu a.activedummy:before {
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    position: relative;
    top: -4px;
    left: 0;
    height: 2px;
    content: "";
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    display: block;
    margin-bottom: -2px;
}

.site-menu a.activedummy {
    /*background-color: var(--barBg);
    color: white;*/
    color: rgb(45, 48, 51);
    pointer-events: none;
    //padding: 4px 5px 4px 5px;
    //margin-left: 10px;
}

.site-menu a.active {
    //background-color: var(--barBg);
    //color: white;
    color: rgb(45, 48, 51);
    pointer-events: none;
}
/* Sub-MENU */
.sub-menu {
    /*background: #99BEF2;
    background-image: linear-gradient(to bottom, rgba(153,190,242,1), rgba(153,190,242,0));*/
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 0px;
    padding-bottom: 0px;
    width: calc(var(--sitewidth) - 170px);
    min-height: 40px;
    height: 40px;
    /*float: right;*/
    display: flex;
    justify-content: center;
    border-top: 1px solid #C0C0C0;
}

.sub-menu a {
    //border-color: var(--barBg);
    //border-left-width: 6px;
    //border-left-style: solid;
    //border-bottom-width: 1px;
    //border-bottom-style: solid;
    //color: #0B2B5C;
    color: rgb(0,0,0,0.55);
    //font-size: 1.2em;
    font-weight: 400;
    //display: block;
    padding: 8px 5px 8px 5px;
    margin-top: 2px;
    margin-bottom: 2px;
    margin-left: 2px;
    margin-right: 6px;
    text-decoration: none;
    line-height: 100%;
    text-transform: uppercase;
}

.sub-menu a:hover {
    /*background-color: rgba(32,77,148,0.5);
    color: #CCEEFA;*/
    color: rgb(45, 48, 51);
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.sub-menu a:hover:before, .sub-menu a.active:before  {
    width: 100%;
    background-color: rgba(0,0,0,0.8);
    position: relative;
    bottom: -20px;
    left: 0;
    height: 2px;
    content: "";
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    display: block;
    margin-bottom: -2px;
}

.sub-menu a.activedummy {
    /*background-color: var(--barBg);
    color: white;*/
    color: rgb(45, 48, 51);
    pointer-events: none;
    padding: 4px 5px 4px 5px;
    margin-left: 10px;
}

.sub-menu a.active {
    //background-color: var(--barBg);
    //color: white;
    color: rgb(45, 48, 51);
    pointer-events: none;
}

/* SITE-CONTENT */
#site-content {
    width: 100%;
    //max-width: 620px;
    min-height: 300px;
    float: left;
    padding-top: 10px;
    padding-left: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
}

h3 {
    display: block;
    font-size: 1.2em;
    margin-block-start: 10px;
    margin-block-end: 10px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: 700;
}

p:first-child{
    margin-block-start: 0;
}

p:last-child{
    margin-block-end: 0;
}

#footer {
    position: relative;
    width: 100%;
    max-width: var(--sitewidth);
    height: 10px;
    top: 0;
    left: 0;
    margin-top: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
    border-top-color: var(--barBg);
    border-top-width: 1px;
    border-top-style: solid;
    font-size: 12px;
    text-align: center;
}

.athlete {
    height: 24px;
}

tr.athlete td {
    padding-left: 0px;
    padding-right: 0px;
    border-top-color: var(--accentBg);
    border-top-width: 1px;
    border-top-style: solid;
}

.trigger {
    width: 20;
    text-align: center;
    //font-weight: bold;
    margin-left: 5px;
}

.active, .athlete:hover {
    background-color: var(--listBg2);
}

.results {
    display: none;
    border-bottom-color: var(--listBg2);
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.contact td {
}

.a0 {
    width: 230px;
    text-align: right;
}

.a1 {
    width: 30px;
    text-align: right;
}

.a2 {
    width: 200px;
    text-align: left;
}

.a3 {
    width: 80px;
    text-align: left;
}

.a4 {
    width: 30px;
    text-align: center;
}

.a5 {
    width: 60px;
    text-align: center;
}    


.a6 {
    width: 60px;
    text-align: center;
}

.c1 {
    width: 230px;
    padding-left: 20px;
}

.c2 {
    width: 218px;
}

.c3 {
    width: 112px;
}

.left {
    text-align: left;
} 

.right {
    text-align: right;
} 



@media only screen and (max-width: 799px) {
    #mobilemenu {
	display: flex;
    }

    .change .mm-bar1 {
	-webkit-transform: rotate(-45deg) translate(-6px, 6px);
	transform: rotate(-45deg) translate(-6px, 6px);
    }

    .change .mm-bar2 {
	opacity: 0;
    }

    .change .mm-bar3 {
	-webkit-transform: rotate(45deg) translate(-8px, -8px);
	transform: rotate(45deg) translate(-5px, -5px);
    }    

    .menus {
	float: right;
	display: flex;
	width: 100vw;
	min-height: 1px;
	flex-wrap: wrap;
    }
    
    .site-menu {
	text-align: center;
        background: var(--accentBg);
	display: none;
	width: 100vw;
	max-width: 100vw;
	height: auto;
	min-height: 50px;
	padding-top: 12px;
	margin-top: 12px;
	margin-left: 6px;
	float: left;
    }

    .site-menu a, .site-menu span {
	display: block;
    }

    .site-menu a:hover:before, .site-menu a.active:before, .site-menu a.activedummy:before {
	display: none;
    }    

    .site-menu a:hover {
	background: var(--barBg);
	color: var(--barFg);
    }

    .site-menu a.active, .site-menu a.activedummy {
	background: var(--accentHg);
	color: var(--barFg);
    }

    .block-active {
	display: block;
    }

    #site-content {
	width: 100%;
    }
}

@media only screen and (min-width: 810px) {
    #site-content {
	padding-right: 0px;
    }
}

.code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 300;
    padding: 10px 20px 10px 20px;
    display: block;
}
