/* ===========================================
   UNDERTALE PORTFOLIO
   style.css
=========================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    color: white;
    font-family: "Press Start 2P", monospace;
}

body {
    user-select: none;
}

/* Canvas */

#gameContainer {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#gameCanvas {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background: #000;

    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Loading Screen */

#loadingScreen {
    position: fixed;
    inset: 0;

    background: black;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    z-index: 99999;

    transition: opacity .5s;
}

#loadingScreen h1 {
    font-size: 34px;
    margin-bottom: 25px;
}

#loadingScreen p {
    color: #888;
    animation: pulse 1s infinite;
}

/* Dialogue Box */

#dialogueBox {
    position: absolute;

    left: 50%;
    bottom: 35px;

    transform: translateX(-50%);

    width: 900px;
    max-width: 92vw;

    min-height: 170px;

    background: black;

    border: 5px solid white;

    padding: 25px;

    z-index: 500;
}

#dialogueName {
    color: yellow;
    margin-bottom: 20px;
    font-size: 16px;
}

#dialogueText {
    line-height: 1.8;
    font-size: 14px;
}

#continueArrow {
    position: absolute;

    right: 25px;
    bottom: 20px;

    animation: bounce .7s infinite;
}

/* Controls */

#controls {
    position: absolute;

    top: 20px;
    left: 20px;

    background: rgba(0,0,0,.75);

    border: 3px solid white;

    padding: 18px;

    z-index: 200;
}

.control {
    font-size: 22px;
    margin-bottom: 12px;
}

.controlText {
    font-size: 10px;
    color: #ccc;
}

/* FPS */

#fpsCounter {
    position: absolute;

    top: 20px;
    right: 20px;

    font-size: 12px;

    color: lime;

    background: rgba(0,0,0,.7);

    border: 2px solid lime;

    padding: 10px;

    z-index: 200;
}

/* Interaction Prompt */

#interactionPrompt {
    position: absolute;

    left: 50%;
    bottom: 230px;

    transform: translateX(-50%);

    background: black;

    border: 3px solid white;

    padding: 14px 20px;

    font-size: 12px;

    animation: pulse 1s infinite;
}

/* Hidden */

.hidden {
    display: none !important;
}

/* Preload Images */

#preload {
    display: none;
}

/* Animations */

@keyframes pulse {

    0% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .4;
    }

}

@keyframes bounce {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(0px);
    }

}

/* stuff */

#enterScreen {

    position: fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:black;

    display:flex;

    justify-content:center;
    align-items:center;

    z-index:9999;

    cursor:pointer;

}



.enterText {

    color:white;

    font-family:"Press Start 2P", monospace;

    font-size:32px;

    text-align:center;

    animation:blink 1s infinite;

}


@keyframes blink {

    50%{
        opacity:0.5;
    }

}


/* Pixelated */

img,
canvas {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Scrollbar */

::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;
}