@import url('https://fonts.googleapis.com/css2?family=Nova+Mono&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    color: #000;
}
a, p, li {
    font-size: max(1vw, 16px); 
}
a, p, h1, h2, h3, h4, li {
       color: black !important; 
}
h2 {
    font-size: max(2vw, 20px);
}
:root {
    --header-height: 70px;
    background-color: #222;
}
ul {
    padding-left: 1vw;
    line-height: 1.5;
}
body {
    background-color: #222;
}
header{
    height: var(--header-height);
    width: 100%;
    position: fixed;
    display: flex;
    align-items: center;
    display: flex;
    top: 0;
    background-color: #222;
    left: 0;
    position: fixed;
    align-items: center;    
    z-index: 50000;
    transition: .5s;
    box-shadow: 0 0 1px #fff;

}
header #logo-section{
    display: flex;
    height: 60%;
    position: relative;
    align-items: center;
    gap: 10px;
    left: 4vw;
}
#logo-section span{
    color: rgb(255, 196, 0);
}
html {
    scroll-behavior: smooth;
}
header h2{
    font-size: 2.5rem;
    color: #fff !important;
}
header button{
    font-size: 34px;
    border: none;
    background-color: transparent;
    position: absolute;
    right: 50px;
}
#toggleNavButton{
    position: absolute;
    right: 3vw;
    font-weight:1000;
    color: #fff !important;
    font-size: 1.7rem;
    cursor: pointer;
    user-select: none;
}
#side-nav{
    position: fixed;
    right: 0;
    width: 0;
    bottom: 0;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 0 5px #000;
    transition: .2s ease-out;
}
#navbar-content {
    width: 100%;
    height: 100%;
    position: absolute;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: var(--header-height) 1fr;  
    transition: 1s;
    opacity: 0 ;
    grid-row-gap: 5vw;
}
#side-nav a{
    text-decoration: none;
    font-size: 16px;
    color: rgb(17, 17, 17);
    position: relative;
    font-weight: bold;
    transition: .5s all;
}
#side-nav a:hover{
    text-decoration: underline 2px;
    
}
#clNav {
    display: flex;
    align-items: center;
    width: 35px;
    background: url(https://cdn3.iconfinder.com/data/icons/ui-fundamentals/100/UI-F-32-512.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    left: 3vw;
    cursor: pointer;
}
.p{
    width: 900px;
    height: 900px;
}
#poveznice {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    padding:  0 3.30vw;
    line-height: 2.5;
    text-transform: uppercase;
}
main {
    padding-top: var(--header-height);
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 40vw repeat(2, 30vw) 60vw 60vw 150vw;
    row-gap: 5vw;
    margin-bottom: 5vw;
}
section {
    background-color: #fff;
}
.tekst {
    display: flex;
    flex-direction: column;
    gap:1vw;
    height: 100%;
    width: 60%;
    margin-inline: auto;
    justify-content: center;
}

.slika {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
section#bg {
    grid-column: 1/3;
    background-image: url(img/pozadina-h.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
section#js-a {
    width: 100%;
    height: 30vw;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: 1fr;

}
section#js-a .slika {
    background-image: url(https://i.morioh.com/5e00c58749.png);
}

#js-p-m {
    border: 1px solid rosybrown;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 500;
    grid-row: 3/4;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: 1fr 1fr;

}
#prednosti {
    margin-inline: auto;
    grid-row: 1/2;
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 4vw;
}

#mane {
    margin-inline: auto;
    grid-row: 2/3;
    width: 70%;
    padding-left: 4vw;
}
#slika {
    grid-column: 2/3;
    grid-row: 1/3;
    background-image: url(https://wallpaperaccess.com/full/1555146.png);
    background-size: cover;
    background-position: center;
}
#definicija-slika {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}
#varijable {
    grid-template-columns: 1fr;
    grid-template-rows: 5vw 1fr 2fr;
    grid-row: 4/5;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
}
 #var-slika {
    background-image: url(https://res.cloudinary.com/practicaldev/image/fetch/s--Bdflpd4C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3m73qk61gcc1agvthtgb.png);
    background-size: cover;
}
#primjer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-row: 1fr;
}
#kod-2 {
    grid-column:2/3;
}
#kod-1, #kod-2 {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
gap: 1vw;
}
#kod-1, #kod-2 code{
    font-size: 20px;
}


#skocni-okviri {
    grid-row: 5/6;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: 1fr 1fr;
}
#def-pop-up {
    grid-column: 1/4;
    grid-row: 1/2;
    display: flex;
    flex-direction: row;
}
#pop-up-tekst {
    width: 50%;
    height: 100%;
   padding-left: 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1vw;
}

#pop-up-slika {
    width: 50%;
    height: 100%;
    background-image: url(https://cdn.educba.com/academy/wp-content/uploads/2020/01/JavaScript-Popup-Box-5.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.pop-up-definicije {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    justify-content: center;
    padding: 0 5vw;
    }
    #sl1 {
        height: 40%;
        width: 80%;
        background-image: url(img/pu-alert.png);
        background-size: contain;
        background-repeat: no-repeat;
        margin-inline: auto;
        margin-top: 1vw;
    }
    #sl2 {
        height: 40%;
        width: 80%;
        background-image: url(img/pu-confirm.png);
        background-size: contain;
        background-repeat: no-repeat;
        margin-inline: auto;
        margin-top: 2.5vw;
    }
    #sl3 {
        height: 40%;
        width: 80%;
        background-image: url(img/pu-prompt.png);
        background-size: contain;
        background-repeat: no-repeat;
        margin-inline: auto;
        margin-top: 1vw;
    }
 #confirm, #alert, #prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    }
    .gumb {
        width: 200px;
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: rgba(34, 34, 34, 0.24);
        border-radius: 15px;
        color: white;
        font-weight: bold;
        letter-spacing: 1px;
        cursor: pointer;
        transition: .5s;
        margin-top: 1vw;
    }
    .gumb:hover {
        background-color: rgba(34, 34, 34, 0.596);
    }









.slijed {
    display: grid;
    grid-row: 6/7;
    grid-template-rows: 1fr 100px 50px 100px 1fr 100px 3fr;
    grid-template-columns: repeat(3,1fr);
    gap: 1vw;
}
.def-tekst {
    grid-row: 1/2;
    grid-column: 1/2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 10vw;
}
.def-slika {
    grid-row: 1/2;
    grid-column: 2/4;
    background-image: url(https://miro.medium.com/v2/resize:fit:2000/1*Q6kfK45mBINbCjGzefDKuA.jpeg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}
.naslov-1 {
    grid-row: 2/3;
    grid-column: 1/4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.def-prvi-red {
    grid-row: 3/4;
    grid-column: 1/4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.naslov-2 {
    grid-row: 4/5;
    grid-column: 1/4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.def-drugi-red {
    grid-row: 5/6;
    grid-column: 1/4;
    display: flex;
    flex-direction: row;
    gap: 1vw;
}
.lijevi-dio, .sredina, .desni-dio {
    width: 33.3%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
}       
.slika-grananje {
    width: 80%;
    height: 40%;
}
#ss1{
    background-image: url(img/if.png);
    background-size: contain;    background-repeat: no-repeat;
    background-position: center;
}
#ss2{
    background-image: url(img/else.jpg);
    background-size: contain;
    background-repeat: no-repeat;    background-position: center;
}

.naslov-3 {
    grid-row: 6/7;
    grid-column: 1/4;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1vw;
}
.def-treci-red {
    grid-row: 7/8;
    grid-column: 1/4;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(3,1fr);
}

#definicija-petlja {
    grid-row: 1/2;
    grid-column: 1/3;
    display: flex;
    flex-direction: row;

}
#tekst-petlja-definicija {
    width: 50%;
    height: 100%;
    padding: 0 10vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1vw;
}
#tekst-petlja-slika {
    width: 50%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(https://1.bp.blogspot.com/-AsyZIl-npGo/VlgsYgwhCwI/AAAAAAAAKAU/jFNeRcGMctI/s1600/l4.jpg);
}
.prvi-red-n3 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10vw;
    gap: 1vw;
}