/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0 auto; /* Dodajemy auto, aby wyśrodkować stronę */
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1000px; /* Dodajemy maksymalną szerokość */
}

header, footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

header h1, footer p {
    margin: 0;
}

header nav {
    margin: 1rem 0;
}

header nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
}

img.lang-icon-en {
    /* ustawiamy początkową ikonkę */
    content: url('./img/gb.png');
    width: 40px;
    height: 30px;
}

img.lang-icon {
    width: 40px;
    height: 30px;
}

img.lang-icon-en:hover {
    /* po najechaniu zmieniamy ikonkę */
    content: url('./img/us.png');
    width: 40px;
    height: 30px;
}

main {
    flex: 1;
    padding: 1rem;
}

section {
    background: white;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-top: 0;
}

/* Nowoczesny styl dla formularza */

form {
    max-width: 400px;
    margin: 0 auto;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    padding: 0.5rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #555;
}

/* Dodanie Captchy */

.captcha-container {
    margin-bottom: 1rem;
}

.captcha-image {
    display: block;
    margin-bottom: 0.5rem;
}

.captcha-refresh {
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
}

.captcha-input {
    width: calc(100% - 110px);
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

@media screen and (max-width: 480px) {
    input[type="text"],
    input[type="email"],
    textarea,
    .captcha-input {
        width: 100%;
    }
}
