@font-face {
    font-family: ubuntu;
    src: url("./f1_izdelek/fonts/Ubuntu-Regular.ttf");
}

* {
    box-sizing: inherit;
}

.fixed-header {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("../images/headerbackground.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom left;
    width: 95%;
    margin: 0 auto;
    padding: 10px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow: hidden;
    font-family: ubuntu;
    font-weight: bold;
    backdrop-filter: blur(5px);
    border-bottom: 3px solid #e10600;
}

a {
    color: white;
}

a:hover {
    transform: scale(1.1);
}

a:link {
    text-decoration: none;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 100px;
    width: 100%;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

nav a {
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e10600;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #e10600;
    transform: none;
}

.logo {
    margin: 0 20px;
    height: 50px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(-5deg) scale(1.1);
}

#logo {
    height: 50px;
    width: 80px;
}

@media (max-width: 768px) and (orientation: portrait) {
    .fixed-header {
        top: 3px;
        width: 95vw;
        padding-left: 0;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 12px;
        overflow: visible;
        text-overflow: clip;
    }

    .logo img {
        height: 35px;
    }
}

@media (max-width: 812px) and (orientation: landscape) {
    .fixed-header {
        top: 3px;
        width: 95vw;
        padding: 5px 15px;
        padding: auto;
    }

    nav {
        gap: 50px;
        justify-content: space-evenly;
    }

    nav a {
        font-size: 14px;
    }

    .logo img {
        height: 40px;
    }
}