body, html {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: start;
   /* background-color: black; */
   background: none;
    font-family: "Montserrat", sans-serif;
    overflow: hidden;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



#start-button {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;

    /* Dynamic Scaling Relative to Video Size */
    width: 15vw;     /* 12% of video width */
    height: 7vw;     /* 8% of video height */


    /* Text and Button Design */
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 2.5vw;  /* Scales text size relative to video size */
    background-color: #2359A9;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    z-index: 3;
    display: block;  /* Always visible */
}

#start-button:hover {
    transform: translate(-50%, -50%) scale(1.1); /* Slight zoom effect */
}

h1 {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
   /* text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3); */
    font-size: 3.5vw;
    z-index: 10;
    width: 100%;
    text-align: center;
}

h2 {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 3vw;
    font-weight: normal;
    z-index: 10;
    text-align: center;
}

#logoINTRO {
    position: absolute;
    top: 65%;
    left: 43%;
    width: 15%;
    z-index: 5;
}

#video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.custom-player {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    box-sizing: border-box;
    z-index: 2;
}

.custom-player.active {
    visibility: visible;  /* Ensures it's properly displayed */
    opacity: 1;            /* Smooth appearance effect */
    width: 100%;           /* Full width after visibility change */
}

.player-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 15px;
}

.player-progress {
    flex: 1;
    margin: 0 10px;
    height: 5px;
    background: #fff;
    border: none;
    cursor: pointer;
}

.player-btn:hover {
    color: #00aaff;
}

/* Responsive adjustments */
@media (max-width: 768px) {


    .player-progress {
        height: 3px;
    }

    .player-btn {
        font-size: 16px;
    }
}


/* ========================= */
/* GUMBEKI */
/* ========================= */

#primjenaBtn1 {
    position: absolute;
    top: 20%;
    left: 5%;
    font-size: 1.5vw;
}


#primjenaBtn2 {
    position: absolute;
    top: 40%;
    left: 5%;
    font-size: 1.5vw;
}

#primjenaBtn3 {
    position: absolute;
    top: 60%;
    left: 5%;
    font-size: 1.5vw;
}

 #ReplayBtn {
    position: absolute;
    top: 20%;
    left: 15%;
    animation-delay: 0.2s; /* delay animation start */
}

#toAnelgeticiBtn {
    position: absolute;
    top: 20%;
    left: 78%;
    animation-delay: 0.2s; /* delay animation start */
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.3);
}

 #toUsporedbaBtn {
    position: absolute;
    top: 40%;
    left: 15%;
    animation-delay: 0.2s; /* delay animation start */
}

 #toDjelovanjeBtn {
    position: absolute;
    top: 20%;
    left: 80%;
    animation-delay: 0.2s; /* delay animation start */
}

#closeOverlayBtn {
    position: absolute;
    top: 5%;
    left: 80%;
    animation-delay: 0.2s; /* delay animation start */
    z-index: 1000;
        }

 #sastojak1Btn {
    position: absolute;
    top: 20%;
    left: 15%;
    animation-delay: 0.2s; /* delay animation start */
}

#sastojak2Btn {
    position: absolute;
    top: 40%;
    left: 15%;
    animation-delay: 0.2s; /* delay animation start */
}
 
 #skipIntroBtn {
    position: absolute;
    top: 5%;
    left: 80%;
    animation-delay: 0.2s; /* delay animation start */
    
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

 
#sastojciBtn {
    position: absolute;
    top: 15%;
    left: 10%;
    animation-delay: 0.2s; /* delay animation start */
    
}

#djelovanjeBtn {
    position: absolute;
    top: 30%;
    left: 10%;
    animation-delay: 0.3s; /* delay animation start */
}

#indikacijeBtn {
    position: absolute;
    top: 45%;
    left: 10%;
    animation-delay: 0.4s; /* delay animation start */
}

#upozorenjaBtn {
    position: absolute;
    top: 60%;
    left: 10%;
    animation-delay: 0.5s; /* delay animation start */
}



#replay-audio-btn {
    position: absolute;
    top: 7%;
    left: 85%;
    font-size: 1vw;
	width: 8%;
    height: 8%;
    min-width: 60px;
    min-height: 40px;
}

#image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

#indikacijeImage {
    width: 100%;
    height: auto;
    display: block;
}

#pricajmoBtn {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 20%;
}

#goreBtn {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 20%;
}

#gore2Btn {
    position: absolute;
    top: 10%;
    left: 32%;
    width: 20%;
}

#gore3Btn {
    position: absolute;
    top: 10%;
    left: 54%;
    width: 20%;
}

#imamPitanjeBtn {
    position: absolute;
    top: 35%;
    left: 10%;
    transform: translateX(-50%);
    width: 20%;
}

#cjelina5-Btn3 {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateX(-50%);
    width: 20%;
}

#PitanjeBtn {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateX(-50%);
    width: 20%;
}

#CetvrtiBtn {
    position: absolute;
    top: 65%;
    left: 10%;
    transform: translateX(-50%);
    width: 20%;
}

#zaKogaBtn {
    position: absolute;
    top: 50%;
    left: 10%;
     width: 20%;
    height: 13%;
}

#HomeBtn {
    position: absolute;
    top: 5%;
    left: 85%;
    
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8vh;
    height: 8vh;
    font-size: 3vh;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

#HomeBtn:hover {
    background-color: #E03F4F;
}

/* ========================= */
/* Interactive Button Design */
/* ========================= */
.interactive-btn {
    background: #2359A9;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;

    /* Dynamic Scaling */
    width: 15%;
    height: 10%;
    min-width: 40px;
    min-height: 30px;
    font-size: 1.8vw;

    /* Smooth Transitions */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;

    /*ANIMATE IN - Using animation-delay to avoid transform conflict */
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 0.2s; /* Staggered start animation */

    /* Additional Interactive Features */
    outline: none;
}

.menu-btn {
    background: #2359A9;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 1px;

    /* Dynamic Scaling */
    width: 20%;
    height: 10%;
    min-width: 40px;
    min-height: 30px;
    font-size: 1.5vw;

    /* Smooth Transitions */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;

    /*ANIMATE IN - Using animation-delay to avoid transform conflict */
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: 0.2s; /* Staggered start animation */

    /* Additional Interactive Features */
    outline: none;
}

/* ========================= */
/* Hover Effect - Enlarges Button */
/* ========================= */
.interactive-btn:hover {
    background: #E03F4F;
    transform: scale(1.1); /* Only scale, no translate */
}

.menu-btn:hover {
    background: #E03F4F;
    transform: scale(1.1); /* Only scale, no translate */
}

/* ========================= */
/* Click Animation */
/* ========================= */
.interactive-btn:active {
    transform: scale(0.95);  /* Click feedback */
    background: #164F7D; /* Darker tone */
}

/* ========================= */
/* Disabled Button */
/* ========================= */
.interactive-btn:disabled {
    background: #888;
    color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: scale(1);
}

/* ========================= */
/* Fullscreen Mode for Interactive Button */
/* ========================= */
:fullscreen .interactive-btn {
    display: block;
    width: 20%;
    height: auto;
    font-size: 1.5rem;
}

/* ========================= */
/* Keyframe Animation for Smooth Fade In */
/* ========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none; /* Explicitly reset transform to avoid conflict */
    }
}


/* ========================= */
/* Overlay video sastojci */
/* ========================= */

 #overlayVideoContainer {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 999;
        }

        #overlayVideo {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        #showVideoBtn {
            position: absolute;
            top: 20px;
            left: 20px;
            padding: 10px 20px;
            background-color: #4CAF50;
            color: #fff;
            border: none;
            cursor: pointer;
        }