* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Poppins", sans-serif;
}


.container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: #5C90FF;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    width: 30%;
    height: auto;
    transition: width 0.3s ease-in-out;
}

/* Hamburger meni */
.hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

/* Navigacijski stavci */
.nav-items {
    display: flex;
    gap: 45px;
    white-space: nowrap;
}

.nav-item {
    color: #FFF;
    font-size: 24px;
    font-weight: 400;
    text-decoration: none;
}


/* Animacija za prikazivanje stavki */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/*Kvizovi*/
#kvizovi {
    padding-top: 80px;
    padding-bottom: 445px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.kvizovi-content-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

h1 {
    margin-bottom: 100px;
    color: #000;
    font-size: 64px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.kviz-btn {
    width: 33%;
    height: 200px;
    flex-shrink: 0;
    border-radius: 15px;
    background: #5C90FF;
    color: #FFF;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border: none;
   transition: all 0.4s ease;
}

.kviz-btn:hover {
    background: #154eca;
    letter-spacing: 1px;
    -webkit-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
    -moz-box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.57);
    box-shadow: 5px 40px -10px rgba(0, 0, 0, 0.57);
}

/* Footer styling */
.footer {
    background-color: #5C90FF;
    color: white;
    padding: 40px 20px 20px 20px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
}

.footer-top {
    text-align: right;
    margin-bottom: 30px;
    padding-right: 8vw;
  }
  
  .footer-nav {
    display: inline-flex; /* Prati širinu sadržaja */
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5vw;
    margin-bottom: 10px;
    border-bottom: 3px solid #ffffff30; /* Border ispod linkova */
    padding-bottom: 10px; /* Mali razmak iznad bordera */
  }

.footer-nav a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-nav a:hover::after {
    transform: scaleX(1);
}


.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-right: 26vw;
}

.footer-logo img {
    width: 350px;
    margin-left: 10vw;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    text-align: left;
    gap: 60px;
}

.footer-section img {
    aspect-ratio: 1/1;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.footer-section p,
.footer-section a {
    font-size: 16px;
    color: white;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px; /* razmak između ikone i teksta */
    margin-bottom: 10px; /* razmak između redova */
}

.footer-contact img {
    width: 24px; /* svi ikonice iste širine */
    height: 24px; /* svi ikonice iste visine */
    object-fit: contain; /* da ne iskrive */
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #ffffff30;
    flex-direction: row;
    padding-top: 20px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 1vw;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 1100px) {

    .footer-top{
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-right:  0px;
    }

    .footer-container {
        margin: 0 0 0 0 ;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
    }
    
    .footer-logo{
        margin-bottom: 30px;
    }
    .footer-logo img{
        margin-left: 0px;
    }
    .footer-content {
      justify-content: center;
    }
  }

@media  (max-width: 600px){

    .footer-top {
        max-width: 400px; /* ili po potrebi, da ne idu preširoko */
        margin: 0 auto;
      }
    
      .footer-top a:nth-child(1),
      .footer-top a:nth-child(2) {
        width: 45%;
      }
    
      .footer-top a:nth-child(3),
      .footer-top a:nth-child(4) {
        width: 45%;
      }
    
      .footer-top a:nth-child(5) {
        margin-top: 10px;
        width: 100%;
      }

      .footer-logo{
        margin-top: 30px;
      }

}
  
@media  (max-width: 450px){
    .footer-top{
        max-width: 300px;
    }
    .footer-logo img{
        width: 250px;
    }
}

@media  (max-width: 320px){
    .footer-top{
        max-width: 300px;
    }
    .footer-logo img{
        width: 200px;
    }
}


/*Responsive*/
@media screen and (max-width: 1800px) {
    h1 {
        font-size: 60px;
        margin-bottom: 150px;
    }

    .kviz-btn {
        width: 30%;
        height: 160px;
        font-size: 24px;
    }
}

@media screen and (max-width: 1500px) {
    h1 {
        font-size: 56px;
        margin-bottom: 180px;
    }

    .kviz-btn {
        width: 33%;
        height: 129.6px;
        font-size: 20px;
    }
}

@media screen and (max-width: 1250px) {
    h1 {
        font-size: 52px;
        margin-bottom: 200px;
    }

    .kviz-btn {
        width: 33%;
        height: 120px;
        font-size: 16px;
    }
    .logo-img {
        width: 200px;
        height: auto;
    }
}


@media only screen and (max-width: 850px) {
    

    /* Sakrij navigacijske linkove na manjim ekranima */
    .nav-items {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #5C90FF;
        position: absolute;
        top: 100px;
        left: 0;
        z-index: 999;
        padding-top: 20px;
        gap: 0;
    }

    .nav-item {
        padding: 15px;
        text-align: center;
        color: white;
        font-size: 20px;
        border-top: 1px solid #FFF;
        transition: transform 0.3s ease-in-out;
    }

    .nav-item:first-child {
        border-top: none;
    }

    /* Prikazivanje hamburger menija */
    .hamburger {
        display: block;
    }

    /* Aktiviranje navigacijskih stavki nakon klika na hamburger */
    .nav-items.active {
        display: flex;
    }

    /* Animacija za otvaranje menija */
    .nav-items.active .nav-item {
        opacity: 0;
        animation: slideIn 0.5s forwards;
        padding: 40px;
    }

    /* Animacija za izrada nav stavki */
    .nav-items.active .nav-item:nth-child(1) {
        animation-delay: 0.2s;
    }

    .nav-items.active .nav-item:nth-child(2) {
        animation-delay: 0.3s;
    }

    .nav-items.active .nav-item:nth-child(3) {
        animation-delay: 0.4s;
    }

    .nav-items.active .nav-item:nth-child(4) {
        animation-delay: 0.5s;
    }

    /* Hamburger ikona (tri linije) */
    .hamburger div {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 6px 0;
        transition: 0.3s;
    }

    /* Transformacija hamburgera u X (kada je otvoren) */
    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg);
        position: relative;
        top: 8px;
    }

    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg);
        position: relative;
        top: -10px;
    }



}


@media screen and (max-width: 800px) {
    #kvizovi {
        padding-bottom: 350px;
    }

    h1 {
        font-size: 48px;
        margin-bottom: 100px;
    }

    .kvizovi-content-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 100px;
    }

    .kviz-btn {
        width: 400px;
        height: 100px;
        font-size: 20px;
    }

    .footer-down {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }

    .kontakt {
        gap: 5px;
    }
    
    .copyright {
        order: 3;
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cookies {
        gap: 5px;
        order: 2;
    }

    .cookies h3 {
        text-align: left;
    }
}

@media screen and (max-width: 700px) {
    .footer-up img {
        width: 40%;
        height: auto;
    }

    .cookies h3 {
        font-size: 24px;
    }
    
    .cookies h4 {
        font-size: 16px;
    }

    .copyright {
        font-size: 12px;
    }

    .kontakt h3 {
        font-size: 24px;
    }
    
    .kontakt h4 {
        font-size: 16px;
    }
}

@media screen and (max-width: 550px) {
    h1 {
        font-size: 40px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 36px;
    }

    .kviz-btn {
        width: 360px;
        height: 100px;
        font-size: 16px;
    }
}

@media screen and (max-width: 440px) {
    h1 {
        font-size: 32px;
    }

    .kviz-btn {
        width: 330px;
        height: 100px;
        font-size: 16px;
    }

    .cookies h3 {
        font-size: 20px;
    }
    
    .cookies h4 {
        font-size: 12px;
    }

    .copyright {
        font-size: 8px;
    }

    .kontakt h3 {
        font-size: 20px;
    }
    
    .kontakt h4 {
        font-size: 12px;
    }
}

@media screen and (max-width: 350px) {
    h1 {
        font-size: 24px;
    }

    .kviz-btn {
        width: 280px;
        height: 90px;
        font-size: 12px;
    }
}





