:root {
    --primary-theme-color: #de4d00;
    --second-theme-color: #dfdfdf;
    --link-color: #337ab7;
    --light-grey: #f1f1f1;
    --white: #ffffff;
    --hover-grey: #848484;
    --nav-bg: var(--white);
    --nav-color: #333;
    --main-text-color: #333;
    --main-bg-color: var(--second-theme-color);
    --footer-bg: var(--light-grey);
    --footer-color: #333;
    --white-text: var(--white);
    --title-font: 'Titillium Web', sans-serif;
}

/*-----General styling-----*/

body {
    color: var(--main-text-color);
    background-color: var(--main-bg-color);
    font-variant-ligatures: none;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
}

h1 {
    font-family: var(--title-font);
    font-size: 3.5em;
    font-weight: 300;
    margin-bottom: 0.5em;
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5em;
    }
}

main h2 {
    font-family: var(--title-font);
    font-size: 1.6em;
    color: var(--primary-theme-color);
    margin: 40px 0 10px;
    font-weight: 700;
}

@media (max-width: 576px) {
    main h2 {
        font-size: 1.3em;
        color: var(--primary-theme-color);
        margin: 40px 0 10px;
    }
}

main h3 {
    font-weight: 700;
    font-size: 1.2em;
    margin-top: 20px;
}

main h4 {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--hover-grey);
    margin-top: 20px;
}

main h2+h3 {
    margin-top: 12px;
}

main h3+h4 {
    margin-top: 15px;
}

main a {
    text-decoration: none;
    color: var(--link-color);
}

main a:hover {
    color: var(--link-color);
    text-decoration: underline;
}

blockquote {
    margin-left: 20px;
    border-left: 3px solid var(--hover-grey);
    padding-left: 10px;
    color: var(--hover-grey);
    border-radius: 4px;
}

hr {
    background: #999;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Selection color */

::-moz-selection {
    /* Code for Firefox */
    color: var(--white-text);
    background: var(--primary-theme-color);
}

::selection {
    color: var(--white-text);
    background: var(--primary-theme-color);
}

/* End - Selection color */

main ol li, main ul li {
    margin: 10px 0px;
}

/* list circles colored */

ul li::marker {
    color: var(--primary-theme-color);
}

/* position and size emoji */

main img.emoji {
    margin: 0px 0px 0.2em 0px;
    width: 1.3em;
}

/*-----Code highlighting-----*/

code {
    background-color: #fcf2f7;
    border-radius: 4px;
    padding: 2px 4px;
}

pre {
    padding: 9.5px;
    line-height: 1.42857143;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    border: 1px solid #ccc;
    border-radius: 4px;
}

pre code {
    padding: 0;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
    border-radius: 0;
}

/* make sure urls don't break trough the body of the website */
main a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
  }

/*-----Top navigation-----*/

.navbar {
    background-color: var(--nav-bg);
    border-bottom: 1px solid #c9cdd0;
}

.navbar-brand img {
    height: 55px;
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 50px;
    }
}

.navbar-nav .nav-item>a, .navbar-nav .nav-item .form-control::placeholder {
    color: var(--nav-color);
    font-size: 1em;
    font-family: var(--title-font);
}

.navbar-nav .nav-item a {
    border-radius: 10px;
}

.navbar-nav>.nav-item>a.active, .navbar-nav>.nav-item>a:hover {
    color: var(--white-text);
    background-color: var(--primary-theme-color);
}

.navbar-toggler {
    color: var(--primary-theme-color);
}

/*-----Search box top navigation-----*/

#search-input:focus {
    box-shadow: 0 0 0 0.25rem #ffffff00;
    border-color: var(--primary-theme-color);
}

.search {
    position: relative;
    z-index: 2;
}

.search .fa-search {
    position: absolute;
    top: 14px;
    left: 15px;
    color: var(--primary-theme-color)
}

.search-results {
    position: absolute;
    right: 0;
    top: 100%;
    display: none;
    width: 36em;
    max-height: calc(90vh - 200%) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 20%), 0 3px 10px rgba(0, 0, 0, 15%);
    overflow-y: auto;
    background-color: var(--white);
    border-radius: 10px;
    font-family: var(--main-font);
}

@media (max-width: 992px) {
    .search-results {
        width: 100%;
    }
}

.search-results ul {
    padding-left: 0;
    list-style: none;
}

.search-results a {
    display: block;
    padding: 0.5rem 0.75rem;
}

.search-results a:hover, .search-results a.active {
    background-color: var(--light-grey);
}

.search-result-title {
    display: inline-block;
    width: 40%;
    padding: 0.5rem 0.5rem 0.5rem 0;
    vertical-align: top;
}

.search-result-doc {
    display: flex;
    align-items: center;
    word-wrap: break-word;
}

.search-result-doc.search-result-doc-parent {
    font-size: 12px !important;
    font-weight: 600;
}

.search-result-doc .search-result-doc-title {
    overflow: auto;
    color: var(--main-text-color);
}

.search-result-section {
    word-wrap: break-word;
    color: var(--primary-theme-color)
}

.search-result-rel-url {
    display: block;
    overflow: hidden;
    color: var(--hover-grey);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px !important;
}

.search-result-previews {
    display: inline-block;
    width: 60%;
    padding: 0.5rem 0 0.5rem 0.5rem;
    color: var(--hover-grey);
    word-wrap: break-word;
    border-left: 1px solid var(--light-grey);
    font-size: 12px !important;
    vertical-align: top;
}

.search-result-preview+.search-result-preview {
    margin-top: 0.25rem;
}

.search-result-highlight {
    font-weight: bold;
}

.search-no-result {
    padding: 0.5rem 0.75rem;
}

.search-active .search-results {
    display: block;
}

/*-----Sidebar-----*/

@media (min-width: 992px) {
    #side-nav {
        display: block !important;
    }
}

.sidebar-collapse i {
    font-size: 1.25rem;
    float: right;
    line-height: 1.25em;
}

.sidebar-collapse:not(.collapsed) {
    color: var(--nav-color);
    background-color: var(--nav-bg);
}

.sidebar-title {
    margin: 11px 0px;
    font-weight: 800;
    font-size: 1.3em;
}

.menu ul {
    display: none;
    padding-left: 0;
}

.menu li a {
    margin-bottom: 4px;
    display: block;
    position: relative;
    padding: 7px 19px;
    border-radius: 10px;
    border: 1px solid #c9cdd0;
    font-size: 17px;
    color: #333;
    text-decoration: none;
    background-color: var(--white);
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -o-transition: .2s;
    font-family: var(--title-font);
}

.menu li a:active {
    transform: translate(0px, 3px);
    -webkit-transform: translate(0px, 3px);
}

.menu li a:hover {
    background-color: var(--primary-theme-color);
    color: white;
}

.menu ul li a {
    margin-left: 30px;
}

.menu ul li ul li a {
    margin-left: 60px;
}

.menu li.active:not(.parent)>a {
    background-color: var(--primary-theme-color);
    color: white;
}

.menu li>a>span {
    float: right;
    width: 15px;
    text-align: center;
}

.menu li.active>a>span:after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f077";
}

.menu li>a>span:after {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f078";
}

/*-----Summary under page title-----*/

.summary {
    font-size: 16px;
    color: var(--hover-grey);
    margin: 20px 0px 20px 0px;
    border-left: 3px solid var(--primary-theme-color);
    padding-left: 10px;
}

.summary:before {
    font-weight: bold;
}

/*-----TOC-----*/

/* TOC base styling */

#toc {
    padding: 15px;
    border: 1px solid #dde1e4;
    background-color: var(--light-grey);
    margin: 1.75em 0 2em;
    padding: 10px 25px;
    border-radius: 10px;
    max-width: 400px;
    line-height: 1.4;
}

/* Indent the lists and reset any other padding */

#toc ul {
    padding: 0 0 0 20px;
}

/* Consistent vertical space between list items */

#toc li, #toc ul ul li {
    margin: 8px 0 0 0;
}

/* Sublists */

#toc ul ul {
    list-style: circle outside;
}

/*-----Table properties-----*/

table {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
}

table, .dataTables_wrapper {
    margin: 40px 0 20px;
}

table>tbody>tr>th, table>thead>tr>td, table>tbody>tr>td {
    padding: 8px 8px 8px 0px;
    line-height: 1.42857143;
    border-top: 1px solid var(--light-grey);
}

table>thead>tr>th {
    border-bottom: 2px solid var(--light-grey);
}

.default-badge {
    font-weight: inherit;
    background-color: var(--light-grey);
    color: var(--main-text-color);
}

.default-badge:hover {
    color: var(--white-text);
    background-color: var(--hover-grey);
}

/* name column bigger */

#tooltable tr th:nth-child(1) {
    width: 25%;
}

/*-----Registries in tool table------*/

main img.registry_logo {
    max-height: 40px;
    max-width: 40px;
    margin: 2px;
    padding: 5px;
    border-radius: 4px;
}

/*-----Footer-----*/

footer {
    background-color: var(--footer-bg);
    border-top: 1px solid #c9cdd0;
    color: var(--footer-color);
    font-size: 0.9em;
    line-height: 24px;
    margin-top: 80px;
}

footer h2 {
    font-size: 1em;
}

footer a {
    color: var(--footer-color);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-theme-color);
    text-decoration: none;
}

footer .europe-flag {
    width: 80px;
    padding-top: 18px;
}

footer .company-logo {
    float: right
}

/*-----MetaData section -----*/

.meta-line {
    padding: 15px 0px;
}

.meta-obj {
    margin: 5px 5px 5px 0px;
    background-color: var(--main-bg-color);
    color: var(--link-color);
    text-align: center;
    text-decoration: none;
    font-size: 0.9em;
    vertical-align: middle;
    padding: .375rem .75rem;
    border-radius: 4px;
    display: inline-block;
    transition: color .15s ease-in-out, background-color .15s ease-in-out;
}

.meta-obj-false {
    background-color: var(--main-bg-color);
    margin: 5px 5px 5px 0px;
    color: var(--main-text-color);
    text-align: center;
    text-decoration: none;
    font-size: 0.9em;
    vertical-align: middle;
    padding: .375rem .75rem;
    display: inline-block;
    border-radius: 4px;
}

.meta-obj-false:hover {
    color: var(--main-text-color);
}

.meta-obj:hover {
    background-color: var(--primary-theme-color);
    color: var(--white-text);
}

.contributor-badge {
    height: 1.25em;
    border-radius: 50%;
    margin: 0.25em;
}

.page-metadata {
    background-color: var(--light-grey);
    border-radius: 4px;
    padding: 15px 15px;
    margin-top: 70px;
}

/* ----- Home dropdown boxes ------ */

.home-cards .card {
    min-height: 9.5em;
}

h2.card-title {
    margin: 0 0 0.5rem 0;
}

/* Custom buttons */

.btn-custom {
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    font-family: var(--title-font);
    background-color: var(--white);
    padding: 7px 11px;
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -o-transition: .2s;
    border-radius: 10px;
    text-align: left;
    border: 1px solid #c9cdd0;
}

.btn-custom:active {
    background-color: var(--primary-theme-color);
    transform: translate(0px, 3px);
    -webkit-transform: translate(0px, 3px);
    color: white;
}

.btn-custom.plus::after {
    float: right;
    content: '+';
    font-size: 1.5em;
    min-width: 0.6em;
    line-height: 1;
    margin-left: 10px;
}

.btn-custom.plus:not(.collapsed)::after {
    content: '-';
    line-height: 0.8em;
}

/*-----Contributors cards-----*/

.contributor-cards .card {
    background-color: var(--light-grey);
    border-radius: 10px;
}

.contributor-cards .badge {
    background-color: var(--primary-theme-color);
    margin: 10px 10px 0px 0px;
}

.contributor-cards .card-affiliation {
    color: var(--primary-theme-color);
    font-size: 0.8em;
}

.contributor-cards .card-body {
    padding-top: 0rem;
}

/*-----Contributors carousel-----*/

#contributors-carousel .carousel-control-next, #contributors-carousel .carousel-control-prev {
    width: 3%;
}

@media (max-width:768px) {
    #contributors-carousel .card-title {
        font-size: 0.5em
    }
    #contributors-carousel .card-affiliation {
        color: var(--primary-theme-color);
        font-size: 0.4em;
    }
    #contributors-carousel .card-body {
        padding: 0rem 0.5rem 0.5rem 0.5rem;
    }
}

/*-----Social icons-----*/

.social-icons a {
    background-color: var(--hover-grey);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    color: var(--white-text);
    display: inline-block;
    line-height: 4ex;
    width: 4ex;
    height: 4ex;
    text-align: center;
    border-radius: 100%;
}

.social-icons a:hover {
    background-color: var(--primary-theme-color);
    color: var(--white-text);
}

@media (max-width:768px) {
    #contributors-carousel .social-icons a {
        line-height: 1.2ex;
        width: 1.2ex;
        height: 1.2ex;
    }
}

/*-----Edit me button-----*/

.github-edit-btn {
    color: var(--primary-theme-color);
    margin-left: 12px;
    font-size: small;
}

.github-edit-btn:hover {
    color: var(--primary-theme-color);
    background-color: var(--light-grey);
    text-decoration: none;
}

/* ----- Cookie consent ----- */

.cookiealert {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 500ms ease-out;
    color: var(--footer-color);
    background: var(--footer-bg);
    border-radius: 0;
}

.cookiealert.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
    transition-delay: 1000ms;
}

.cookiealert .acceptcookies {
    margin-left: 10px;
    vertical-align: baseline;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    background-color: var(--hover-grey);
    color: var(--white-text);
    padding: 7px 11px;
    border: 0px;
    border-radius: 10px;
}

.cookiealert .acceptcookies:hover {
    background-color: var(--primary-theme-color);
    color: var(--white-text);
}

.cookiealert a {
    color: var(--footer-color);
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    font-weight: bold;
    text-decoration: none;
}

.cookiealert a:hover {
    color: var(--primary-theme-color);
}

/*--------------Custom classes--------------*/

/* ---------------------------------------- */

/* subtitle frontpage */

.subtitle {
    color: var(--hover-grey);
}

/*-----TeSS button-----*/

.TeSS-button {
    margin: 30px 0px;
}

.TeSS-button .tess_logo {
    max-height: 45px;
    max-width: 45px;
    margin-left: 17px;
    margin-bottom: 5px;
}

.TeSS-button a {
    padding: 16px;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    border-radius: 4px;
    background-color: var(--hover-grey);
    text-decoration: none;
    color: var(--white-text);
}

.TeSS-button a:hover {
    background-color: #f47d20;
    text-decoration: none;
    color: var(--white-text);
}


/* -----Homepage----- */

.blurb-title {
    font-size: 1.3em;
    margin-bottom: 18px;
    font-weight: 600;
}

/* -----Extra theming----- */

#main {
    background-color: var(--white);
    border: 1px solid #c9cdd0;
    padding: 43px 50px;
    border-radius: 10px;
}

#search-input {
    background-color: var(--light-grey);
    border-radius: 10px;
    padding: .5rem 1rem;
}

.alert {
    border: 0;
    border-radius: 10px;
}

.alert-warning {
    background-color: #f2d3659e;
}

.alert-danger {
    background-color: #f285659e;
}

.alert-info {
    background-color: #2ca2c659;
}
