/* General Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header, footer {
    background-color: #1a5121;
    color: white;
    text-align: center;
    padding: 15px 0;
    position: fixed;
    left: 0;
    width: 100%;
    box-shadow: 0 0 10px rgba(0, 255, 100, 0.7);
    z-index: 1000;
}

header {
    top: 0;
}

footer {
    bottom: 0;
}

footer a {
    color: #00ff6c;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ffffff;
}

main {
    flex: 1;
    padding: 80px 20px; /* Ensures content doesn't overlap with header and footer */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
}

#imageInput {
    padding: 12px 25px;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.7);
}

#imageInput:hover {
    background-color: #00ff6c;
    box-shadow: 0 0 20px rgba(0, 255, 108, 0.9);
    transform: scale(1.1);
}

canvas {
    border: 2px solid #5cdb95;
    margin-top: 20px;
    display: block;
    border-radius: 10px;
}

.button-link {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.7);
}

.button-link:hover {
    background-color: #00ff6c;
    box-shadow: 0 0 20px rgba(0, 255, 108, 0.9);
    transform: scale(1.1);
}

#label-container {
    margin-top: 20px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 400px;
    text-align: center;
}

#label-container div {
    padding: 8px;
    font-size: 18px;
    color: #333;
}

/* Responsive design */
@media (max-width: 600px) {
    canvas {
        width: 100%;
        height: auto;
    }

    #label-container {
        width: 100%;
    }
}
