@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&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&display=swap');

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    color: white;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
}

#naslovna {
    background-image: url('slike/pozadina_programiranje.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
    color: white;
}

h1 {
    font-size: 5em;
    color: white;
}

h2 {
    font-size: 3em;
    font-weight: bold;
    color: pink;
}

.glavniNaslovi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 90vh;
    text-align: center;
}

nav {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.669);
    z-index: 1000;
    padding: 1.2em 0;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav li {
    display: inline-block;
    padding: 1.5em;
}

nav a {
    text-decoration: none;
    font-size: 1.5em;
    color: aliceblue;
}

nav ul li a:hover {
    text-decoration: 0.2em underline;
    color: pink;
}

a {
    text-decoration: none;
    color: inherit;
}

.meni a {
    display: flex;
    align-items: center;
}

#o_meni {
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 3em 0;
}

.izgled {
    display: flex;
    align-items: center;
    max-width: 90%;
    width: 100%;
    gap: 3.7em;
}

.web_dizajn {
    width: 30%;
    height: auto;
    border-radius: 0.9em;
    box-shadow: 0 0.2em 0.5em rgba(0, 0, 0, 0.3);
}

.kvadrat {
    background-color: #1e1e1e;
    padding: 3.7em;
    border-radius: 0.9em;
    color: white;
    max-width: 50%;
}

.kvadrat h2 {
    margin-bottom: 0.5em;
}

.kvadrat p {
    font-size: 1.2em;
    line-height: 1.6em;
}

.kvadrat a {
    color: pink;
}

#radovi {
    background-color: black;
    padding: 3em;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radovi_izgled {
    display: flex;
    flex-wrap: wrap;
    gap: 10em;
    justify-content: center;
    max-width: 90%;
    width: 100%;
}

.predmet {
    text-align: center;
    margin: 0 auto;
    max-width: 50%;
}

.predmet h2 {
    font-size: 2.5em;
    color: pink;
    margin-bottom: 0.6em;
}

.predmet p {
    font-size: 1.2em;
    color: white;
    margin-bottom: 1.2em;
}

.pravokutnik {
    color: white;
    border: 0.3em solid pink;
    border-radius: 1.2em;
    cursor: pointer;
    margin: 0 1em;
    font-size: 1em;
    position: relative;
    padding: 0.6em 1.2em;
}

.pravokutnik h3 {
    font-size: 1.5em;
    background: white;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6em;
}

.dropdown {
    display: none;
    list-style: none;
    padding-left: 0;
    margin-top: 0.6em;
    background-color: black;
    border-radius: 0.6em;
    padding: 0.6em;
    width: 100%;
    position: absolute;
    left: 0;
    margin-top: 0.9em;
    z-index: 1000;
}


.pravokutnik:focus .dropdown,
.pravokutnik:active .dropdown {
    display: block;
}

.pravokutnik:not(:focus):not(:active) .dropdown {
    display: none;
}

.dropdown li {
    margin: 0.6em 0;
}

.dropdown li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

.dropdown li a:hover {
    color: pink;
    text-decoration: underline;
}

hr {
    margin: 0.6em 0;
}

footer {
    background-color: #1e1e1e;
    color: white;
    text-align: center;
    padding: 1.2em 0;
    font-size: 1em;
    border-top: 0.06em solid pink;
    margin-top: 3em;
}

.hamburger {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: white;
    padding: 0.3em;
    margin-left: auto;
}

#prekidac {
    display: none;
}

.linkovi {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

@media screen and (max-width: 728px) {
    .hamburger {
        display: block;
    }

    .linkovi {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        position: absolute;
        top: 4.3em;
        left: 0;
        padding: 0.6em 0;
    }

    #prekidac:checked ~ .linkovi {
        display: flex;
    }

    .linkovi li {
        text-align: center;
        padding: 0.6em 0;
    }

    .linkovi li a {
        font-size: 1.2em;
    }

    #naslovna h1 {
        font-size: 2.5em;
    }

    #naslovna h2 {
        font-size: 1.8em;
    }

    .glavniNaslovi {
        height: 80vh;
    }

    .izgled {
        flex-direction: column;
        gap: 1.8em;
    }

    .web_dizajn {
        width: 80%;
    }

    .kvadrat {
        max-width: 90%;
        padding: 1.2em;
    }

    .radovi_izgled {
        gap: 5em;
    }

    .predmet {
        max-width: 90%;
        margin-bottom: 3.7em;
    }

    .predmet h2 {
        margin-bottom: 1.2em;
    }

    .predmet p {
        margin-bottom: 1.8em;
    }

    .pravokutnik {
        margin: 0 0.5em;
        padding: 0.9em 1.5em;
        margin-bottom: 1.2em;
    }

    .pravokutnik h3 {
        font-size: 1.25em;
    }

    footer {
        padding: 0.6em 0;
        margin-top: 1.2em;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
    #naslovna h1 {
        font-size: 3.7em;
    }

    #naslovna h2 {
        font-size: 2.5em;
    }

    nav li {
        padding: 1.5em;
    }

    nav a {
        font-size: 1.3em;
    }

    .izgled {
        flex-direction: column;
        gap: 1.8em;
    }

    .web_dizajn {
        width: 50%;
    }

    .kvadrat {
        max-width: 80%;
        padding: 2.5em;
    }

    .radovi_izgled {
        gap: 5em;
    }

    .predmet {
        max-width: 70%;
    }

    .pravokutnik {
        margin: 0 0.5em;
        padding: 0.5em 1em;
    }

    .pravokutnik h3 {
        font-size: 1.25em;
    }

    footer {
        padding: 0.9em 0;
        margin-top: 1.8em;
    }
}