/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1e1e2f; /* Dark navy */
    color: #e4e4e7; /* Light greyish white */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* Header */
h1 {
    font-size: 2rem;
    text-align: center;
    margin: 1rem 0;
}

/* Upload Section */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
    gap: 1rem;
}

.upload-container input[type="file"] {
    background-color: #2a2a3c;
    color: #e4e4e7;
    padding: 0.5rem;
    border: 1px solid #44475a;
    border-radius: 5px;
    cursor: pointer;
}

/* Buttons */
.button {
    background-color: #25f158; /* Green */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #69ff94; /* Lighter Green */
}

/* Save and Reset Button */
a, .button {
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
    text-decoration: none; /* Remove underline from save button */
}
a {
    color: #4173ff;
}
a:hover {
    color: #708bd7;
}

/* Canvas */
canvas {
    width: 45%; /* Full width for all devices */
    height: auto;
    margin-top: 1rem;
    border: 1px solid #44475a;
}

/* Footer */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    background-color: #1e1e2f;
    color: #e4e4e7;
    font-size: 0.875rem;
}

/* Alert Message */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #25f158; /* Green */
    color: #1e1e2f;
    border-radius: 5px;
    padding: 1rem;
    font-size: 1rem;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease, top 0.3s ease;
}

.alert.show {
    display: block;
    opacity: 1;
    top: 50px;
}

.alert.hide {
    opacity: 0;
    top: 20px;
    display: none;
}
