* {
    padding: 0;
    margin: 0;
}

html {
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.05rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    font-size: 1.4rem;
    color: #000000;
    margin: 0 auto;
    background-color: #ffffff;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

[contrast="high"] {
    background-color: black;
    color: yellow;
}

.sad {
    filter: grayscale(1);
}

.hidden {
    font-size: 0rem;
    color: transparent;
}

a {
    font: bolder;
    outline: none;
    text-decoration: underline;
    color: #2247b2
}

[contrast="high"] a {
    color: yellow;
}

a:hover, a:focus {
    color: #8B0000;
}

[contrast="high"] a:hover {
    color: white;
}

#toolbar {
    display: block;
    padding-top: 1%;
    padding-bottom: 1%;
    position: fixed;
    top: 0px;
    background: #eee;
    width: 100%;
    border-bottom: solid black 1px;
    z-index: 100;
}

    #toolbar button {
        vertical-align: middle;
        min-width: 6rem;
        min-height: 4rem;
        background: rgb(0, 140, 255);
        color: white;
        font-size: 1.4rem;
        border: 1px solid black;
        cursor: pointer;
    }

[contrast="high"] #toolbar {
    background: black;
}

    [contrast="high"] #toolbar button {
        background: #333;
        color: yellow;
    }

#toolbar button:hover,
#toolbar button:focus {
    background: rgb(0, 80, 145);
}

[contrast="high"] #toolbar button:hover,
[contrast="high"] #toolbar button:focus {
    background: #333;
    color: white;
}

#tools {
    float: left;
    margin-left: 10%;
}

    #tools button em {
        display: inline-block;
    }

#searchbar {
    right: 10%;
    margin-right: 10%;
    text-align: right;
    vertical-align: middle;
}

    #searchbar form {
        vertical-align: middle;
    }

    #searchbar input {
        vertical-align: middle;
        min-height: 3.8rem;
        padding-left: 1rem;
        font-size: 1.4rem;
        border: 1px solid grey;
        background: #f1f1f1;
        width: 20%;
    }

[contrast="high"] #searchbar input {
    border: 5px solid yellow;
    background: black;
    color: yellow;
}

[contrast="high"] ::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: yellow;
}

[contrast="high"] :-ms-input-placeholder {
    /* Internet Explorer 10-11 and Edge */
    color: yellow;
}

#searchbar::after {
    content: "";
    clear: both;
    /*display: table;*/
}

#searchbar button {
    vertical-align: middle;
}

#headerbar {
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 10rem;
    padding-bottom: 2.5rem;
    border-bottom: solid;
    border-width: 1px;
    border-color: #000;
}

#leftlogo {
    float: left;
}

    #leftlogo .bip_logo {
        content: url(./images/bip_logo.png)
    }

[contrast="high"] #leftlogo .bip_logo {
    content: url(./images/bip_logo_contrast.png)
}

#rightlogo {
    float: right;
    text-align: right;
}

#header {
    font-weight: bolder;
    color: rgb(180, 0, 0);
    justify-content: center;
    text-align: center;
    font-size: 2.8rem;
    width: 50%;
    padding-left: 25%;
    padding-right: 25%;
}

[contrast="high"] #header {
    color: yellow;
}

#title {
    font-weight: bolder;
    justify-content: center;
    text-align: center;
    font-size: 2.8rem;
    width: 50%;
    padding-left: 25%;
    padding-right: 25%;
}

#menu {
    width: 100%;
}

#middle {
    display: inline-block;
    min-height: 100vh;
    margin-left: 10vw;
}

#leftmenu {
    float: left;
    width: 15vw;
}

    #leftmenu ul {
        list-style-type: none;
    }

    #leftmenu a {
        padding: 12px 32px;
        font-size: 1.4rem;
        display: block;
        border-style: solid;
        border-width: 0 0 1px 0;
        text-decoration: none;
    }

    #leftmenu .menuheader {
        font-weight: bolder;
    }

    #leftmenu .menuitem {
        font-weight: normal;
        background: #f7f7f7;
    }

    #leftmenu .menu-dropdown {
        float: right;
        border-width: 0;
        font-size:14px;
    }

    #leftmenu .menu-dropdown-list {
        display: none;
    }

        #leftmenu .menu-dropdown-list li {
            margin-left: 5%;
        }

    #leftmenu .open > .menu-dropdown-list {
        display: block;
    }

    #leftmenu .fa-caret-down {
        float: right;
    }
#leftmenu .selected {
    background: #f7f7f7;
}
#leftmenu .selected > a{
    color: #b000b0;
    font-weight: bold;
    
}
[contrast="high"] #leftmenu .selected > a {
    color: white;
}

[contrast="high"] #leftmenu .menuitem {
    background: #333;
}

#leftmenu .menuitem :hover, #leftmenu .menuitem :focus-within {
    background: #dfdfdf;
}

[contrast="high"] #leftmenu .menuitem :hover, [contrast="high"] #leftmenu .menuitem :focus-within {
    background: #333;
    color: white;
}

#leftmenu .menuitem.active {
    background: #ccc;
}

[contrast="high"] #leftmenu .menuitem.active {
    background: #555;
}

#leftmenu .menuitem.active :hover, #leftmenu .menuitem.active :focus-within {
    background: #ccc;
}

[contrast="high"] #leftmenu .menuitem.active :hover, [contrast="high"] #leftmenu .menuitem.active :focus-within {
    background: #555;
    color: white;
}

#content {
    margin-left: 5vw;
    width: 60vw;
    display: inline-block;
}

    #content .center {
        text-align: center;
    }

    #content .bold {
        font-weight: bold;
    }

    #content .italic {
        font-style: italic;
    }

.bipFileDetails {
    display: inline;
}

#content ul,
ol {
    list-style-position: inside;
    padding-left: 5rem;
}

#content figcaption {
    text-align: center;
}

#content table {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border-collapse: collapse;
}

    #content table.center {
        width: 70%;
        margin-left: 15%;
        margin-right: 15%;
    }

#pagination {
    text-align: center;
    width: 100%;
}

#content #text a {
    font-weight: bold;
}

#content table,
th,
td {
    padding: 1rem;
}

[contrast="high"] #content table,
[contrast="high"] th,
[contrast="high"] td {
    border-color: #fff;
}

    [contrast="high"] #content table th {
        background-color: #444;
    }

#content .historyTable .date {
    white-space: nowrap;
}

.breadcrumb {
    margin: 2.5rem;
    display: inline;
}

#footer {
    width: 100%;
    min-height: 10rem;
    background-color: #eee;
    text-align: right;
    border-top: solid black 1px;
}
#ai{
    text-align: left;vertical-align: top;padding-left: 20%;
}

[contrast="high"] #footer {
    color: yellow;
    background-color: black;
}

#info {
    margin-right: 10%;
}

#fileList {
    display: inline;
}

#content > #bipFileDetails > img,
#content > #bipFileDetails > a {
    display: inline-block;
    font-size: 2rem;
}

@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 768px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 768px), only screen and (min-device-pixel-ratio: 2) and (max-width: 768px), only screen and (min-resolution: 192dpi) and (max-width: 768px), only screen and (min-resolution: 2dppx) and (max-width: 768px) {
    #leftmenu {
        position: static;
        width: 100%;
    }

    #middle {
        display: block;
        margin-right: 10vw;
    }

    #content {
        margin-left: 0;
        width: 100%;
    }

    #headerbar {
        padding-top: 10rem;
    }

    #rightlogo {
        float: none;
    }

    #header {
        display: none;
    }

    #title {
        font-size: 2.4rem;
    }

    #content table.center {
        overflow: scroll;
        max-width: 100%;
        margin-left: 0%;
        margin-right: 0%;
    }
}