@font-face {
    font-family: 'Minecraft';
    src: url('assets/fonts/Minecraft.ttf') format('truetype');
  }  
  
  * {
    box-sizing: border-box;
  }
  
  body, html {
    margin: 0;
    padding: 0;
    background-color: #121212;
    font-family: sans-serif;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #input-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  
  .input-box {
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    width: 400px;
    max-width: 90%;
    text-align: center;
  }
  
  #nbt-input {
    width: 100%;
    height: 150px;
    background: #0f0f0f;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    font-family: monospace;
    resize: none;
    margin-top: 15px;
  }
  
  #go-button {
    margin-top: 15px;
    padding: 10px 25px;
    background: #333;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  #go-button:hover {
    background: #444;
    transform: scale(1.05);
  }
  
  #go-button:active {
    transform: scale(1.1);
  }
  
  #error-message {
    display: none;
    color: white;
    background-color: #e74c3c;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  #inventory-screen {
    display: none;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  
  .inventory-wrapper {
    position: relative;
    width: 528px;
    height: 498px;
    image-rendering: pixelated;
  }
  
  .inventory-bg {
    width: 528px;
    height: 498px;
    object-fit: contain;
  }
  
  #slot-overlay {
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .slot {
    position: absolute;
    width: 48px;
    height: 48px;
  }
  
  .slot img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
  }
  
  .durability-bar {
    height: 3px;
    background-color: limegreen;
    margin-top: 4px;
    border: 1px solid #000;
  }
  
  .item-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-family: 'Minecraft', monospace;
    font-size: 14px;
    color: white;
    text-shadow: 1px 1px 0 #3f3f3f;
    pointer-events: none;
    image-rendering: pixelated;
  }
  