body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #282c34;
    color: #e0e0e0;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #3c4048;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    color: #61dafb;
    margin-bottom: 25px;
}

.controls {
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    display: inline-block; /* Aby label wyglądał jak przycisk */
}

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

input[type="file"] {
    display: none; /* Ukryj domyślny input pliku */
}

button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

button#reset-button {
    background-color: #ffc107;
    color: #333;
}

button#reset-button:hover {
    background-color: #e0a800;
}

button#pause-button {
    background-color: #6c757d;
}

button#pause-button:hover {
    background-color: #5a6268;
}


.emulator-window {
    position: relative;
    width: 256px; /* Standardowa szerokość NES-a */
    height: 240px; /* Standardowa wysokość NES-a */
    margin: 0 auto 25px auto;
    border: 5px solid #61dafb;
    box-shadow: 0 0 20px rgba(97, 218, 251, 0.7);
    background-color: #000;
    overflow: hidden; /* Upewnij się, że nic nie wychodzi poza canvas */
}

canvas {
    display: block; /* Usuwa białe marginesy pod canvas */
    width: 100%;
    height: 100%;
    image-rendering: pixelated; /* Ważne dla retro grafiki */
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

#status-message {
    color: #ffc107;
    margin-top: 15px;
    font-size: 0.9em;
}

.info {
    text-align: left;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #4f545c;
}

.info h2 {
    color: #61dafb;
    margin-bottom: 15px;
}

.info ul {
    list-style-type: none;
    padding: 0;
}

.info li {
    margin-bottom: 8px;
    line-height: 1.4;
}