@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');

::-webkit-scrollbar{
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


/*OVO TREBA PROVJERITI*/

:root{
    --naslov-color: #a8915a;
    --krugovi-boja: #a8915a;
    --footer-boja: white;
    --footer-plava: #222534;
    --slova-footer: #3a393f;
}

body {
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: pan-y;
}

/*PISMO DIZAJN*/


 /* BLOKADA SKROLA DOK JE KOVERTA TU */
        body.stop-scroll { 
            overflow: hidden !important; 
            height: 100vh; 
        }

        /* KOVERTA PREKO CELOG EKRANA */
        #overlay-pocetni {
            position: fixed;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 490px;
            height: 100vh;
            background-color: #ffffff; 
            z-index: 9999999;
            cursor: pointer;
            transition: opacity 0.8s ease, visibility 0.8s;
        }

        #overlay-pocetni img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* RASPROSTIRE SLIKU PREKO CELOG EKRANA BEZ IVICA */
            display: block;
        }

        .sakrij-uvertiru { 
            opacity: 0 !important; 
            visibility: hidden !important; 
            pointer-events: none; 
        }
        
        
/* Uklanja plavi odsjaj na mobilnim telefonima */
#overlay-pocetni {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Postavljamo overlay kao kontejner za apsolutno pozicionirano dugme */
#overlay-pocetni {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Kreiramo "nevidljivo" dugme samo tamo gde je ikonica prsta */
.klik-zona {
    position: absolute;
    top: 35%;           /* Pozicionira zonu na visinu pečata */
    left: 50%;          /* Centrira horizontalno */
    transform: translate(-50%, -50%); /* Savršeno centriranje u odnosu na samu zonu */
    width: 180px;       /* Širina kruga pečata */
    height: 180px;      /* Visina kruga pečata */
    border-radius: 50%; /* Pravimo zonu okruglom da odgovara pečatu */
    background: transparent; 
    z-index: 10000000;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}


 /* OSTALO */       
.phone-container {
    width: 100vw;
    max-width: 490px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

header{
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* UKLONJENA SJENKA */
  /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); */
  position: sticky;
  top: 0;
  z-index: 1000;
  max-height: 50px;
  background-color: white; /* Dodana bijela pozadina da ne bude providan */
}

header .meni_logo .logo{
max-height: 50px;
margin-top: 5px;
}

section{
  margin-top: -7px;
}

.section-1 {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 0px;
}

.section-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-2 {
  position: relative;
  margin-top: -8px;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  /*OVO TREBA PROVJERITI*/
  background-image: url(Primjer-sa-slikom_022.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-2 h1{
  margin-top: 50px;
  text-align: center;
  color:  var(--naslov-color);
  font-family:  "Playfair Display", sans-serif;
  font-size: 34px;
  font-weight: 900;
}

/* ODBROJAVANJE - KRUGOVI */
#time{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

#time .circle{
  position: relative;
  width: 75px; /* POVEĆANO NA 75px */
  height: 75px; /* POVEĆANO NA 75px */
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

#time .circle::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 7px solid var(--krugovi-boja);
  border-radius: 50%;
}

#time .circle::after {
  content: '';
  position: absolute;
  width: 65px; /* Prilagođeno novoj veličini */
  height: 65px; /* Prilagođeno novoj veličini */
  background: var(--krugovi-boja);
  border-radius: 50%;
}

#time .circle svg{
  position: relative;
  width: 75px; /* POVEĆANO NA 75px */
  height: 75px; /* POVEĆANO NA 75px */
  transform: rotate(270deg);
  z-index: 10;
}

#time .circle svg circle{
  width: 100%;
  height: 100%;
  fill: transparent;
  stroke-width: 3; /* SMANJENA DEBLJINA LINIJE NA 3px */
  stroke: var(--clr);
  stroke-linecap: round;
  /* Novi obim za radijus 35 je oko 220 */
  stroke-dasharray: 220; 
  stroke-dashoffset: 220;
}

#time div{
  position: absolute;
  text-align: center;
  font-weight: 600;
  color: var(--clr);
  z-index: 10000;
  font-size: 1.2em; /* Malo veći font jer je krug veći */
}

#time div span{
  position: absolute;
  transform: translateX(-50%) translateY(-14px); /* Malo podešena pozicija */
  font-size: 0.25em;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-top: 3.5px;
}

/* TEKSTOVI ISPOD KRUGOVA */
.labels-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.label-box {
  width: 75px; /* Ista širina kao novi krugovi */
  text-align: center;
}

.label-box h3 {
  color: var(--naslov-color);
  font-family: "Playfair Display", sans-serif;
  font-size: 14px;
  margin-top: 5px;
}

.section-3 {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.section-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/*SEKCIJA SA MAPAMA I DUGAMDIMA*/

.section-lokacija {
    position: relative;
    width: 100%;
    line-height: 0; /* Uklanja prazan prostor ispod slike */
}

.section-lokacija img {
    width: 100%;
    height: auto;
}

.link-overlay {
    position: absolute;
    bottom: 5%;    /* Podešavaš koliko je visoko od dna (pokriva zonu dugmadi) */
    left: 0;
    width: 100%;
    height: 40%;   /* Visina koja pokriva oba dugmeta na slici */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;     /* Razmak između dva nevidljiva polja */
}

.map-link {
    width: 80%;    /* Širina nevidljivog polja (da odgovara dugmetu) */
    height: 60px;  /* Visina jednog dugmeta */
    background: transparent; /* Nevidljivo */
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* Da ne plavi pri kliku */
}


.footer .container{
  text-align: center;
}

/*RSVP*/

.section-rsvp {
    padding: 60px 20px;
    background-color: #fff;
    display: flex;
    justify-content: center;
}

.rsvp-card {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    min-height: 550px; /* Održava stabilnost dizajna */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 12px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(to bottom, #c5a35d, #e9d19b, #c5a35d);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 200px 200px 0 0; 
    text-align: center;
    position: relative;
}


.rsvp-card h2 {
    font-family: 'Playfair Display', serif;
    color: #3a393f;
    font-size: 28px;
    font-weight: 900 !important;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.rsvp-info, .rsvp-subinfo {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.rsvp-info strong {
    color: #a8915a;
}

.input-group {
    margin-top: 30px;
    border-bottom: 1px solid #c5a35d;
}

.input-group input {
    width: 100%;
    border: none;
    padding: 10px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    outline: none;
    background: transparent;
}

#submit-btn {
    margin-top: 40px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #c5a35d 0%, #e9d19b 50%, #c5a35d 100%);
    color: white;
    border: none;
    border-radius: 15px;
     font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 163, 93, 0.3);
}

#submit-btn:disabled {
    filter: grayscale(1);
}

.footer{
  margin-top: -7px;
  background: var(--footer-boja);
  font-size: 14px;
}

.footer .copyright {
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--slova-footer);
}

@media (max-width: 991px) {
  .footer .row{
      flex-direction: column;
      padding: 20px 0px;
  }
}

@media (max-width: 350px) {
  .section-1 img {
      object-fit: contain;
  }
}


/* ZA DUGME SAČUVAJ DATUM */

/* Centriranje cijelog bloka na sredinu */
.calendar-container {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    min-height: 100px;
}

.calendar-dropdown {
    position: relative;
    width: 72%;
    max-width: 350px; /* Možeš podesiti širinu po želji */
}

/* Tvoje stilizovano dugme */
#calendar-main-btn {
    width: 100%;
    padding: 18px 15px;
    background: linear-gradient(135deg, #c5a35d 0%, #e9d19b 50%, #c5a35d 100%);
    color: white;
    border: none;
    border-radius: 15px;
   font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(197, 163, 93, 0.3);
    text-transform: uppercase;
}

/* Stil za padajući meni */
.calendar-options {
    display: none; /* Sakriveno po defaultu */
    position: absolute;
    top: 60%; 
    left: 0;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

/* Linkovi u meniju */
.calendar-options a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.calendar-options a img {
    margin-right: 10px;
}

.calendar-options a:hover {
    background-color: #f9f9f9;
}

/* Animacija pojavljivanja */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Prikazivanje menija - kontroliše JS */
.show-menu {
    display: block !important;
}


/* SEKCIJA MUZIKA */

.audio-sekcija-kontejner {
    /* NOVA NARANDŽASTA TEMA */
    --plejer-bg: #ffffff;           /* Pozadina kartice ostaje čista bijela */
    --plejer-glavna: #F38B3C;      /* Tvoja čista narandžasta za dugmad i progres bar */
    --plejer-naslov: #7D3F12;      /* Tamno braon-narandžasta za kontrast (bolje od čisto crne) */
    --plejer-opis: #A6724E;        /* Nešto bljeđa nijansa za izvođača i vrijeme */
    --plejer-sjenka: rgba(0, 0, 0, 0.08);

    display: flex;
    justify-content: center;
    padding: 30px 15px;
}



/* Verzija za TAMNU TEMU - samo dodaš ovu klasu u HTML pored prve */
.audio-sekcija-kontejner.tamna-tema {
    --plejer-bg: #2c2c2c;
    --plejer-glavna: #e0ac81;
    --plejer-naslov: #ffffff;
    --plejer-opis: #cccccc;
    --plejer-sjenka: rgba(0, 0, 0, 0.3);
}

.audio-kartica-elegant {
    background: var(--plejer-bg);
    width: 100%;
    max-width: 320px;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px var(--plejer-sjenka);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-family: "Playfair Display", sans-serif;;
}

.audio-kartica-elegant h3 {
    color: var(--plejer-naslov);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.linija-razdvoji {
    height: 1px;
    background: var(--plejer-opis);
    opacity: 0.2;
    margin: 15px auto;
    width: 70%;
}

.info-pesma h4 { color: var(--plejer-naslov); margin: 5px 0; }
.info-pesma p { color: var(--plejer-opis); margin: 0 0 15px 0; font-size: 0.9rem; }

.vrijeme-prikaz {
    display: flex;
    justify-content: space-between;
    color: var(--plejer-opis);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

/* Stil za Progress Bar */
/* Osnovni stil za traku */
.progres-klizac {
    -webkit-appearance: none;
    width: 100%;
    height: 10px; /* Malo deblja da bi ivice došle do izražaja */
    border-radius: 10px;
    
    /* IVICE: Ovdje definišeš boju okvira linije */
    border: 1px solid var(--plejer-glavna); 
    background-color: #ffffff; /* Boja "praznog" dijela trake */
    
    /* PUNJENJE: Boja koja prati progres */
    background-image: linear-gradient(var(--plejer-glavna), var(--plejer-glavna));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    
    outline: none;
    cursor: pointer;
    
    margin-bottom: 15px;
}

/* Stil za kružić (Thumb) - neka on ostane bijel sa ivicom da se ističe */
.progres-klizac::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--plejer-glavna);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    margin-top: -1px; /* Centriranje u odnosu na traku */
}

.progres-klizac::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--plejer-glavna);
    cursor: pointer;
}

/* Kontrole */
.kontrole-omotac {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* --- FIKS ZA OKRUGLA DUGMAD --- */

.dugme-krug {
    -webkit-tap-highlight-color: transparent; /* Isključuje plavu pozadinu na klik */
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dugme-krug.glavno {
    width: 65px;
    height: 65px;
    background: var(--plejer-glavna);
    color: #fff;
    border: none;
    /* Centriranje ikone */
    display: flex;
    align-items: center;
    justify-content: center;
}

.dugme-krug.sporedno {
    width: 45px;
    height: 45px;
    background: transparent;
    color: var(--plejer-glavna);
    border: 1px solid var(--plejer-glavna);
    /* Osiguravamo da i ovdje bude krug */
    border-radius: 50% !important;
}

/* Sređivanje SVG-a unutar dugmadi da ne bježi */
.dugme-krug svg {
    display: block;
    fill: currentColor; /* Da naslijedi boju teksta koju smo zadali */
}

.dugme-krug:active {
    transform: scale(0.9);
}
