* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;  /* Full height of the viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Vertically center content */
    align-items: center;  /* Horizontally center content */
    background-color: #181818;  /* Dark background */
    color: white;  /* Light text color */
}

/* Dark Mode Styles */
header, footer {
    background-color: #242424;  /* Dark header/footer */
    color: white;
    width: 100%;
    text-align: center;  /* Center header and footer text */
}

header h1 {
    font-size: 2.5em;
    color: white;
}

header nav a {
    margin: 0 10px;
    color: #00aaff;  /* Light blue links */
    text-decoration: none;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: white;  /* Section title color */
}

/* style.css */
canvas#textureCanvas {
    display: block;
    width: 324px; /* Scaled display size for better visibility */
    height: 324px;
    border: 1px solid #ccc; /* Optional: for better visibility of canvas boundaries */
    margin: 10px auto; /* Center the canvas */
    image-rendering: pixelated; /* Ensures crisp pixel art appearance */
    image-rendering: -moz-crisp-edges; /* For Firefox */
    image-rendering: crisp-edges; /* For Chrome and other browsers */
}


footer {
    margin-top: 20px;
    font-size: 0.8em;
    color: #ffffff;
}

/* Dark Mode Button Styles */
button {
    background-color: #0077cc;  /* Blue button */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 16px;
    cursor: pointer;
    margin: 10px;
}

button:hover {
    background-color: #005fa3;
    border-radius: 16px;
}

button:focus {
    outline: none;
    border-radius: 16px;
}

/* Customize the color picker for both modes */
input[type="color"] {
    border: 2px solid #0077cc;
    padding: 5px;
}

/* Canvas border color */
canvas {
    border: 4px solid blue;  /* Blue border for visibility */
}

/* For accessibility or preference, you can set dark mode explicitly */
body.dark-mode {
    background-color: #181818;  /* Ensure background is dark */
    color: white;  /* Ensure text is white */
}

header.dark-mode, footer.dark-mode {
    background-color: #242424;  /* Ensure header/footer stays dark */
}

header nav a.dark-mode {
    color: #00aaff;
}

button.dark-mode {
    background-color: #0077cc;
    color: white;
    border-radius: 16px;
}

button.dark-mode:hover {
    background-color: #005fa3;
    border-radius: 16px;
}

footer.dark-mode {
    color: #ffffff;
}
