body, html {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: "Pixelify Sans", sans-serif;
    font-size: large;
    justify-content: start;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    overflow-x: hidden;
    margin-bottom: 30px;

}

h1 {
    font-size: x-large;
}

.controls {
    margin-top: 10px;
    gap: 4px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
}

.slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hint {
    font-size: medium;
    color: #666;
    margin: 20px;
    text-align: center;
}

img {
    margin: 20px 0;
    padding: 10px;
    cursor: pointer;
    border: 2px solid #ccc;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    max-height: 80%;
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: saturate(180%) blur(2px);
}

.footer p {
    margin: 0;
    font-size: small;
    color: #999;
}

.color-picker-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.color-box {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: 1px solid #000;
}

.color-picker-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.color-box {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#imageCanvas {
    max-width: 90%;
    max-height: 50vh;
    height: auto;
    margin: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button {
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: medium;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: "Pixelify Sans", sans-serif;
}

footer a {
    color: #007bff;
    text-decoration: none;
}


.hand {
    display: inline-block;
    animation: handWave 1s ease-in-out infinite;
}
@keyframes handWave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

#fileInput {
  display: none;
}

.file-upload-btn {
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  font-size: 16px;
}