@import url('https://fonts.googleapis.com/css2?family=Geist+Pixel&family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    overflow-y: hidden;
    overflow-x: hidden;
    user-select: none;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'IBM Plex Mono';
    background-repeat: no-repeat;
    background-size: cover;

}

pre {
    font-family: 'IBM Plex Mono';
    font-weight: 500;
    color: #0000FD;
    font-size: 0.01em;
    font-size: 2vw;
    user-select: text;
}

pre::selection {
    background-color: #0000FD;
    color: white;
}

.play,
.playground {
    display: none;
}

.loo {
    width: 100%;
    text-align: right;
    font-size: 1.5vh;
    margin: 0;
    margin-right: 2%;
    font-family: 'Geist Pixel';

    span {
        background-color: #0000FD;
        color: white;
        padding: 1px;
    }

}


a {
    width: 50%;
    color: #0000FD;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    padding: 5px;
}

a:hover {
    color: white;
    background-color: #0000FD;
}

a:before {
    content: '▶ ';
    display: none;
}

a:hover::before {
    display: inline;
}

body:has(a:hover) body {
    background: purple;
}

.wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-top: 10vw;
    min-height: 30vh;
}

.menu,
.exit {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-family: 'Geist Pixel';
    height: 20%;
}

.exit {
    color: #0000FD;
}

footer {
    position: absolute;
    text-align: center;
    bottom: 0;
    font-size: 1.2vh;
    font-family: 'Geist Pixel';
    padding: 1%;
}



@media screen and (min-width: 434px) and (max-width: 844px) {
    .play {
        display: block;
        font-size: 1.35vw;
    }

    .playground,
    .ground {
        display: none;
    }
}

@media screen and (min-width: 845px) {
    .playground {
        display: block;
        font-size: 0.85vw;
    }

    .play,
    .ground {
        display: none;
    }

    .wrap {
        margin-top: 5vw;
        min-height: 50vh;
    }
}

.automata:hover::after {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-image: url('../media/images/playground/automata.gif');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    filter: blur(2px);
    transition: 5s ease-in-out;
    content: '';
}

.whiteboard:hover::after {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-image: url('../media/images/playground/whiteboard.gif');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    filter: blur(2px);
    transition: 5s ease-in-out;
    content: '';
}

.machina:hover::after {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-image: url('../media/images/playground/machine.gif');
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    filter: blur(2px);
    transition: 5s ease-in-out;
    content: '';
}


body:has(.ext:hover) {
    background-color: #0000FD;
    color: white;

    pre {
        color: white;
    }

    .exit {
        color: white;
    }

    .ext {
        color: #0000FD;
        background-color: white;
    }


    a {
        color: white;
    }

    .loo {
        span {
            background-color: white;
            color: #0000FD;
        }
    }
}

body:has(.whiteboard:hover) {
    color: white;

    .whiteboard {
        background-color: rgba(255, 255, 255, 0.968);
        color: #0000FD;

    }

    pre {
        background-color: #0000FD;
        color: white;
    }

    .loo {
        span {
            color: #0000FD;
            background-color: white;

        }
    }

    .exit {
        color: white;
    }

    .ext {
        color: white;
    }

    a {
        color: white;
    }
}


body:has(.machina:hover) {

    .machina {
        color: #0000FD;
        background-color: white;
    }

    a {
        color: white;
    }

    .ext {
        color: #0000FD;
    }

    .loo {
        span {
            color: #0000FD;
            background-color: white;

        }
    }

    pre {
        color: white;
        background-color: #0000FD;
    }
}



body:has(.automata:hover) {
    pre {
        background-color: #0000FD;
        color: white;
    }

    .loo {
        span {
            color: #0000FD;
            background-color: white;

        }
    }
}