
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap'); /* iskreno ne znam sto sam ovako ali ajde */

body {
    background-image: url('slike/pozadina.png');
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

#naslov {
    width: 100%;
    height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pi-wrapper {
    position: relative;
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#pi-centar {
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0px 0px 20px rgba(0,0,0,0.2));
    transition: transform 0.5s ease;
}

#pi-centar:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

#pi-text {
    position: absolute;
    color: rgba(0, 0, 0, 0.7);
    font-size: 1rem;
    line-height: 1.1;
    text-align: center;
    white-space: pre;
    z-index: 1;
    width: 0;
    overflow: hidden;
    animation: kucanje 6s steps(200) forwards;
}

@keyframes kucanje {
    from { width: 0%; }
    to { width: 100%; }
}

#freimovi {
    width: 90%;
    margin: 0 auto;
    height: 40vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.frame {
    width: 28%;
    background: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.frame:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.frame img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.sp {
    margin: 5px 0;
    text-align: center;
}

h1.sp {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
}

p.sp {
    font-size: 0.85rem;
    color: #444;
}

.dugme-lepo {
    background: #222;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.dugme-lepo:hover {
    background: #4787ff; 
    box-shadow: 0 5px 15px rgba(64, 77, 255, 0.4);
    transform: scale(1.05);
}

.kontejner-tekst {
    width: 70%;
    max-height: 80vh;
    margin: 5vh auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow-y: auto;
    line-height: 1.7;
    animation: pojavljivanje 0.8s ease-out;
}

@keyframes pojavljivanje {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.kontejner-tekst h1 {
    font-size: 2.5rem;
    color: #111;
    margin-bottom: 20px;
    border-left: 5px solid #4787ff;
    padding-left: 15px;
}

.kontejner-tekst p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}
@media (max-width:480px) {
  
    .kontejner-tekst{
        font-size: 1.2em;
        text-align: justify;
    }
    #freimovi{
        width: 100%;
    }
    .dugme-lepo{
        font-size: 0.8em;
    }

}