@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #32a2a8;
    overflow-x: hidden;
}

.app {
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    margin: 0 auto ;
    border-radius: 10px;
    padding: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.app h1{
    font-size: 25px;
    color: #001e4d;
    font-weight: 600;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
}

.quiz{
    padding: 0px 0px;
}

.quiz h2#question{
    font-size: 18px;
    color: #001e4d;
    font-weight: 600;
	padding: 10px 20px 25px 20px;
}

/* Почетни инфо о квизу */
#instructions {
    margin-bottom: 20px;
    text-align: center;
}

#start-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

#start-btn:hover {
    background-color: #0056b3;
}

 #next-btn{
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

#next-btn:hover {
    background-color: #0056b3;
}

/* Dodajemo stil za slike u pitanjima */
.quiz h2#question img {
    max-width: 100%; /* Da bismo osigurali da slika ne prelazi širinu kontejnera */
    margin-bottom: 10px; /* Dodajemo malo razmaka ispod slike */
}

/* dodatni stilovi slike */


#answer-buttons .btn{
    color: #222;
    font-weight: 500;
    width: 100%;
    border: 1px solid #222;
    padding: 10px;
    margin: 10px 0;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    transition: 0.3s ease-in-out;
}

#answer-buttons .btn:hover:not([disabled]){
     background-color: #222; 
     color: #fff; 
} 

#answer-buttons .btn:disabled{
    cursor: no-drop;
}

.correct{
  background-color: #9aeabc;  
}

.incorrect{
    background-color: #ff9393;
}

.shake{
    animation-name: shake;
    animation-duration: 0.2s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: 2;
}

@keyframes shake {
    0% { transform: translateX(0) }
    25% { transform: translateX(20px)}
    50% { transform: translateX(-5px)}
    75% { transform: translateX(20px)}
    100% { transform: translateX(0)}
  }

  @media screen and (min-width: 320px) and (max-width: 767px) {
    .app{
        padding: 19px 21px;
    }
  }
  
  /* centriranje slike u sredinu */
  .quiz img {
    display: block; /* Osigurava da margini rade kako treba */
    margin: auto; /* Margine na auto centriraju sliku */
}

/* tajmer u isti red sa imenom kviza */
.app {
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer {
    text-align: right;
    margin-right: 20px; /* prilagodite ovu vrednost po potrebi */
}

/* Погођена и преостала питања */
#score {
    text-align: center;
    margin-top: 20px;
}

#score-text {
    color: #666;
    font-size: 16px;
}

#score-text span {
    font-weight: bold;
    color: #333;
}