* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    color: #3b3b3b;
    background-color: #f1f1f1;
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.box {
    background-color: #89c9b8;
    width: 80%;
    max-width: 500px;
    height: auto;
    font-size: 1.5rem;
    text-align: center;
    color: #3b3b3b;
    margin: 2rem auto;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

a {
    text-decoration: none;
    color: #4caf50;
    font-weight: bold;
    margin: 10px;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

a:hover {
    color: #ffffff;
    background-color: #388e3c;
    transform: translateY(-5px);
}

/* Glavni naslov */
h1 {
    color: #3b3b3b;
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: fadeIn 1.5s ease-out;
}

h2 {
    color: #3b3b3b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#box1, #box2, #box3 {
    background-color: #89c9b8;
    width: 90%;
    max-width: 700px;
    font-size: 1.5rem;
    text-align: center;
    color: #3b3b3b;
    margin: 2rem auto;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.izbornik1, .izbornik2, .izbornik3, .izbornik4, .izbornik5 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 10px;
}

.izbornik1 a, .izbornik2 a, .izbornik3 a, .izbornik4 a, .izbornik5 a {
    min-width: 160px;
    margin: 10px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    #box1, #box2, #box3 {
        width: 95%;
    }

    .box {
        width: 90%;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .izbornik1, .izbornik2, .izbornik3, .izbornik4, .izbornik5 {
        flex-direction: column;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.izbornik1, .izbornik2, .izbornik3, .izbornik4, .izbornik5 {
    animation: fadeInUp 1s ease-out;
}
