/* Resetovanje margina i centriranje celog tela */
/* Modernija pozadina sa nežnim gradientom */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #e6e9f0, #eef1f5); /* Svetliji i mekši gradient */
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Stilizacija naslova */
h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #333; /* Tamnosiva boja */
}

/* Centriranje GIF slike */
img {
    display: block;
    margin: 0 auto;
    width: 250px; /* Prilagođavanje veličine GIF-a */
}

/* Centriranje dugmadi u kolonu */
.button-container {
    display: flex;
    flex-direction: column; /* Postavlja dugmad jedno ispod drugog */
    align-items: center; /* Centriranje */
    justify-content: center;
    width: 100%;
}
/* Dugmad */
.menu-button {
    background: linear-gradient(90deg, #007bff, #00ccff);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 30px;
    margin: 10px 0;
    width: 250px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hover efekat - blago osvetljenje */
.menu-button:hover {
    transform: scale(1.07); /* Blago povećanje */
    background: linear-gradient(90deg, #0066cc, #0099ff);
    box-shadow: 0px 6px 20px rgba(0, 140, 255, 0.4); /* Svetliji sjaj */
}

/* Animacija rotacije slike */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animacija ljuljanja (Sway effect) */
@keyframes sway {
    0% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
    100% { transform: rotate(-4deg); }
}

/* Stilizacija slike sa efektom ljuljanja */
.rotating-image {
    width: 300px;  /* Prilagođena veličina slike */
    height: auto;
    animation: sway 3s ease-in-out infinite; /* Pokret levo-desno */
}


/* Importujemo lepši Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Stilizacija tela stranice */
body {
    font-family: 'Poppins', sans-serif; /* Moderan font */
    background: linear-gradient(to right, #f4f4f4, #dcdcdc); /* Blaga gradient pozadina */
    text-align: center;
}
/* Stilizacija modernog naslova */
.modern-title {
    font-size: 48px;  /* Veći naslov */
    font-weight: 600; /* Bold efekat */
    text-transform: uppercase; /* Velika slova */
    letter-spacing: 2px; /* Razmak između slova */
    background: linear-gradient(to right, #0066ff, #00ccff); /* Gradient efekat na tekst */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Omogućava gradient efekat */
    margin-bottom: 20px;
}

.image-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.switch-image {
    width: 50%;
    height: auto;
    display: block;
    margin: auto;
    animation: pulse 2s infinite ease-in-out, color-change 1s infinite alternate; /* Pulsiranje traje 2 sekunde, promena boje 1 sekundu */
    transition: opacity 1s ease-in-out; /* Fade-Out traje 1 sekundu */
}

/* 🎬 Pulsirajuća animacija */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* 🎭 Fade-out efekat za poslednje pulsiranje slike */
.fade-out {
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Postepeno nestajanje u trajanju poslednjeg pulsa */
}

/*Rotacija grafika*/
@keyframes rotateOut {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: rotate(180deg);
        opacity: 0;
    }
}

.rotate-exit {
    animation: rotateOut 1s ease-in-out forwards;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    font-size: 48px !important; /* Ovde menjaš veličinu slova */
    animation: typewriter 3s steps(30, end) forwards;
}




