:root {
    --navbar-height: 70px;
    --navbar-font-size: 14px;
}

navbar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    position: fixed;
    width: 100%;
    height: var(--navbar-height);
    padding: 0px var(--content-padding);
    background-color: rgba(255, 255, 255, 1);
    color: black;
    -webkit-box-shadow: var(--default-box-shadow); 
    box-shadow: var(--default-box-shadow);
    z-index: 5000;
}

navbar > a {
    display: flex;
    position: relative;
    align-items: center;
    height: 100%;
    width: auto;
    box-sizing: border-box;
    padding: 0px 10px;
    color: black;
    text-decoration: none;
    font-size: var(--navbar-font-size);
    font-weight: 500;
    opacity: 1;
}

navbar > a::after {
    position: absolute;
    content: "";
    height: 2px;
    padding: 0px;
    width: 0px;
    top: calc( (100% / 2) + (var(--navbar-font-size) / 2) + 4px );
    left: 10px;
    box-sizing: border-box;
    background-color: blue;
    transition: width 0.15s linear;
}

navbar > a[selected]::after,
navbar > a:focus::after,
navbar > a:hover::after {
    outline: none;
    width: calc(100% - 20px);
}

navbar > a:has(dropdown):hover > dropdown {
    height: auto;
}

navbar > a > dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    gap: 0px;
    min-width: 200px;
    right: 0px;
    height: 0px;
    background-color: lightgray;
    padding: 0px;
    transition: all 1.2s ease;
    overflow: hidden;
}

navbar > a > dropdown > p {
    display: flex;
    margin: 0px;
    padding: 10px 10px;
    font-size: 12px;
    background-color: white;
    cursor: pointer;
}

navbar > a > dropdown > p:hover {
    text-decoration: underline;
    background-color: lightgray;
}

navbar logo {
    content: "";
    margin-right: auto;
    margin-left: var(--responsity-padding);
    height: 100%;
    width: 160px;
    background: url("../images/logo.png") no-repeat center left;
    background-size: 100%;
    cursor: pointer;
}