.video-container { 
    position: relative;
    width: 100%; 
    max-width: 650px;
    max-height: 380px;
    margin: auto; 
}

video { 
    width: 100%; 
    display: block; 
}
.video-nav { 
    background-color: #ccc;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex; 
    justify-content: space-between; 
    z-index: 2; /* Ensure navigation stays above the video */
    height: 40px;

}

.video-nav button { 
    background-color: #b53f3f;
    border: none; /* Border color is white */
    padding: 0px 46px; 
    cursor: pointer; 
    color: white; /* Text color is white */
    font-size: 13px;
    display: flex;
    align-items: center; 
    gap: 4px; /* 5px gap between the icon and the text */
}


.video-nav img {
    width: 20px;
    height: 20px;
}

#home, #prev {
    flex-direction: row; /* Icon + Text */
}

#next, #restart {
    flex-direction: row-reverse; /* Text + Icon */
}

#home, #prev, #next, #restart {
    /* margin-right: 5px;  */
}

#skip-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #b53f3f;
    border: none; /* Border color is white */
    padding: 10px 46px; 
    cursor: pointer; 
    color: white; /* Text color is white */
    font-size: 13px;
    display: none;
    z-index: 2; /* Ensure skip button stays above the video */
}
#start-panel, #question-panel, #question-second-panel, #feedback-panel, #feedbackThanks, #feedbackForm, #feedbackThanks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #E7E7E7; /* Dark overlay */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    
    justify-content: center;
    align-items: center;
    z-index: 1; /* Overlay is below the navigation but above the video */
    color: white;
    text-align: center;
    display: none; 
    }

#question-panel, #question-second-panel{
    /* background: transparent;; */
}

#second-answers{
    position: relative;
    top: 15%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolone */
    gap: 10px; /* razmak između dugmića */
    justify-items: center; /* centriraj po širini */
    align-items: center;   /* centriraj po visini */
    text-align: center;
    margin: 0 auto;
    padding-bottom: 45px;
    max-width: 370px; /* možeš prilagoditi */
}

#second-answers button {
    padding: 5px 10px;
    font-size: 13px;
    width: 90%;      /* zauzmi punu širinu kolone */
    box-sizing: border-box;
}

#answers {
    position: relative;
    display: block;
    text-align: center !important;
    align-items: center;
    top: 25%;
}

.answer-button {
    display: block;
    background-color: #b53f3f;
    color: #FFFFFF;
    font-weight: bold;
    border: none;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.5s ease forwards;
    margin: 10px auto;
    cursor: pointer; 
    width: 31%;
    font-size: 14px;
    padding: 5px;
    transition: background-color 0.3s ease;
}

.answer-button:hover {
    background-color: #009DD7;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


#start_title {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

#start-panel h2 {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

#start-btn {
    padding: 10px 20px;
    margin-top: 20px;
    font-size: 18px;
    width: 20%;
    cursor: pointer;
    background-color: #b53f3f;
    color: white;
    border: none;
    display: none;
}

#question-text{
    position: relative;
    top: 20%;
    background: #E7E7E7;
    color: #000;
}

#question-second-text{
    position: relative;
    top: 12%;
    background: #E7E7E7;
    color: #000;
}

#feedback-title1{
    position: relative;
    top: 20%;
    background: #E7E7E7;
    color: #000;
}

#feedback-title2{
    position: relative;
    top: 50%;
    background: #E7E7E7;
    color: #000;
    padding: 15px;
}

#feedback-buttons{
    position: relative;
}

#feedback-buttons button {
     display: inline-block; 
    background-color: #b53f3f;
    color: #FFFFFF;
    font-weight: bold;
    border: none;
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.5sease forwards;
    margin: 10px 5px auto;
    cursor: pointer;
    width: 31%;
    font-size: 14px;
    padding: 5px;
    transition: background-color 0.3sease;
}
#feedback-buttons button:hover {
    background-color: #009DD7;
}

.hidden-start {
    opacity: 0;
    transform: translateY(20px); /* ili -20px ako hoćeš da "iskoči odozgo" */
    pointer-events: none;
}


.fade-in {
    opacity: 1 !important;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}


#second-answers .continue-btn {
    background-color: #007bff;
    color: white;
    border-radius: 8px;
}

#feedbackText {
    position: relative;
    top: 30%;
    display: block;
    width: 100%;
    max-width: 400px;
    min-height: 100px;
    margin: 0 auto;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    resize: vertical;
   
}

#feedbackTex:focus{
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    background-color: #fff;
}

#feedbackThanks h3 {
    position: relative;
    top: 40%;
    background: #E7E7E7;
    color: #000;
}

#feedBackSubmit{
    display: block;
    position: relative;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    top: 40%;
    background-color: #b53f3f;
    color: #FFFFFF;
    font-weight: bold;
    border: none;
    opacity: 1;
    transform: translateY(-10px);
    animation: fadeInUp 0.5sease forwards;
    margin: 10px auto;
    cursor: pointer;
    width: 31%;
    font-size: 14px;
    padding: 5px;
    transition: background-color 0.3sease;
}

#feedbackForm h3 {
    position: relative;
    top: 25%;
    color: #000;
}


.credits-panel {
    position: relative;
    top: 75%;
    float: right;
    /* background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); */
    text-align: center;
    z-index: 9999;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.4s ease;
    animation: fadeInScale 0.5s forwards;
    right: 20px;
}

.credits-panel img {
    width: 25px;
    height: 25px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 1px solid #4A90E2;
    position: relative;
    top: 5px;
}

.credits-panel p {
    position: relative;
    top: 10px;
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    font-size: 12px;
    right: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Optional: for hiding it initially */
.hidden {
    display: none;
}
