:root{
    --bg-color2: #3b829200;
    --bg-color1: #2B3237bb;
}

body{
    background-image:url('/writing/img/bosquecito.jpg');
    background-size:cover;
    background-position: center;
    display: flex;
    justify-content: center;
    margin: 0;
}
h1,h2,h3,h4,h5{
    font-weight: 800;
    margin: 0;
    color: #0DA6A6
}
h1{
    font-size: 3rem;
}
#page{
    background-color: var(--bg-color2);
    width: 90vw;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    justify-content: center;
}
#header{
    background-image: url("/writing/img/ramita.png");
    background-size: cover;
    flex-basis: auto;
    position: relative;
    width: 55vw;
    height: 7rem;
    margin: auto;
    padding-top: 2rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    z-index: -2;
}
#titulo{
    text-align: center;
    font-family: 'Audiowide';
    font-size:3rem;
    background-image: url("/writing/img/ramita-burntText.png");
    background-clip: text;
    color: transparent;
    text-shadow: 0px 0px 8px #220000aa;
    
}

#body{
    width: 90vw;
    flex-grow:1;
    flex-shrink: 7;
    margin: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: #12E0E0;
    overflow: auto;
}

#sidebar{
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    font-family: 'roboto mono';
    font-size: 16px;
}
#directory{
    background-color: var(--bg-color1);
    border-radius: 10px;
    height: 20vh;
    flex-basis: 1;
    overflow: auto;
    width: 15vw;
    padding: 1rem ;
}
#directory::-webkit-scrollbar{
    width: 5px;
    height: 8px;
    background-color: transparent;
}
#directory::-webkit-scrollbar-thumb {
  background: #15181B;
}
.sections:hover{
    cursor: pointer;
}
#indice{
    background-color: var(--bg-color1);
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    height: 44vh;
    width: 15vw;
    padding: 1rem ;
    overflow: auto;
}
#indice::-webkit-scrollbar{
    width: 5px;
    height: 8px;
    background-color: transparent;
}
#indice::-webkit-scrollbar-thumb {
  background: #15181B;
}
#main{
    position: relative;
    background-color: var(--bg-color1);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-family: 'roboto mono';
    font-size: 16px;
    width:50vw;
    padding: 1.5rem;  
    overflow-y: auto;
    text-align: justify;
}
#main::-webkit-scrollbar{
    width: 5px;
    height: 8px;
    background-color: transparent;
}
#main::-webkit-scrollbar-thumb {
  background: #15181B;
}
.postTitles:hover{
    cursor: pointer;
}

#home-button{
    position: absolute;
    top: 10px;
    left: 35px;
    width: 280px;
    height: 150px;
}
#pigeon-files2{
    position: absolute;
    top: 45px;
    left: 45px;
    width: 60px;
    transform: rotate(1deg);
    
}
#pigeon-files{
    position: absolute;
    top: 45px;
    left: 45px;
    width: 60px;
    transform: rotate(1deg);
}
body:has(#home-button:hover) #pigeon-files2{
    animation: rotate2 0.1s linear forwards;
}
body:has(#home-button:hover) #pigeon-files {
    animation: rotate 0.1s linear forwards;
}

@keyframes rotate {
    from{
        transform: rotate(1deg);
    }to{
        transform: rotate(-15deg);
    }
}
@keyframes rotate2 {
    from{
        transform: rotate(1deg);
    }to{
        transform: rotate(10deg);
    }
}
ul.fireflies {
    list-style: none;
    pointer-events: none;
    position: absolute;
    left: 0;
    width: 90vw;
    height: 90vh;
    
}
li {
    border-radius: 50%;
    background-color: #12E0E0;
    background-image: radial-gradient( #42dfdf 5%,
                                       #3a9696 25%,
                                       #3a9696 60%);
    box-shadow: 0 0 5px 2px  #12E0E0, 
                0 0 20px 10px  #3a9696,
                0 0 40px 15px  #3a9696;
    height: 5px;
    width: 5px;
    position: absolute;
    animation: leftright 24s infinite cubic-bezier(0.39, 0, 0.63, 1),
    updown 8s infinite 1.25s cubic-bezier(0.39, 0, 0.63, 1),
    blinking 3s infinite alternate;
    z-index: -1;
}

/* first 10 */
li:nth-of-type(1) {
    animation-delay: -2s;
    animation-duration: 65s, 81s, 3s;
    animation-fill-mode: backwards, backwards;
}

li:nth-of-type(2) {
    animation-delay: -1.5s;
    animation-duration: 80s, 75s, 3s;
}

li:nth-of-type(3) {
    animation-delay: -2.5s;
    animation-duration: 70s, 60s, 3s;
    animation-fill-mode: backwards, backwards;
}

li:nth-of-type(4) {
    animation-delay: -3.5s;
    animation-duration: 90s, 80s, 3s;
}

li:nth-of-type(5) {
    animation-delay: -1.3s;
    animation-duration: 55s, 75s, 3s;
}

li:nth-of-type(6) {
    animation-delay: -3.2s;
    animation-duration: 79s, 63s, 3s;
    animation-fill-mode: backwards, backwards;
}

li:nth-of-type(7) {
    animation-delay: -1.9s;
    animation-duration: 70s, 80s, 3s;
}

li:nth-of-type(8) {
    animation-delay: -2.6s;
    animation-duration: 50s, 40s, 3s;
    animation-fill-mode: backwards, backwards;
}

li:nth-of-type(9) {
    animation-delay: -2.8s;
    animation-duration: 77s, 88s, 3s;
}

li:nth-of-type(10) {
    animation-delay: -4s;
    animation-duration: 87s, 73s, 3s;
    animation-fill-mode: backwards, backwards;
}

/* last 10 */
li:nth-of-type(11) {
    animation-delay: -2s;
    animation-duration: 60s, 78s, 3s;
    animation-fill-mode: backwards, backwards;
}

li:nth-of-type(12) {
    animation-delay: -1.5s;
    animation-duration: 85s, 80s, 3s;
}

li:nth-of-type(13) {
    animation-delay: -2.5s;
    animation-duration: 75s, 66s, 3s;
    animation-fill-mode: backwards, backwards;
}

li:nth-of-type(14) {
    animation-delay: -3.5s;
    animation-duration: 87s, 75s, 3s;
}

li:nth-of-type(15) {
    animation-delay: -1.3s;
    animation-duration: 69s, 85s, 3s;
}

li:nth-of-type(16) {
    animation-delay: -3.2s;
    animation-duration: 80s, 77s, 3s;
    animation-fill-mode: backwards, backwards;
}

li:nth-of-type(17) {
    animation-delay: -1.9s;
    animation-duration: 65s, 88s, 3s;
}

li:nth-of-type(18) {
    animation-delay: -2.6s;
    animation-duration: 59s, 63s, 3s;
    animation-fill-mode: backwards, backwards;
}

li:nth-of-type(19) {
    animation-delay: -2.8s;
    animation-duration: 88s, 79s, 3s;
}

li:nth-of-type(20) {
    animation-delay: -4s;
    animation-duration: 59s, 75s, 3s;
    animation-fill-mode: backwards, backwards;
}


@keyframes leftright {

    0%,
    100% {
        left: 80%;
    }

    16.666% {
        left: 95%;
    }

    33.333% {
        left: 10%;
    }

    50% {
        left: 60%;
    }

    66.666% {
        left: 70%;
    }

    83.333% {
        left: 5%;
    }
}

/* It will create the up down movement */
@keyframes updown {

    0%,
    100% {
        top: 10px;
    }

    25% {
        top: 90%;
    }

    50% {
        top: 50%;
    }

    75% {
        top: 95%;
    }
}

/* It will create the blinking effect */
@keyframes blinking {
    0%{opacity: 1;}
    80%{opacity: 0.5}
    100%{opacity: 0;}
}