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

* {
    font-family: 'Monocraft', monospace;
}

body {
    margin: 0;
    background-color: #120F1B;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#wrapper {
    position: relative;
    display: flex;
    width: auto;
    height: 100vh;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    border-left: 2px solid #2E2A40;
    border-right: 2px solid #2E2A40;

}

#main {
    position: relative;
    width: 1000px;
    height: 105%;
    overflow: hidden;
}


@media (max-width: 600px) {
    #main {
        width: 300px;
    }
}

.lavas,
.obsidians {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, 50px);
    grid-auto-rows: 50px;
    justify-content: center;
}

.lavas div,
.obsidians div {
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
}



#text {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 30px);
    height: 100vh;
    padding: 0 15px;
    background: transparent;
    color: white;
    border: none;
    outline: none;
    font-size: 20px;
    line-height: 50px;
    resize: none;
    z-index: 3;
    white-space: pre-wrap;
    word-break: break-all;
    overflow: hidden;
    font-family: 'Monocraft', monospace;
}




@keyframes blink {
  50% { opacity: 0; }
}


#text::placeholder {
    color: white;
}





#line-numbers {
    position: relative;
    top: 0;
    left: 0;
    width: 50px;
    height: 100%;
    background: #1b1728;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: 2px solid #2E2A40;
    font-family: 'Monocraft', monospace;
    font-size: 16px;
    color: #6d6991;
    z-index: 5;
}

#line-numbers div {
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
}




.smoke-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}

.smoke {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('./smoke.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 1;
    animation: smokeRise 0.5s ease-out forwards;
}

@keyframes smokeRise {
    0% {
        transform: translateY(50px) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(100px) scale(0.6);
        opacity: 0;
    }
}


.nether {
  background-repeat: no-repeat;
  pointer-events: none;
}


#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 50px);
  grid-auto-rows: 50px;
  width: 100%;
  height: 100%;
}
.cell {
  width: 50px;
  height: 50px;
  background-repeat: no-repeat;
}
