
@import "module/base.css";
@import "module/modificators.css";


body{
    height: initial !important;
    color: var(--black);
    font-size: 14px;
}
body:before{
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60em;
    height: 60em;
    background: url(../images/crest_back.svg) no-repeat;
    background-position-x: 33vw;
    background-position-y: bottom;
    background-size: contain;
    opacity: 0.15;
}
body,[team], body > section, [item],[wide]{
    width:100%;
}

body > section > article, body > header > article{
    display: inline-flex;
}




#recomendation{
    margin: 1em 0 3em;
    color:var(--black);
    font-weight: bold;
}
#recomendation > *, nav div > label{
    margin: 0 1.5em;
    text-shadow: 1px 1px white, -1px -1px white, 1px -1px white, -1px 1px white;
}

[birth] [player],
[content1] [videos] .video:not(:first-of-type):not(:last-of-type){
    margin: 1em 0;
}
#recomendation [tag]{
    padding: .3em 0;
    color:var(--ra);
    font-size: 20px;
    background: none;
}


#slider{
    height:32em;
    border-bottom-width: 2em;
}
#slider > div{
    height:100%;
}
.slide{
    opacity: 0;
    height: 0;
    transition: all linear .21s;
}
.slide[active]{
    opacity: 1;
    height: 100%;
}

.slide[p] figure{
    padding: 1em;
    overflow: auto;
}
.slide[p] table caption, .slide[p] table caption a, .slide[p] table th{
    text-align: center;
    text-decoration: none !important;
}

[slide-left], [slide-right]{
    bottom:0%;
    font-size: 5em;
    position: absolute;
    z-index: 2;
    font-weight: bold;
}
[slide-left]{
    left:-1em;
}
[slide-right]{
    right:-1em;
}
.slide table{
    display: inline-table;
    background: white;
    width: 100%;
    left: 0;
    height: 76%;
    text-align: center;
}
.slide figure{
    width: 55em;
    max-width: 90vw;
    height: 100%;
    overflow: hidden;
    /*background: var(--black);*/
    /*box-shadow: -1px -1px 1px var(--black);*/
    /*border: 1px solid black;*/
}

.slide figure > img
{
    position: absolute;
    left:0;
    top:0;
    width: 100%;
    min-height: 100%;
    object-fit: cover;
}
.slide [tags]{
    display: inline-block;
    padding: 2em 1em 0;
}
.slide:not([active]) [tags]{
    display: none !important;
}
.slide [tags] [tag]{
    text-decoration: none !important;
    border:1px solid var(--black);
}
[watch]{
    background:linear-gradient(
            -75deg,
            transparent 10%,
            var(--or) 10.1%,
            var(--or) 89.9%,
            transparent 90%
        );
    color: var(--black);
    font-weight: bolder;
    text-transform: lowercase;
    padding: .7em 1.2em;
    margin: 1em 0 0;
    text-decoration: none;
    display: inline-block;
    transition: all .1s linear;
}
[watch]:hover{
    padding: .7em 5em;
}
.slide > figure > [abs]{
    top:-.5em;
    bottom: -.5em;
    right: -.5em;
    color:white;
    font-size: 1.2em;
    transition: all ease 1s;
}

.slide > figure > [abs]:before{
    position: absolute;
    top:0;
    right:0;
    bottom: 0;
    content: '';
    width: 40em;
    opacity: .99;
    background:
            linear-gradient(
                    -75deg,
                    rgba(30,0,70,0.7) 50.4%,
                    rgba(40,0,123,0.5) 59.3%,
                    var(--ra) 59.4%,
                    var(--ra) 59.9%,
                    transparent 60%
            );
    transition: all ease 1s;
}
.slide > figure:hover > [abs]{
    padding-right: 2em ;
}
.slide > figure:hover > [abs]:before{
    width: 50em;
    opacity: 1;
}
.slide > figure > [abs] > div{

    padding: 0 4em;
    right: 0;
    z-index: 2;

}
.slide > figure > [abs]  h4{
    font-size: 1.4em;
    text-align: right;
    text-shadow:
    2px 2px 2px var(--black),
    2px -2px 2px var(--black),
    -2px 2px 2px var(--black),
    -2px -2px 2px var(--black);
}
.slide > figure > [abs] [text]{
    width: 20em;
    text-align: left;
    display: inline-block;
    padding: 1em;
}
.slide > figure > [abs] *{
    color:var(--white) !important;
}

[rosinante]{
    height: 40vh;
    max-height: 1000px;
    background: var(--black);
}
[rosinante]:before{
    opacity: 1;
}

/*
    Chemps
*/

[chemps]{
    perspective: 400px;
    z-index: 3;
}
[chemps] > figure{
    transition: all linear .37s;
    transform: rotate3d(0, 1, 0, -7deg);
    background: var(--black);
    margin: .75em;
    width:14em;
    height: 7em;
    font-weight: bold;
    border: 1px solid var(--gray);
}


[chemps] > figure > a{
    transition: all linear .37s;
    overflow: hidden;
    box-shadow: 8px -8px 0 rgba(0,10,100,0.3);
}
[chemps] img{
    width:100%;
    z-index: 5;
    opacity: .5;
}
[chemps] span{
    z-index: 6;
    font-size: 1.2em;
}
[chemps] > figure[active] {
    margin-left:-.5em;
    transform: rotate3d(0, 1, 0, -7deg) scale(1.1);
}
[chemps] > figure[active]:after{
    content:"";
    display: block;
    width:3em;
    height:3em;
    position: absolute;
    top:0;
    right:0;
    cursor: pointer;
    background: url(../images/icons/close.svg) no-repeat center;
    background-size: 2em;
    z-index: 100;
}

[chemps] > figure[active] img {
    display: none;
}
[chemps] > figure[active] a, [chemps] > figure[active] a{
    background-color: white;
    box-shadow: none;
    border: 2px solid var(--gray);
}


[content-slider]{
    margin-top: -14em;
}



[item] [tags]{
    padding: .5em 0;
}
[item] [tags] [tag]{
    text-decoration: none;
    display: block;
    font-size: .7em;
    letter-spacing: 1px;
}

header{
    margin-top: 5em;
}
header h1{
    font-size: 4em;
}
header h1:after{
    position: absolute;
    width:100%;
    bottom:0;
    left:0;
    content:"";
}

body > nav{
    position: fixed;
    padding: .5em 0;
    top:0;
    color: var(--black);
    z-index: 100; transition: all ease 1s;
    /*background: linear-gradient(179.55deg, var(--black), transparent 57%);*/
}
/*
body > nav:not([fixed]) {
    top:4rem !important;
    background: white;
}*/
body > nav > div:first-of-type{
    height: 4em;
}

body > nav[fixed],body > nav:hover{
    top:0;
    left:0;
    right:0;
    margin-top:0;
    border-radius: 0 0 10% 10%;
    border-bottom: 2px solid var(--ra);
    background: white;
    color: inherit;

}
nav[fixed] + section{
    /*margin-top:5em;*/
}
nav[fixed] [logo]{
    height:6em;
}

nav [logo] {
    display: block;
    margin-top:-.5em;
}

nav [logo] img{
    height: 100%;
    opacity: 1;
    transition: opacity ease 2s;
}

nav:not([fixed]) [logo] > img:first-of-type{
    width:6em;
    height:auto;
    opacity: 1;
}

nav [logo] > img:last-of-type{
    width: 15em;
    height: 5em;
    margin: 0 3em;
    opacity: 1;
}
nav [logo] > img:first-of-type,
nav:not([fixed]) [logo] > img:last-of-type{
    width: 0;
    opacity: 0;
    margin: 0;
}


nav label >a{
    font-size: 1.2em;
    text-transform: uppercase;
}
nav label > a > img{
    height: 2.2em;
}
nav input + div{
    display: none;
    height: 0;
    max-width: 0;
    overflow: hidden;
    font-size: 1.2em;
    font-style: italic;
    transition:.2s height;
}
nav:hover :checked + div{
    height: 24em;
    max-width: 100%;
}
.nav-column-about {
    margin-top: 6em;
    margin-left: 2em;
}
.nav-column-about p{
    max-width: 15em;
}
.nav-column-about p a{
    justify-content: initial;
}
.nav-column-about p a:hover{
    color: var(--ra);
}


    [content]{
        color:var(--white);
        background-color: var(--black);
    }
    [content]::before, [content]::after, [rosinante]::before{
        position: absolute;
        left: 0;
        top:0;
        background-size: cover;
        width: 100%;
        height: 100%;
        content: '';
        z-index: 0;
    }
    [content]::before{
        background-image: url(../images/grayStad7.jpg);
    }
    [content]::before{
        opacity: 0.075;
    }
    [content]:not([simple])::after{
        background:
                linear-gradient(
                        -16deg,
                        var(--ra) 24.5%,
                        var(--white) 24.6%,
                        var(--white) 24.7%,
                        transparent 24.8%
                );
        background-size: cover;
    }
    [content] h3 a:before{
        position: absolute;
    }

    [content] > article{
        z-index: 1;
    }


    [news] [item]{
        padding: 1em 0 0;
        left:-2em;
        white-space: normal;
    }
    [news] [item] > [img]{
        width:9em;
        margin-right:1em;
        background: none;
        align-items: flex-start;
    }
    [news] [item] > [img] img{
        min-height: 100%;
        object-fit: cover;
    }
    [calendar] > article,
    [news] [item] > [img]{
        box-shadow: -8px -8px 0px var(--tblu);
    }
    [news] [item] > div,
    [news] [item] > [img]{
        height: 6em;
        text-shadow: 0 0 32px black;
        color: white;
    }

    [news] [title]{
        width: 14em;
        font-size: 1.4em;
        text-decoration: none;
        justify-content: center;
    }


    [calendar]{
        color:var(--black);
        text-shadow: none;
    }
    [calendar] > article{
        padding: 0 0 2em;
        background: white;
    }
    [calendar] [vs]{
        width:100%;
    }
    [vs] {
        padding: 0.1em 0;
        margin: .5em 0;
        perspective: 20em;
    }
    [vs][lite]:hover{
        cursor: pointer;
        text-shadow: 1px 1px 1px var(--blu);
    }
    [vs][big] time{
        font-size:2em;
    }
    [vs][big] time [hour], [vs][big] time [minute]{
        font-size: inherit;
    }
    [vs] > [shame]{
        opacity: 0;
        transition:all linear .1s;
        pointer-events: unset;
    }
    [vs]:hover > [shame]{
        opacity: 1;
        display: flex;
    }

    [vs][lite] [name]{
        width: 8em;
        white-space:nowrap !important;
        display: inline !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    [vs][lite] [name]:hover{
        white-space: initial !important;
        overflow: visible !important;
    }
    [vs][lite] time{
        margin-left: -2em;
        background-size: auto 100%;
        background-image: url(../images/flag.png);
        padding: .1em .2em;
        overflow: visible;
        color: white;
        font-weight: bold;
        transform: rotate3d(0, 1, 0, 75deg);
        border-radius: 0 .2em .3em 0;
    }
    [vs][lite] time [hour]{
        margin-left: .5em;
    }
    [vs][lite] time[ready]{
        background-image: url(../images/flag_ready.png);
    }

    [vs] [team] img {
        width: 100%;
        object-fit: cover;
    }
    [vs] [team] a{
        width:  2em;
        height: 2em;
    }
    [vs][big]::before{
        position: absolute;
        width: 100%;
        height: 100%;
        top:0;
        left: 0;
        content: '';
        background-image: url(../images/grayStad7.jpg);
        background-size: cover;
        z-index: 0;
    }
    [vs][big]::after{
        position: absolute;
        width: 100%;
        height: 100%;
        top:0;
        left: 0;
        content: '';
        z-index: 0;
        background: linear-gradient(-75deg, rgba(50, 30,200, .7) 40%, rgba(200,30,50,.6) 60%);
    }
    [vs][big] > *{
        z-index: 1;
    }
    [vs][big]{
        position: relative;
        height: 10em;
        color:white;
    }
    /*linear-gradient(-75deg, rgba(30, 20,100, .9) 40%, rgba(250,30,40,.6) 60%)*/
    [vs][big] [team]{
        flex-direction: column-reverse;
        align-items: center;
    }
    [vs][big] [team] img{
        width:4em;
        height: 4em;
    }
    [vs][big] [team] a {
        width: 4em;
        height: 5em;
    }
    [vs][big] [team] [name]{
        text-decoration: none;
        width: 100%;
    }
    [vs][big] [score]{
        visibility: hidden;
    }



    [content1]{
        padding: 8em 0;
    }
    [content1] [container]{
        max-width: 90%;
    }
    [content1] [container] h2:first-of-type{
        border-left: 3px solid var(--ra);
        padding-left: .5em;
    }
    [content1] [container] h2:first-of-type[doc-title]{
        border-left: 0;
        padding-left: 0;
        border-bottom: 3px solid var(--ra);
        padding-bottom: .5em;
    }

    [content1] [container] > div:first-child h2{
        margin: 0 0 1.5em;
        width: 15em;
    }
    [content1] [container] > div{
        display: inline-block;
    }
    [content1] [container] > [docs]{
        align-items: center;
        display: flex !important;
        flex-wrap: wrap;
    }

    [birth] article{
        display: flex;
        flex-wrap: wrap;
    }
    [birth] [player]{
        display: inline-flex;
        width: 20em;
        justify-content: center;
    }
    [birth] [player] [img]{
        border: 3px solid var(--gray);
        background: var(--white);
        margin-right:1em;
    }
    [birth] [player] [team],
    [birth] [player] [who]{
        display: inline;
        text-align: left;
        justify-content: flex-start;
        font-size: smaller;
    }
    [birth] [player] > div {
        display: inline-block;
    }

    [birth] [player] [name] {
        display: inline-block;
        text-decoration: unset;
        width:9em;
    }


    [content1] [videos]{
        position: relative;
        height: 35em;
        overflow: auto;
        direction: rtl;
    }
    [newslist] .video{
        display: inline-block;
    }
    [videos] .video{
        position: relative;
        width: 20em;
        height: 12em;
        overflow: hidden;
        cursor: pointer;
        border: 1px solid var(--gray);
    }
    [videos] .video > div{
        height: 100%;
        width: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
    [videos] .video > div > div{
        position: absolute;
        width:90%;
        bottom:0;
        left:0;
        margin: 5%;
        padding: .25em 0;
        background-color: white;
        transition: all linear .1s;
    }
    [videos] .video:hover > div > div{
        margin: 0;
        width:100%;
        height:100%;
        padding: 1em;
        font-weight: bold;
        display: flex;
        align-items:center;
        z-index: 0;
    }
    [videos] .video > div > svg{
        display: none;
    }
    [videos] .video:hover > div > svg{
        display: initial;
        position: absolute;
        right: -2em;
        z-index: 1;
        width: 50%;
    }
    [videos] .video iframe{
        width:100%;
        height: 100%;
    }

    [partners], [docs]{
        width: 60vw;
        overflow: hidden;
    }
    [partners]  div > a{
        display: inline-block;
        margin: 1em;
    }
    [partners] img{
        width: 100%;
        object-fit: contain;
    }
    [content1] [container] [partners] h2{
        border:none;
    }
    [partners] h2 + div
    {
        height: 35em;
        width: 100%;
    }
    [partners] h2 + div > div{
        padding: 3em 1em;
        border: 2px solid #ccc;
    }

footer{
    overflow: hidden;
}
footer *{
    color: inherit;
}


/*
    Modifications
*/


[ffv]{
    font-size:2em;
}

[more] a{
    border-radius:1.1em;
    background: var(--white);
    font-size: 2em;
    padding: 0 1.25em .75em;
    margin: 1em 0 2em;
    line-height: .75em;
    color:var(--black);
}
[more] a:hover{
    background: linear-gradient(to left, #e36, #36e);
    color:var(--white);
}

[cas]{
    padding: 0 1em;
}
[tip]{
    display: inline-block;
    width: 1.7em;
    height: 1.7em;
    margin: 1em .5em;
}

.tip{
    border: 3px solid var(--white);
    background: var(--black);
}
.tip.active{
    background: var(--ra);
}
img.tip{
    border:none;
}
img.tip.active{
    background: none;
    transform: scale(1.5);
}
img.tip{
    border-radius: 0;
}



[content] h3 a,
[img], [hotlink],
nav input + div > p,
body, body > *,
body > section > article,
#slider,
.slide figure,
[chemps] > figure,
[news] [item],
[news] [item] > div,
[calendar], [vs] [team],
[birth] [player] [img],
[hotlink],
nav input + div > p{
    position: relative;
}
.slide [abs] > div > p, [news], [birth] [player], [birth] [player] [who]{
    text-align: left;
}
