@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Playfair+Display:wght@600&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #535251;
    color: #2b2116;
    background-image: url('snake.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

header {
    background-color: #2e2e2e;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Playfair Display', serif;
}

a {
    color: #d4d4d4;
}
header h1 {
    margin: 0;
    color: white;
    margin-left: 1.5rem;
    text-decoration: none;
    font-size: 1rem;
}

header nav a:hover {
    text-decoration: underline;
}

.kontejner {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    max-width: 1100px;
    margin: 2rem auto;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(52, 75, 43, 0.4);
}

.tekst-sekcija {
    flex: 1.5;
    max-width: 600px;
    color: #1e1e1e;
}

.tekst-sekcija h1 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    font-size: 1.5rem;
}

.forma-sekcija,
form {
    flex: 1;
    max-width: 300px;
    background-color: #d4cfc3;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(43, 75, 46, 0.6);
    color: #1f1f1f;
}

input[type="number"],
input[type="submit"] {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    border: none;
    font-weight: 600;
}

input[type="number"] {
    background-color: #fff9f2;
    color: #2b4b35;
    border: 1px solid #3a5c33;
}

input[readonly] {
    background-color: #f0eae0;
    color: #555;
    cursor: not-allowed;
}

input[type="submit"] {
    background-color: #3a6b36;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 700;
    border: none;
}

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

footer.footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    font-family: 'Roboto', sans-serif;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer a {
    color: #9fc7ff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .kontejner {
        flex-direction: column;
        padding: 20px;
    }

    .tekst-sekcija,
    .forma-sekcija {
        max-width: 100%;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .footer {
        font-size: 0.8rem;
    }
}
