@font-face {
    font-family: 'Pixelify Sans';
    src: url('./assets/fonts/PixelifySans-VariableFont_wght.ttf');
}

body {
    background-image: url('./assets/images/background.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Courier New', Courier, monospace;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pixelify Sans', monospace;
}

.container {
    max-width: 1440px;
    min-height: 100vh;
    margin: auto;

    header {
        background-color: #1a1a1a;
        color: #fff;
        padding: 1em;
        overflow-x: hidden;
        
        .update {
            animation: marquee 10s linear infinite;
            white-space: nowrap;
            display: inline-block;
            min-width: 100%;
        }
    }

    .wrapper {
        margin: 1em auto;
        display: flex;
        flex-direction: row;
        gap: 1em;
    }
}

@keyframes marquee {
  0% {
    transform: translate3d(100%, 0, 0);
  }
  100% {
    transform: translate3d(-40%, 0, 0);
  }
}


/* Remove this keyframe, as it is not needed for infinite horizontal scrolling.
    The correct keyframe for infinite scrolling is already defined as @keyframes marquee above. */

/* ------------ */
/* | Sidebars | */
/* ------------ */

#left-bar, #right-bar {
    background-color: #0f0f0f;
    color: #fff;
    padding: 1em;
    width: 500px;

    .gif {
        width: 100%;
    }
}

/* Left bar */

#left-bar {
    min-height: 50vh;
    h1 {
        font-size: 1.5em;
        margin-bottom: 0.5em;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        margin-top: 1rem;


        li {
            input[type="checkbox"]{
            position: absolute;
            left: -9999px;
            }

            ul {
                margin: 1rem;
                margin-bottom: 0;
                padding: 0;

                li {
                    margin-bottom: 1em;
                }
            }

            label {
                cursor: pointer;
            }

            input[type="checkbox"] ~ ul{
                height: 0;
                transform: scaleY(0);
            }

            input[type="checkbox"]:checked ~ ul{
                height: 100%;
                transform-origin: top;
                transition: transform .2s ease-out;
                transform: scaleY(1); 
            }

            a {
                color: #fff;
                text-decoration: none;

                &:hover {
                    color: lightsalmon;
                }
            }
        }
    }
}

/* Right bar */

#right-bar {
    height: 100%;

    h1 {
        font-size: 1.5em;
        margin-bottom: 0.5em;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;

        li {
            margin-bottom: 0.5em;

            a {
                color: #fff;
                text-decoration: none;

                &:hover {
                    color: red;
                }
            }


            &:not(:last-child) {
                &::after {
                    content: '';
                    display: block;
                    height: 1px;
                    background-color: #fff;
                    margin-top: 0.5em;
                }
            }
        }
    }
}

/* ---------------- */
/* | Main content | */
/* ---------------- */

main {
    height: min-content;
    background-color: #0f0f0f;
    color: #fff;
    padding: 1em;
    width: 100%;
    display: flex;
    flex-direction: column;

    .banner-gif {
        width: 60%;
        height: auto;
        margin: 0 auto;
    }

    .wrapper-main {
        display: flex;
        flex-direction: row;
        gap: 4em;
        padding: 0 1rem;
    }

    #who-am-i {
        width: 100%;
    }

    #this-blog {
        width: 100%;
    }
}