@font-face {
    font-family: Arcadepi;
    src: url(https://confugiradores.es/resources/fonts/Arcadepix.ttf);
}
*{
    font-family: Arcadepi;
    cursor: default;
    color: var(--foreground);
    text-shadow: 2px 2px var(--dot3);
}
html,body{
    scroll-behavior: smooth; 
}
body{
    margin: 0;
    min-height: 100vh;
    background-color: var(--background);
    background-image: url(https://confugiradores.es/resources/images/loading.gif);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-size: 25%;
    transition: background .7s, opacity .5s;
}
a>*:hover,.collapse:hover,code:hover,.collapsable:hover{
    cursor: pointer;
}
nav{
    position: sticky;
    min-height: 50px;
    background-color: var(--main);
    padding: 10px;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 5px 10px var(--headerShadow);
    transition: box-shadow .5s .2s;
}
#navMenu{
    display: flex;
    flex-direction: row;
    flex: 100%;
    max-height: 0px;
    overflow: hidden;
    transition: max-height .5s, padding .5s .2s, margin-bottom .5s .2s;
}
#menuContent{
    text-transform: capitalize;
    flex: 1;
}
#menuSocial{
    width: 70px;
    margin: 0 20px 0 5vw ;
    display: flex;
    flex-direction: column;
}
#menuSocial img{
    height: 40px;
    filter: drop-shadow(2px 2px var(--dot3));
    transition: transform .4s, filter .2s;
}
#menuSocial a{
    align-self: center;
    margin-bottom: 10px;
    display: inline-block;
}
#menuContent a{
    position: relative;
    display: block;
    text-decoration: none;
    font-size: 4rem;
    height: 4rem;
    padding: 5px 0px;
    left: 0;
    transition: left .5s, color .3s, text-shadow .3s;
}
#menuContent div{
    position: relative;
    left: 7vw;
    width: 90%;
}
#menuContent>div a{
    font-size: 2.5rem;
    height: 2.5rem;
}
#menuContent a:hover, .collapse:hover{
    left: 2vw;
    color: var(--foregroundClick);
    text-shadow: 4px 4px var(--dot3);
}
#menuSocial img:hover{
    transform: scale(.8);
    filter: drop-shadow(4px 4px var(--dot3));
}
nav.open #navMenu{
    padding: 20px 0 0 5vw;
    margin-bottom: 2vh;
    transition: max-height .8s, padding .5s, margin-bottom .5s;
    max-height: 80vh;
}
nav.open{
    box-shadow: 0px 0px 100vh 100vh var(--dot5);
    transition: box-shadow 1s;
}
#navLogo{
    width: fit-content;
    flex: 3;
}
#navLogo img{
    height: 48px;
    margin-left: 10px;
    filter: drop-shadow(4px 4px var(--dot3));
}
#navAccess{
    margin-left: 4vw;
    right: 10px;
    position: relative;
    display: flex;
    align-items: center;
}
#navAccess img{
    margin: 0 10px;
    height: 32px;
    filter: drop-shadow(0px 0px 3px var(--dot5));
}
#navAccess>*{
    padding: 10px;
}
#navAccess span{
    align-self: center;
}
main{
    margin: 40px auto 0 auto;
    position: relative;
    min-height: calc(100vh - 135px - 1rem);
    margin-bottom: 15px;
}
a.interactive > p{
    margin-top: 0;
    font-size: 1.3rem;
}
a.interactive:hover > p, a.interactive:hover{
    color: var(--accentHover);
}
a.interactive:hover > img{
    filter: drop-shadow(5px 5px var(--dot5));
}
.card:first-of-type{
    margin-top: 0;
}
.card{
    background-color: var(--main);
    padding: 10px 20px 40px 20px;
    margin: 50px auto;
    max-width: 870px;
    min-width: 375px;
    z-index: 3;
    box-shadow: 0px 0px 20px var(--dot2);
    transition: .3s max-width, .5s background-color;
    position: relative;
    border-radius: 5px;
    scroll-margin-top: 80px;
}
.card img:not(h3>img){
    height: 64px;
    margin: 12px 0;
    position: relative;
    vertical-align: middle;
    filter: drop-shadow(3px 3px var(--dot5));
    transition: .2s filter;
}
.card>img.full{
    height: auto;
    width: 100%;
}
h1.centered,h2.centered,h3.centered{
    width: 100%;
    text-align: center;
}
.card>img.centered{
    height: auto;
    width: 50%;
    margin: 10px auto 20px auto;
}
.card>img.centered-small{
    height: auto;
    width: 25%;
    margin: 5px auto 10px auto;
    display: block;
}
.card h1{
    vertical-align: middle;
    display: inline-block;
    margin: 20px 0 0 12px;
    text-shadow: 3px 3px rgba(0,0,0,.3);
}
.card>h2,.card>h1:not(:first-of-type),.card>h3,.card>h4{
    margin: 30px 0 0 0;
}
.centered{
    position: relative;
    display: flex;
    width: fit-content;
    flex-direction: column;
    margin: 0 auto;
}
.centered>*{
    align-self: center;
}
.sections{
    display: flex;
    overflow-x: auto;
    padding: 0px 20px 20px 0;
}
.section{
    flex-shrink: 0;
    margin: 0 20px 0 0;
    padding: 20px;
    width: 315px;
    background-color: rgba(0,0,0,.2);
    box-shadow: 10px 10px var(--dot5);
}
.section>h2{
    margin: 2px;
}
.section>h3.small{
    font-size: .8rem;
    margin: 0px;
}
.mods{
    display: flex;
    flex-wrap: wrap;
    transition: .2s max-height;
    max-height: 0;
    overflow: hidden;
}
.mods>span{
    margin: 2px 15px;
}
.section .files{
    display: flex;
    flex-wrap: wrap;
}
.section .files>a,.section .mods>a{
    color: var(--foreground);
    text-decoration: none;
    cursor: pointer;
    transition: .1s color;
}
.section .files>a{
    background-color: var(--accent);
    display: inline-block;
    width: fit-content;
    padding: 5px 10px;
    margin: 10px;
    box-shadow: 5px 5px var(--dot5);
    transition: .1s box-shadow, .2s background-color;
}
.section h4,.section h3{
    margin: 10px 0 0 0;
    transition: .1s color;
}
.section h3 img{
    height:.7rem;
    margin-left:3px;
}
.section h4:first-of-type:hover,.section h3:hover,.section .mods>a:hover,#navAccess *:hover,a:hover, #navMenu>div:last-of-type img:hover{
    color: var(--foregroundHover);
    cursor: pointer;
}
.section h3:active,.section h4:first-of-type:active,.section .mods>a:active{
    color: var(--foregroundActive);
}
.showText{
    transition: 1s max-height;
    max-height: 400px;
}
.section .files>a:hover{
    box-shadow: 2px 2px var(--dot5);
    background-color: var(--accentHover);
}
.section .files>a:active{
    background-color: var(--accentActive);
}
.hsubs{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    min-width: 80%;
}
.hsubs>div{
    flex-basis: 100%;
    flex-grow: 1;
}
.hsubs>div>h1,.hsubs>div>h2,.hsubs>div>h3{
    white-space: nowrap;
}
.section>.hsubs>div>img{
    display: block;
    margin: 10px auto 0 auto;
}
.hsubs.centered{
    text-align: center;
}
.hsubs>div:first-of-type{
    padding-right: 20px;
}
.hsubs>div:not(:first-of-type){
    border-left: 2px solid var(--foreground);
}
#tsparticles canvas {
    display: block;
    transform: scale(1);
    opacity: 1;
    -webkit-transition: opacity .8s ease, -webkit-transform 1.4s ease;
    transition: opacity .8s ease, transform 1.4s ease
}

#tsparticles {
    width: 100%;
    /* height: 100%; */
    position: fixed;
    z-index: 0;
}
p[data-msg]{
    line-height: 1.2rem;
    transition: opacity .1s;
    font-size: 1.2rem;
}
*[data-msg],#scrollIndicator>li{
    transition: opacity .1s;
}
.textTransition{
    opacity: 0;
}
.disabled{
    filter: brightness(.7);
    color: var(--foregroundClick);
}
#scrollIndicator {
    margin: 0;
    list-style: none;
    position: fixed;
    width: 15%;
    height: 77vh;
    right: 5%;
    top: 130px;
    transition: opacity .3s;
    z-index: 10;
    padding: 10px 5px;
    font-size: .8rem;
}

#scrollIndicator li {
    position: relative;
    padding: 0 10px 5px 40px;
}
#scrollIndicator li a{
    word-wrap: break-word;
    display: inline-block;
    width: 100%;
    text-decoration: none;
}

#scrollIndicator li:after {
    content: "";
    position: absolute;
    background: var(--foreground);
    transition: background .3s;
    width: 1rem;
    height: 1rem;
    left: 6px;
    top: 1px;
    border-radius: 50%;
    margin-bottom: 10px;
}

#scrollIndicator li:before {
    content: "";
    position: absolute;
    height: 100%;
    width: 20px;
    left: 10px;
    top: 2px;
    background-image: linear-gradient(to right, var(--foreground) 12.5%, rgba(255, 255, 255, 0) 25%);
    background-position: top, right, bottom, left;
    background-size: 15px 15px;
    background-repeat: repeat-y;
}

#scrollIndicator li:last-of-type:before {
    display: none;
}

#scrollIndicator li.active:after {
    background: var(--accentHover);
}
.collapse{
    position: relative;
    left: 1vw;
    transition: .2s;
}
.collapsable{
    transition: max-height .2s, padding .2s;
    padding: 0px 10px 0px 2vw;
    overflow: hidden;
}
.collapsable p{
    margin: 5px 0px;
}
footer{
    text-align: center;
    position: relative;
    bottom: 10px;
}
code{
    padding: 10px;
    display: inline-block;
    max-width: 95%;
    font-size:.7rem;
    overflow-x: auto;
    background: var(--dot2);
    box-shadow: 5px 5px var(--dot5);
    text-wrap: nowrap;
    text-shadow: none;
}

@media screen and (max-width: 1550px){
    #scrollIndicator{
        background-color: var(--dot5);
        right: 0;
        top: 0;
        padding-bottom: 25vh;
        padding-top: 120px;
        width: 35%;
        font-size: .75;
    }
}

@media screen and (max-width: 525px) {
    #menuContent>a{
        font-size: 3.5rem;
        height: 3.5rem;
    }
    #menuContent>div>a{
        font-size: 2.3rem;
        height: 2.3rem;
    }
    #menuSocial{
        margin: 0px;
    }
    .section h3.small{
        font-size: .7rem;
        display: flex;
    }
    .section h3 img{
        display: none;/*TODO fix*/
    }
    .section>p{
        font-size:.8rem;
    }
    .sections>p{
        background-color: var(--main);
        padding: 25px;
        width: 200px;
        min-height: 75px;
        margin: 0 auto;
        font-size: .9rem;
        border-radius: 4px;
    }
    p[data-msg],.sections,.section{
        border-radius: 2px;
    }
    .section.noBG{
        background-color: var(--dot2Phone);
        box-shadow: none;
    }
    .section *{
        color: var(--foreground2);
        text-shadow: none;
    }
    .card>img.full{
        height: auto;
        width: 100%;
    }
    .card>img.centered-small{
        width: 50%;
    }
    .card{
      padding: 10px 15px 40px 15px;
      min-width: 300px;
    }
    .card>ul{
        padding: 0;
    }
    .section{
        padding: 10px;
    }
    #scrollIndicator{
        width: 45%;
    }
}
