* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    margin: 0;
}

#okvir {
    width: 100%;
    max-width: 1200px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 80px;
}

header .logo h1 {
    font-size: 36px;
    color: #4CAF50;
    font-weight: bold;
    letter-spacing: 2px;
}


nav {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
}

nav ul li {
    margin: 0 20px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4CAF50;
}

main {
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.content {
    margin-bottom: 40px;
}

.content h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.content h2 {
    font-size: 20px;
    color: #777;
    margin-bottom: 10px;
}


form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    display: inline-block;
    margin-bottom: 40px;
    width: 100%;
    max-width: 500px; 
}

form input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

form input:focus {
    border-color: #4CAF50;
}

form button {
    width: 100%;
    padding: 14px;
    background-color: #4CAF50;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #45a049;
}


#rezultati {
    margin-top: 30px;
    text-align: center;
}

#rezultati h3 {
    font-size: 26px;
    color: #000000;
    margin-bottom: 20px;
}

#rezultati p {
    font-size: 20px;
    color: #000000;
    margin: 10px 0;
}

#slika {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

#slika img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}




@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    #okvir {
        padding: 20px;
        margin: 10px;
    }

    header .logo h1 {
        font-size: 28px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    form {
        width: 100%;
        max-width: 100%;
    }

    form input,
    form button {
        font-size: 16px;
    }

    #slika img {
        max-width: 300px;
    }
}




@media screen and (max-width: 480px) {
    header .logo h1 {
        font-size: 24px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    form {
        width: 100%;
        max-width: 100%;
    }

    form input,
    form button {
        font-size: 14px;
    }

    #slika img {
        max-width: 250px;
    }
}
