/*
 * page_athletes.css
*/


/* ------------------- */
/* TITLE + SPORTS TITLE */

#page .left_panel,
#page .right_panel {
    position: relative;
    display: inline-block;
    vertical-align: bottom;
    width: 50%;
    overflow: hidden;
    text-align: left;
}

#page .right_panel {
    text-align: right;
}

#page .title h1 {
    padding: 0;
    margin: 0;   
}

#page h2.filter_title {
    position: relative;
    display: block; 
    margin: .5em 0 .8em 0;
    font-size: 2.7em;
}

#page h2.filter_title i {
    font-size: .5em;
    vertical-align: middle;
    margin: 0 .5em .4em .5em;
}

#page h2.filter_title span {
    color: var(--color-link);
    font-weight: normal;
    cursor: pointer;
}

#page .sport_intro {
    position: relative;
    display: block;
    margin: 0 0 3.2em 0;
}



/* ------------------- */
/* FILTER */

#page .filterbox {
    position: relative;
	display: inline-block;
    margin: 0 0 .7em 0;
    padding: 0;
    text-align: right;
    box-sizing: border-box;
}

#page .filterbox > label { /* the label for the entire filter */
    position: relative;
	display: inline-block;
    margin: 0 1em 0 0;
    padding: 0;
    color: var(--color-link);
    font-size: 1em;
    font-weight: normal;
    text-transform: uppercase;
}

.filterbox .radiobuttons {
    position: relative;
	display: inline-flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
    border-radius: .2em;
    overflow: hidden;
}

.filterbox .radiobuttons .radio { /* these are the actual buttons */
    position: relative;
	display: block;
    margin: 0;
    padding: .9em 1em .9em 1em;
    font-size: .7rem;
    line-height: 1em;
    font-weight: bold;
    color: var(--color-link);
    text-align: center;
    text-transform: uppercase;
    box-sizing: border-box;
    cursor: pointer;
    background: var(--color-light);
    border: none;
    border-left: solid 1px #fff;
}

.filterbox .radiobuttons .radio:first-child {
    border-left: none;
}

.filterbox .radiobuttons .radio.current {
    color: #fff;
    background: var(--color-link);
}

.filterbox .radiobuttons .radio[data-value="latest"].current {
    pointer-events: none;
}



/* ------------------- */
/* SPORTS SELECTOR */

#sports_select {
    position: relative;
    display: block;
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0 2em 0 2em;
    background: var(--color-light);
    border-radius: .2em;
    overflow: hidden;
    transition: margin .5s ease, opacity .5s ease, max-height .5s ease;
    box-sizing: border-box;
}

#sports_select.open {
    max-height: 150vh;
    opacity: 1;
    margin: 1em 0 2em 0;
}

#sports_select h2 {
    margin: 1.1em 0 1.1em 0;
    font-size: 2.7em;
    text-align: center;
    color: var(--color-link);
}

#sports_select .panel {
    position: relative;
    display: block;
    column-count: 4;
    column-fill: balance;
    column-gap: 1.5em;
    margin: 0 0 3em 0;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
}

#sports_select .item {
    position: relative;
    display: block;
    vertical-align: top;
    padding: 0 0 0 0;
    font-size: 1.6em;
    line-height: 1.4em;
    margin: 0 0 1em 0;
    color: var(--color-text);
    background: none;
    box-sizing: border-box;
    text-transform: capitalize;
}

#sports_select .item:hover {
    color: var(--color-link);
}

#sports_select .item.current {
    color: var(--color-link);
    font-weight: bold;
    pointer-events: none;
}


@media screen and (max-width: 900px){
    
    #sports_select .panel {
        column-count: 3;
    }
}



/* ------------------- */
/* LIST */

#FCSL {
    position: relative;
    display: block;
}

#FCSL .item {
    position: relative;
    display: block;
    margin: 0 0 3em 0;
    text-decoration: none;
    color: inherit;
}

#FCSL .item .image {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding: 70% 0 0 0;
    margin: 0;
    overflow: hidden;
}

#FCSL .item .image div {
    position: absolute;
    display: block;
    top: 0; right: 0; bottom: 0; left: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background-size: cover !important;
    background-color: #eee !important;
    transition: filter 1s ease, transform 1s ease;
    transform: translate3d(0, 0, 0);
}

#FCSL .item:hover .image div {
    transform: perspective(100px) translate3d(0, 0, 5px);
    filter: brightness(1.2);
}

#FCSL .item .text {
    position: relative;
    display: block;
    text-align: left;
    color: inherit;
    box-sizing: border-box;
}

#FCSL .item .text h2 {
    position: relative;
    display: inline-block;
    width: auto;
    max-width: calc( 100% - 2em);
    margin: -3em 0 .5em 0;
    padding: .8em 0 0 0;
    font-size: 1em;
    line-height: 1em;
}

#FCSL .item .text h2 .title {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    font-size: 3.6em;
    line-height: 1.2em;
    margin: 0 .3em 0 0;
}

#FCSL .item .text h2 .type {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    margin: 0 .5em 0 0;
    font-size: 1.8em;
    line-height: 1.6em;
    color: var(--color-link);
}

/* athlete type icon */

#FCSL .item .text h2 .icon {
    position: relative;
    display: inline;
    width: 1em;
    height: .9em;
    margin: 0 0 0 .1em;
    filter: var(--filter-green);
}

/* triangle shape after heading */

#FCSL .item .text h2:after {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    right: -2em;
    width: 0;
    height: 0;
    border-bottom: 3em solid #fff;
    border-right: 3em solid transparent;
}

/* rectangle before heading to continue the white of the heading on the left hand side */

#FCSL .item .text h2:before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    right: 1em;
    width: 100vw;
    height: 3em;
    background: #fff;
}

