:root {
  --iaem-blue: #280A9E;
  --iaem-yellow: #F7EF08;
}
.hCalendar-hidden {
    display: none;
}

#content-header {
    background: var(--iaem-blue);
    margin: 0;
    padding: 1rem;
    max-width: none;
}

#portal-globalnav-wrapper {
    margin: 0;

    a {
        color: var(--iaem-yellow);
        padding: 10px 15px;
        &:hover {
            color: black;
            background: white;
            text-decoration: none;
        }
    }

    [type="submit"],
    #portal-searchbox [type="submit"] {
        margin-left: 0.5em;
        margin-top: 0;
        vertical-align: top;
        background: none;
        border: none;
        color: var(--iaem-yellow);

        &:hover {
            background: white;
            color: black;
        }
    }

    .livesearch-results {
        width: auto !important;
        min-width: 20em;
        left: auto !important;
        right: 0;
        color: black;

        a {
            color: #007bb3;
            text-decoration: none;
            padding: auto auto;
            &:hover {
                color: #004666;
                text-decoration: underline;
                background: none;
            }
        }
    }
}

.navbar-nav,
#portal-globalnav-wrapper {
    background-color: var(--iaem-yellow);
    li {
        background-color: var(--iaem-yellow);

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

        a {
            font-weight: bold;
            color: black;
        }
        &.inPath,
        &.current,
        &:hover {
            background-color: white;
            & > a {
                background-color: unset;
            }
        }

        label {
            position: relative;
            margin-left: 0;
            &::after {
                color: black;
            }
        }
    }
}

.navbar {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-barceloneta {
  --bs-navbar-background: var(--iaem-blue);
}

@media (max-width: 992px) {
  .navbar-nav, #portal-globalnav-wrapper {
    & li {
      display: flow-root list-item;
    }
  }
}

.documentByLine {
    visibility: hidden;
}

img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

textarea.richTextWidget {
    min-height: calc(20.5em + .75rem + calc(var(--bs-border-width) * 2));
    font-family: monospace;
}

a#personaltools-login {
  color: var(--iaem-yellow);
}

video.w-100 {
    max-height: 80vh;
    object-fit: contain;
}
