/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    min-height: 100vh; /* Ensure body takes at least the full viewport height */
    display: flex;
    flex-direction: column; /* Make body a flex container */
    background: #F0F2F5;
}

/* Header Styles */
.header {
    background: #00B050;
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu-title {
    font-size: 24px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.menu {
    display: flex;
    gap: 20px;
}

.menu-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.menu-item:hover {
    color: #E7FCE3;
}

/* Main Container Styles */
.container {
    max-width: 500px;
    margin: 50px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1; /* Allow container to grow and push footer down */
}

h1 {
    color: #275964;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 15px;
}

.key-img {
    width: 75px;
    margin-top: -67px;
}

p {
    color: #555;
    margin-bottom: 20px;
}

input {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #00B050;
}

button {
    background: #00b050;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3sease;
    margin-top: 10px;
}

button:hover {
    background: #008040;
}

.error {
    color: #ff0000;
    font-size: 15px;
    margin-bottom: 15px;
}

.result {
    margin-top: 20px;
    background: #E7FCE3;
    padding: 15px;
    border-radius: 5px;
}

.result input {
    width: 70%;
    text-align: center;
    background: #ffffff;
    border: 1px solid #00B050;
}

/* Footer Styles */
.footer {
    background: #ffffff; /* Changed to match your theme */
    color: #ffffff; /* Changed to white for better contrast */
    text-align: center;
    padding: 5px 0;
    width: 100%;
    margin-top: auto; /* Push footer to the bottom */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #00B050;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    }

    .menu.active {
        display: flex;
    }

    .container {
        margin: 20px auto;
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h3 {
        color: #275964;
    }

    p {
        font-size: 14px;
    }

    input {
        width: 90%;
        font-size: 14px;
    }

    button {
        width: 100%;
        font-size: 14px;
    }

    .result input {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .menu-container {
        padding: 0 10px;
    }

    .menu-title {
        font-size: 20px;
    }

    .menu-item {
        font-size: 14px;
    }

    .container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 12px;
    }

    input {
        width: 95%;
        font-size: 12px;
    }

    button {
        font-size: 12px;
    }

    .result input {
        width: 90%;
    }
}

/* Spinner Styles */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00B050;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@media (max-width: 480px) {
    .container {
        min-height: calc(100vh - 200px); /* Adjust as needed */
    }
}