@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Asset&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Corben:wght@700&display=swap');

/*/ Variables /*/
:root {
    /*/ Colors /*/
    --c1: #000;
    --c2: #fa2;
    --c3: #951;
    --c4: #68b;
}

/*/ General settings /*/
* {
    font-family: 'Corben', cursive;
    font-size: 1.4vw;
    /*text-transform: uppercase;*/
    text-align: center;
    font-variant-ligatures: none;
    /*border-radius: 20px;*/
}

/*/ Body settings /*/
body {
    background-color: var(--c2);
    margin: 0;
}

/*/ Color accent /*/
.accent {
    color: var(--c4);
    text-decoration: none;
    /*text-shadow: 0 0 1px black;*/
}

/*----------------------------------------------*/

header {
    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--c1);
    background-color: var(--c2);
    font-size: 2vh;
    text-transform: uppercase;
}

/*/ Navigation bar /*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-right: 5vw;
    padding-left: 5vw;
    gap: 2vw;

    position: sticky; /* Para que se deslice con el límite superior de la página */
    top: 0;
    z-index: 1;

    font-size: 1.5vh;

    color: var(--c2);
    background-color: var(--c1);
}

/*/ Style reset /*/
a, h1 {
    text-decoration: none;
    color: inherit;
    font-size: inherit;
}

/*----------------------------------------------*/

/*/ Main content /*/
.content {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row-reverse; /* Para que la imagen se vea arriba en dispositivos verticales */

    padding: 5vw;
    min-height: 60vh;

    overflow: hidden;
}

/*/ Main text /*/
.content p, .content span {
    font-size: 1.9vh;
    width: 90vh;
    margin-top: 5vh;
    margin-bottom: 5vh;
    /*text-align: justify;*/
}

/*/ Main image /*/
.content img {
    max-width: 40vh;
    margin-right: 5vw;
    margin-left: 5vw;
    transition: 0.5s;
    z-index: 0;
}

.contentbackground {
    display: block;
    position: absolute;
    right: 0;
    width: 30vw;
    height: 40vh;
    background-color: black;

    z-index: -1;
    background-image: linear-gradient(to right, var(--c4) 1px, transparent 1px),
    linear-gradient(to bottom, var(--c4) 1px, transparent 1px);
    background-size: 2vh 2vh;
    background-color: var(--c1);
    box-shadow: 0px 0px 80px var(--c1) inset;

    animation: scroll infinite .5s linear;
    animation-play-state: paused;
}

.content img:hover {
    max-width: 42vh;
    cursor: pointer;
}
.content img:hover ~ .contentbackground {
    animation-play-state: running;
}

@keyframes scroll {
    from {
        right: 0;
    }
    to {
        right: -4vh;
    }
}

@media (orientation:portrait) {
    .contentbackground {
        visibility: hidden;
    }
}

/*----------------------------------------------*/

/*/ Footer /*/
footer {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    top: 95vh;
    height: 5vh;
    width: 20vh;
    left: calc(50vw - 20vh / 2);

    background-color: black;
    color: var(--c2);
    font-size: 2vh;
}

/*----------------------------------------------*/

.line div {
    position: fixed;
    left: 2vw;
    border-top: 2px solid black;
    width: 96vw;
    z-index: -3;
  }

.line div:nth-child(1) {
    top: 20vh;
}

.line div:nth-child(2) {
    top: 80vh;
}

@media (orientation:portrait) {
    .line {
        visibility: hidden;
    }
}