html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.topbar {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #FCEFB4;
    border-bottom: solid #F9DC5C 5px;
}

.logotip img {
    width: 300px;
    max-width: 88vw;
    height: auto;
    display: block;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.Mini-logotip {
    padding: 20px;
    display: inline-block;
    border-bottom: solid #F9DC5C 5px;
}

nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 3rem;
}

.povezave {
    display: flex;
    gap: 3rem;
    margin-right: 4rem;
}

.povezave a {
    text-decoration: none;
    color: rgb(102, 102, 102);
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.povezave a.aktiven {
    border-bottom: solid black 2px;
    color: black;
    pointer-events: none;
}

.povezave a:hover {
    color: #a8a07a;
    transform: scale(1.05);
}

.meni {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-left: 1rem;
}

@media (max-width: 600px) {
    .topbar {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .logotip img {
        height: 70px;
        width: auto;
        margin-right: 7rem;
    }

    nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }

    .meni {
        display: block;
    }

    .povezave {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        width: 100%;
        flex-direction: column;
        gap: 1.2rem;
        margin-right: 0;
        text-align: center;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    .povezave.odprto {
        max-height: 320px;
        opacity: 1;
    }

    .povezave a.aktiven {
        border-bottom: none;
        text-decoration: underline;
        color: black;
    }
}
