@CHARSET "UTF-8";


@media only screen and (max-width: 780px) {
    /* Makes text inside a menu item disappear when the viewable area is too small*/
    .navItem > a > .navItemText{
        font-size: 0;
        height: 0;
        overflow: hidden;
        width: 0;
    }

    .navItem > a > i{
        font-size: 2em;
        padding: 0 0 0 0;
    }

    header nav{
        height: 4em !important;
    }

    header nav ul > li >.dropdown-content{
        margin-top: 4em !important;
    }
}

/* Menu item, using flexbox to center it correctly */
.navItem{
    height: 100%;
    display: flex;
    justify-content: center;
    margin-right: .25em;
    cursor: pointer;
}

/* Link inside a menu item, using flexbox to center it correctly */
.navItem > a, dropdown > a{
    flex: 2 2;
    align-self: center;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 .5em;
    border-bottom: 0px solid var(--input-color);
    transition: border-bottom var(--animation-speed);
}

.navItemActive > a{
    border-bottom: 6px solid var(--menu-hover);
}

.navItem > a > i, navItemIcon{
    padding: 0 .25em 0 .25em;
    transition: all var(--animation-speed)
}

.navItemText{
    display: inline-block;
    transition: all var(--animation-speed);
    transform-origin: 0% 50%;
    text-align: center;
}

header{
    z-index: 100;
}

header nav {
    height: 3em;
    transition: all var(--animation-speed) ease-out;
}

header nav ul {
    height: 100%;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
}

header nav ul li {
    float: left;
}


header nav ul li a, .dropbtn {
    display: inline-block;
    color: var(--header-and-footer-foreground);
    text-align: center;
    text-decoration: none;
}

header nav ul li:hover > a{
    /*background: var(--input-color);*/
    background-color: var(--menu-hover);
    border-bottom: 6px solid white;
}

header nav ul > li:last-child {
    float: right;
    right: 0px;
    margin-right: 0;
}

/* container div */
.dropdown-content {
    display: none;
    position: absolute;
    color: black;
    background-color: white;
    min-width: 13em;
    margin-top: 3em;
    box-shadow: var(--drop-shadow);
    border-radius: 0 0 0.25em 0.25em;
    padding: 0.25em;
    z-index: 1;
}

@keyframes openDropdown{
    0%{
        max-height: 0px;
        overflow-y: hidden;
    }
    100%{
        max-height: 12em;
        overflow-y: auto;
    }
}

/* Alignment of dropdown from registration item */
header nav ul > li:last-child .dropdown-content {
    margin-top: 3em;
    right: 0;
}


.dropdown-content a {
    color: black;
    padding: 0.5em;
    border-radius: 0.25em;
    text-decoration: none;
    display: block;
    text-align: left;
}


.dropdown:hover .dropdown-content {
    display: block;
    /*animation: openDropdown var(--animation-speed) 1 forwards;*/
}

.dropdown-content input[type=submit] {
    background: none;
    border: none;
    border-radius: 0.25em;
    cursor: pointer;
    color: black;
    padding: 0.5em;
    text-decoration: none;
    display: block;
    text-align: left;

}

.dropdown-content > div > div > a:hover, .dropdown-content > a:hover {
    background-color: var(--input-color);
}

.dropdown-content form:hover {
    background-color: var(--input-color);
}

.dropdown-content > form > input{
    color: #992626 !important;
    text-align: center !important;
    width: 100%;
}

.serviceDropdownImage{
    display: inline-block;
    background-color: white;
    object-fit: contain;
    padding: 0.1em;
    margin-right: 0.5em;
    width: 3rem;
    height: 3rem;
    vertical-align: middle;
    border: 1px dashed var(--very-dark-gray);
    border-radius: 0.25em;
}


i.serviceHidden:before, i.serviceShown:before{
    margin-right: 0.5em;
    vertical-align: middle;
    color: #b71c1c;
}

i.serviceShown:before{
    color: #01579b;
}

.serviceDropdownViewMoreIcon{
    font-size: 1.5em !important;
    padding: 0.5em;
    margin-right: 0.5em;
    vertical-align: middle;
    border: 1px solid transparent;
    border-radius: 0.25em;
}

.dropdown-content a.allServices:last-of-type{
    border-top: 1px solid var(--input-color);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: 1em;
}