@font-face {
    font-family: 'omori2';
    src: url('OMORI_GAME2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    image-rendering: pixelated;
    touch-action: manipulation;
}

body { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    overflow: hidden; 
    margin: 0; 
    background-color: #FFF;
    font-family: 'omori2', Fallback, sans-serif;
    font-size: 40px;
}

img {
    image-rendering: pixelated;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(5, 64px); 
    grid-template-rows: repeat(11, 64px); 
    gap: 0px;
    position: relative;
}

.cell { 
    width: 64px; 
    height: 64px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: #FFF;
    background-size: cover;
    
}

.player { 
    background-image: url("pictures/assets/omori_down.png"); 
    background-size: contain; 
    background-repeat: no-repeat;
    width: 100%; 
    height: 100%; 
}

.obstacle { 
    background-size: contain; 
    background-repeat: no-repeat;
    width: 100%; 
    height: 100%; 
}

.cosmetic { 
    background-size: contain; 
    background-repeat: no-repeat;
    width: 100%; 
    height: 100%; 
}

#dialogue-container {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    min-width: 60%;
}

#dialogue-box {
    background-color: rgba(0, 0, 0, 1);
    color: white;
    padding: 20px;
    text-align: left;
}

#dialogue-option {
    position: relative; /* Moves with dialogue-box */
    margin-top: 10px; /* Ensures it sits below dialogue-box */
    right: 0; /* Aligns to the right */
    background-color: rgba(0, 0, 0, 1);
    color: white;
    padding: 20px;
    text-align: right;
    margin-left: auto;
    max-width: 10%; /* Ensures options don't get too wide */
}

#dialogue-box-inner-border {
    outline: 2px solid white;
    outline-offset: 15px;
}

button {
    background-color: #007bff;
    border: none;
    color: white;


    border-radius: 5px;
    cursor: pointer;
    font-family: 'omori2', Fallback, sans-serif;
}

span {
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

a {
    color: white;
    text-decoration: none;
}