:root {
    --text-size: 10px;
    --container: oklch(29.292% 0.0247 195.962);
    --cell: oklch(23.929% 0.00003 271.152 / 0.966);
    --white: oklch(100% 0.00011 271.152);
    --black: oklch(0% 0 0);
    --gray: oklch(59.987% 0.00007 271.152);
    --startscreentextsize: 75px;
    --helloworldendtextcolor: oklch(86.65% 0.29465 142.513);
}

* {
    background: var(--black);
    color: var(--white);
    font-family: 'Courier New', Courier, monospace;

    user-select: none;
    transition: 0.5s all;
}

HelloWorld {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    height: 90vh;
    font-size: var(--startscreentextsize);
    transition: 0.5s all;
    --console_char: 0;
    --console_anim: translateX(0%);
}

HelloWorld.end {
    color: var(--helloworldendtextcolor);
}

HelloWorld::before {
    content: '>';
    color: var(--helloworldendtextcolor);
    opacity: var(--console_char);
    transform: var(--console_anim);
    transition: 0.5s all;
}

#container {
    display: none;
    flex-wrap: wrap;
    opacity: 0;
    border: 5px solid var(--container);
    border-radius: 10px;
    margin: 75px;
    gap: 15px;
    padding: 25px;
}


#container .cell {
    cursor: pointer;
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--cell);
    border-radius: 15px;
    padding: 10px 15px;
    width: 160px;
    height: 100px;
    transition: 0.5s all;
    z-index: 0;
    font-size: var(--text-size);
}

#container .cell>* {
    background: transparent;
}

#container .cell desc {
    position: absolute;
    color: var(--gray);
    text-align: center;
    transform: scale(0);
    bottom: 10px;
}

.title {
    position: absolute;
    text-align: center;
    top: 50%;
    font-size: 20px;
    transform: translateY(-50%);
    transition: 0.5s all;
}

#container .cell:is(:hover, :focus) {
    background: var(--cell);
    transform: scale(1.6);
    z-index: 1;
}

#container .cell:is(:hover, :focus) .title {
    top: 0;
    transform: scale(0.6) translateY(0);
}

#container .cell:is(:hover, :focus) desc {
    transform: scale(1);
}


#page-container {
    display: flex;
    flex-direction: row;
    top: 50%;
    font-size: 25px;
    gap: 25px;
    border-radius: 25px;
    padding: 15px;
}

.page-btn {
    text-align: center;
}



@media (max-width: 490px) {
    HelloWorld {
        font-size: 35px;
    }

    #container {
        margin: 10px;
    }
}

@media (max-width: 320px) {
    HelloWorld {
        font-size: 26px;
    }

    #container {
        margin: 0;
    }
}