@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

:root{
    --nav-height : 64px;
}

.h2, h2 {
    font-size: 3rem !important;
    background-color: var(--background-color);
}

.limon {
    font-size: 2rem;
    padding: 2rem;
    margin-left: 0.7rem;
}
.limon2 {
    font-size: 2rem;
    padding: 0rem;
    margin-left: 0rem;
}
.fondo1 {
    background-image: url("/media/img/fondo-1.png");
}

.fondo2 {
    background-color: #d82c3433;
}

#elpie{
    margin-top: 20rem;
}

#sedes{
    height: auto !important;
}

@media (min-width: 800px) {
    .limon2 {
        font-size: 3rem;
        padding: 2rem;
        margin-left: 0.7rem;
    }
  }

.dark-mode{
    --nav-color : #1c1f2e;
    --background-color : #25283D;
    --primary-color : #FF6347;
    --secundary-color : #f2f4ff;
    --primary-color-inactive : #b14430;
    --glass-effect : #23273379;
}

.light-mode{
    --nav-color : #f2f4ff;
    --background-color : #ffffff3d;
    --primary-color : #FF6347;
    --secundary-color : #232733;
    --primary-color-inactive : #e08c7c;
    --glass-effect : #f2f4ff34;
}

*{
    font-family: 'Roboto', sans-serif;
    transition: background-color ease .3s;
    margin: 0;
    padding: 0;
}

html{
    height: 100%;
}

body{
    height: 100%;
    background-color: var(--background-color);
}
/* Background animate */
#animateBackground{
    position: absolute;
    background-color: var(--background-color);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -20;
    overflow: hidden;
}

#animateItems li{
    position: absolute;
    list-style: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    animation: animate 25s linear infinite;
    bottom: -150px;
}

#animateItems li:nth-child(1){
    left: 20%;
    width: 50px;
    height: 50px;
    animation-duration: 11s;
}

#animateItems li:nth-child(2){
    left: 40%;
    width: 70px;
    height: 70px;
    animation-duration: 13s;
}

#animateItems li:nth-child(3){
    left: 60%;
    width: 20px;
    height: 20px;
    animation-duration: 17s;
}

#animateItems li:nth-child(4){
    left: 80%;
    width: 80px;
    height: 80px;
    animation-duration: 19s;
}

#animateItems li:nth-child(5){
    left: 65%;
    width: 90px;
    height: 90px;
    animation-duration: 23s;
}

#animateItems li:nth-child(6){
    left: 15%;
    width: 25px;
    height: 25px;
    animation-duration: 29s;
}

#animateItems li:nth-child(7){
    left: 25%;
    width: 45px;
    height: 45px;
    animation-duration: 31s;
}

#animateItems li:nth-child(8){
    left: 90%;
    width: 40px;
    height: 40px;
    animation-duration: 37s;
}

#animateItems li:nth-child(9){
    left: 35%;
    width: 21px;
    height: 21px;
    animation-duration: 41s;
}

#animateItems li:nth-child(10){
    left: 5%;
    width: 70px;
    height: 70px;
    animation-duration:43s;
}

main, .section{
    background-color: transparent;
}

@keyframes animate {
    0%{
        transform: translateY(0);
        opacity: .6;
        border-radius: 50%;
    }
    100%{
        transform: translateY(-1000px);
        opacity: 0;
        border-radius: 50%;
    }
}
/* --------------Default config mobile--------------*/
/* Navbar */
#mainNav{
    display: flex;
    justify-content: space-between;
    background-color: var(--nav-color);
    height: var(--nav-height);
}

#logo, #menuButton{
    width: var(--nav-height);
    height: var(--nav-height);
}

/* Menubutton animation*/
#menuButton{
    z-index: 20;
    border: none;
    position: relative;
    background-color: transparent;
}

#midBar::before, #midBar, #midBar::after{
    transition: transform ease .3s,
                top ease .3s .3s;
    content: "";
    width: 40px;
    height: 6px;
    position: absolute;
    background-color: var(--secundary-color);
    left: calc(50% - 20px);
    border-radius: 6px;
}

#midBar.active::before, #midBar.active, #midBar.active::after{
    transition: top ease .3s,
                transform ease .3s .3s;
}

#midBar::before{top: -10px;}
#midBar{top: calc(50% - 3px);}
#midBar::after{top: 10px;}

#midBar.active::before{
    top: 0px;
    transform: rotate(45deg);
}
#midBar.active{
    left: 50%;
    width: 0;
}
#midBar.active::after{
    top: 0px;
    transform: rotate(-45deg);
}

/* Fullpage menu */
#topBarMenu{
    display: none;
}

#fullMenu{
    transition: height ease .3s,
                opacity ease .3s;
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 0;
    opacity: 0;
    backdrop-filter: blur(6px);
    background-color: var(--glass-effect);
    overflow: hidden;
}
#fullMenu.active{
    opacity: 100;
    height: 100%;
}

#fullMenu #itemList{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    box-sizing: border-box;
    width: 80%;
    height: 100%;
    margin: auto;
}

.navItem{
    transition: border-bottom ease .3s;
    border-bottom: 1px solid transparent;
    font-weight: 800;
    list-style: none;
    font-size: 2rem;
}

.navItem.active{ border-bottom: 1px solid var(--primary-color); }

.navItem a:visited, 
.navItem a{
    transition: color ease .3s;
    color: var(--secundary-color);
    text-decoration: none;
}

.navItem:hover a, 
.navItem.active a{
    color: var(--primary-color);
}

/* Theme button */
#themeButton, #themeButtonToggle{
    background-color: transparent;
    padding: 10px;
    border: none;
}
#themeBG, #themeBGToggle{
    position: relative;
    overflow: hidden;
    height: 24px;
    width: 48px;
    background-color: var(--background-color);
    border: 1px solid var(--secundary-color);
    border-radius: 15px;
}
#themeBG::before, #themeBGToggle::before{
    transition: left ease .3s;
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    top: calc(50% - 10px);
    background-color: var(--secundary-color);
    border-radius: 50%;
}

#themeBG::after, #themeBGToggle::after{
    transition: background-color ease .3s,
                top ease .3s .3s;
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 10px;
    top: calc(50% - 15px);
    background-color: var(--background-color);
    border-radius: 50%;
}

#themeBG.active::before, #themeBGToggle.active::before{
    background-color: var(--primary-color);
    left: calc(100% - 22px);
}

#themeBG.active::after, #themeBGToggle.active::after{
    transition: background-color ease .3s,
                top ease .3s;
    top: -100%;
}



/* Sections */
main{
    overflow-y: scroll;
    scroll-behavior: smooth;
    height: calc(100% - var(--nav-height));
}

#home {
    height: auto;
}

.section{
    background-color: transparent;
    color: var(--secundary-color);
    padding: 10px 15px;
    box-sizing: border-box;
    width: 100%;
    height: 85%;
}

.section h2{
    text-align: center;
}

/* --------------Config desktop--------------*/
@media screen and (min-width: 992px){
    #fullMenu, #menuButton{
        display: none;
    }
    
    #mainNav{
        justify-content: flex-start;
    }
    #topBarMenu{
        display: block;
        flex-grow: 1;
    }
    #topBarMenu #itemList{
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        height: 100%;
    }
    
    .navItem{
        font-size: 2rem;
    }

    .section{
        max-width: 65%;
        margin: auto;
    }
}
