body {
    font-family: 'Press Start 2P', Arial, sans-serif; /* Fallback to Arial, sans-serif for better readability on mobile */
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
}

header {
    width: 100%;
    padding: 10px;
    background-color: #222;
    text-align: center;
}

.site-logo {
    height: 50px;
}

.hero {
    text-align: center;
    margin: 20px 0;
}

.hero h1 {
    font-size: 24px;
}

.hero-image {
    width: 200px;
    height: auto;
    margin-top: 10px;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.preview {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border: 4px solid black;
    image-rendering: pixelated;
}

.preview img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hidden {
    display: none;
}

.controls {
    display: flex;
    flex-direction: column; /* Stack categories vertically on smaller screens */
    justify-content: space-around;
    margin-bottom: 20px;
}

.category {
    width: 100%; /* Full width for each category on smaller screens */
    margin-bottom: 20px;
}

.category h3 {
    margin-bottom: 10px;
    text-shadow: 0.2px 0.2px 0px black;
}

.items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.items img {
    width: 50px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid black;
    image-rendering: pixelated;
}

.items img:hover {
    border-color: #007BFF;
    background-color: #e0e0e0;
}

button {
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid black;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    text-shadow: 2px 2px 0px black;
}

button:hover {
    background-color: #0056b3;
}

.clear-btn {
    margin-top: 10px;
    font-size: 12px;
    padding: 5px 10px;
    border: 2px solid black;
    background-color: #FF6347;
    color: white;
    cursor: pointer;
    text-shadow: 1px 1px 0px black;
}

.clear-btn:hover {
    background-color: #FF4500;
}

@media screen and (min-width: 600px) {
    .controls {
        flex-direction: row; /* Stack categories horizontally on larger screens */
    }

    .category {
        width: 30%;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 599px) {
    body {
        font-family: Arial, sans-serif; /* Use a more readable font on smaller screens */
    }
}
