body {
    font-family: Arial, sans-serif;
    margin: 20px;
}

#qr-display {
    margin-top: 20px;
}

button {
    margin-top: 10px;
}

canvas {
    margin-top: 20px;
}

.json-editor {
    margin-top: 20px;
}

.json-field {
    margin-bottom: 10px;
}

/* https://www.reddit.com/r/AnimalCrossing/comments/7jf0s6/my_take_on_a_wallpaper_from_the_pocket_camp/ */
.background {
    background-image: url('AhPpuSUFZD6tuwCvoLYTqtx9jkOFXbbQh7Cfc7hTDtA.webp');
    background-size: auto;
    /* Adjust to your needs: cover, contain, or auto */
    /* background-position: center; */
    background-repeat: repeat;
    /* Prevents tiling */
    /* width: 500px; */
    /* Set width and height */
    /* height: 300px; */
}

.overlay {
    background-color: rgba(255, 255, 255, 0.3);
    /* White overlay with transparency */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Sits behind all content */
}

.content {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Adds depth */
    max-width: 800px;
    /* Limit width for readability */
    margin: 50px auto;
    /* Center the box */
    text-align: center;
    margin-bottom: 100px;
}

h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
}

input[type="file"] {
    margin: 20px auto;
    padding: 10px;
    font-size: 1em;
    border: 2px solid #4CAF50;
    border-radius: 5px;
}

button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 6px 12px;
    /* Smaller padding for a more compact size */
    font-size: 14px;
    /* Smaller font size */
    font-weight: bold;
    /* margin-top: 10px; */
    margin: 0;
    cursor: pointer;
    border-radius: 5px;
    /* Slightly smaller border radius to match the size */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #45a049;
}

button:active {
    background-color: #3e8e41;
}

button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 128, 0, 0.5);
}

footer {
    background-color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white */
    text-align: center;
    padding: 10px 20px;
    position: fixed;
    /* Always at the bottom */
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    footer {
        font-size: 0.8em;
        padding: 8px 15px;
    }
}

p.info {
    text-align: left;
}