/* Global styles */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Main layout */
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f4f4f4;
}

header {
    background-color: #004080;
    color: white;
    padding: 10px 0;
    text-align: center;
}

/* Form container */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    background-color: white;
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%; /* Ensure it takes full width up to max-width */

.success {
    color: green;
    background-color: #e7f4e4;
    border: 1px solid green;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.error {
    color: red;
    background-color: #f8d7da;
    border: 1px solid red;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="text"], textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="submit"], input[type="reset"] {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #5cb85c;
    color: white;
    cursor: pointer;
    margin-right: 5px;
    width: calc(50% - 10px);
}

input[type="reset"] {
    background-color: #d9534f;
}

footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}
        }
        #counter {
            font-size: 16px;
            color: green;
        }
        #counter.warning {
            color: red;
        }

button {
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin-top: 5px;
}

input[type="reset"]:hover,
input[type="submit"]:hover,
button:hover {
    background-color: #0056b3;
}

/* Dodatkowy odstęp między przyciskami */
button {
    margin-top: 10px;
}