* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;   
}

body {
    font-family: Arial, sans-serif;
    color: #333;
}

header {
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    white-space: nowrap;
    overflow: hidden;
    font-size: 2.5rem;
    color: black;
    animation: fadeIn 1.5s ease-out forwards;
}

header img {
    width: 100px;
    height: 100px;
    margin-left: 10px;
}

nav {
    white-space: nowrap;
    overflow: hidden;
    background-color: #333;
    padding: 10px;
    text-align: center;
    animation: fadeIn 1.5s ease-out forwards;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 20px;
    font-weight: bold;
}

nav a:hover {
    color: #00a4f0;
    transition: 0.5s ease all;
}

section {
    padding: 40px 20px;
    background-color: #f4f4f4;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 8px;
    font-weight: bold;
}

#radovi a {
    color: #00a4f0;
    text-decoration: none;
}

.vjestine-html-css-js {
    padding: 20px;
}

#vjestine ul {
    list-style-type: none;
}

#vjestine img {
    width: 160px;
    height: 100px;
    margin-right: 10px;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 5px;
}

footer p {
    font-size: 20px;
    font-weight: bold;
    padding-top: 20px;
    padding-right: 15px;
}

#kontakt a {
    color: #00a4f0;
    text-decoration: none;
}

p {
    font-size: 1.2rem;
    padding: 15px 0;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #ff0000;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#hamburger {
    display: none;
}

.projekt-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.projekt-card h3 {
    margin-bottom: 10px;
}

.btn-projekt:hover {
    background-color: #ffd000;
    color: #fff;
    transition: 0.5s ease all;
    border-radius: 5px;
    padding: 5px 10px;
}

/* mobiteli */

@media (max-width: 768px) {
    header h1 {
        font-size: 25px;
    }

    #hamburger {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 30px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 1px;
        background-color: #333;
        padding: 10px;
        border-radius: 5px;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu a {
        margin: 10px 0;
    }

    #vjestine img {
        width: 120px;
        height: 80px;
    }

    footer p {
        font-size: 15px;
        font-weight: bold;
        margin-right: 50px;
        margin-bottom: 10px;
    }

    #backToTop {
        padding: 5px 15px;
        font-size: 20px;
        right: 20px;
    }

    .projekt-card {
        padding: 20px;
        margin-top: 20px;
    }
}

/* keyframeovi */

@keyframes fadeIn {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}