@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&family=Public+Sans:ital,wght@0,200;0,300;0,400;0,500;0,700;1,200;1,300;1,400;1,500;1,700&display=swap');

:root {
    --ff-orange: hsla(24, 90%, 50%, 1);
    --ff-orange-medium: hsla(24, 90%, 65%, 1);
    --ff-orange-light: hsla(24, 90%, 80%, 1);
    --ff-orange-faint: hsla(24, 90%, 95%, 1);
    --ff-blue: hsla(196, 22%, 24%, 1);
    --ff-grey: #666;
    --ff-light-grey: #ccc;
    scroll-behavior: smooth;
    box-sizing: border-box;
    overflow-y: auto;
}
*, *:before, *:after {
  box-sizing: inherit;
}
[v-cloak] {
    opacity: 0;
}
html {
    font-size: 10px;
    height: 100%;
}

body {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    clear: both;
    font-family: 'Public Sans', Arial, sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
}
h1,h2,h3,h4,h5 {
    letter-spacing: -0.25px;
    font-weight: 200;
}
h5 {
    font-weight: 500;
}
.tingle-modal {
    background: rgba(0,0,0, 0.7) !important;
}
#loading {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    display: block;
    opacity: 0.7;
    background-color: #fff;
    z-index: 99;
    display: flex;
}

#loading-image, .loading-circle {
    z-index: 100;
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid var(--ff-orange); /* Blue */
    border-radius: 50%;
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
    margin: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spin {
    animation: spin 2s linear infinite;
}
@keyframes blinker {
  50% { background-color: #eee; }
}

/* notification bar */
#notifications {
    margin: 0;
    background-color: var(--ff-orange-faint);
    color: var(--ff-orange);
    text-align: center;
}
#notifications ul {
    margin: 0;
    list-style: none;
    padding: 0;
}
#notifications li {
    padding: 10px 0px;
}
#notifications li svg {
    display: inline-block;
    width: 13px;
    fill: #f2f2f2;
    position: relative;
    top: 2px;
    margin: 0px 10px;
    cursor: pointer;
}
#notifications > svg {
    display: none;
}
#notifications a {
    color: var(--ff-orange);
    text-decoration: underline;
}

/* header*/
#header {
    grid-row: 2;
    background-color: #fff;
    width: 100%;
    z-index: 10;
    clear: both;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    min-height: 72px;
    max-height: 72px;
    border-bottom: 1px solid #ddd;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
#logo {
    display: flex;
    flex-grow: 1;
    position: relative;
    left: 1.5rem;
    align-items: center;
}
#logo img {
    height: 48px;
    position: relative;
    top: 3px;
}
img#eu-logo{
    height: 30px;
    opacity: 0.6;
    margin-left: 1rem;
}
#toggle-top-levels {
    display: none;
}
#top-levels {
    transition: all 0.2s ease-in-out;
    flex-grow: 3;
    text-align: right;
    position: relative;
    right: 10px;
    font-family: "Inter";
    font-weight: 500;
    font-size: 1.5rem;
}
.top-level-link {
    color: #111;
    transition: all 0.2s ease-in-out;
    height: auto;
    display: inline-block;
    position: relative;
    padding: 25px 0px 18px 0px;
    margin: 0px 15px;
    letter-spacing: 0px;
    line-height: normal;
    cursor: pointer;
    border-bottom: 5px solid transparent;
}
.top-level-link:hover {
    text-decoration: none;
    border-bottom: 5px solid var(--ff-orange);
    /* color: #fff; */
}
.top-level-link.selected {
    /* color: #fff !important; */
    cursor: pointer;
    font-weight: 700;
}
.top-level-link.inverted {
    color: #222;
    background-color: #fff;
}
.top-level-link:last-child {
    margin-right: 0;
}


#top-nav {
    padding-top: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* common styles */
#secondary-content {
}
#primary-content {
    padding-left: 20px;
}


#footer {
    grid-row: 4;
    background-color: #fafafa;
    padding: 10px 30px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    letter-spacing: 0.25px;
}
#footer-logo {
    margin-right: 20px;
}
#footer-logo img {
    width: 40px;
    height: 45px;
    object-fit: cover;
    object-position: 0% 0%;
}
#footer-info {
    color: #777;
    margin: 10px auto;
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
}
#footer-info .donate-link {
    margin-top: 5px;
}
#footer-links {
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-grow: 0;
}
#footer-links a {
    margin: auto 3px;
}
#footer .social-icons a {
    font-size: 28px;
    color: #333;
    display: inline-block;
    margin: auto;
}

#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 14px;
    font-weight: 300;
    background-color: rgba(47, 66, 73, 1);
    border: 1px solid #222;
    padding: 10px 40px;
    color: #fff;
    display: none;
    align-items: center;
    letter-spacing: 0.3px;
    z-index: 9999;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    opacity: 0;
}
#cookie-actions {
    margin-left: 20px;
    text-align: center;
}
#refuse-cookie-link {
    margin-top: 3px;
    cursor: pointer;
}
#cookie-consent a {
    color: #fff;
    font-weight: 700;
}
#main {
    grid-row: 3;
    padding-top: 30px;
    padding-bottom: 30px;
    margin: 0;
}
.container {
    padding-inline: 20px;
    margin-inline: auto;
}

/* navigation section */
.nav-section {
    font-family: Inter, Arial, sans-serif;
    font-weight: 300;
    position: sticky;
    top: 0px;
    z-index: 2;
}
.nav-section ul {
    display: flex;
    margin-bottom: 0;
}
.nav-tab {
    display: block;
    position: relative;
    border-bottom: 1px solid transparent;
    flex: 1 1 auto;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 10px 10px 10px 10px;
    clear: both;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    background-color: #f2f2f2;
    cursor: pointer;
}
.nav-section .next-section, .nav-section .prev-section {
    display: none;
}
.nav-tab:first-of-type {
}
.nav-tab:last-of-type {
}
.nav-tab:hover {
    background-color: rgba(47, 66, 73);
    color: #f2f2f2;
    fill: #f2f2f2;
}
.nav-tab.active {
    background-color: var(--ff-orange);
    color: #fff;
    fill: #fff;
}
.nav-tab .fa {
    margin: 0px 3px;
}
.nav-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    align-items: center;
    position: sticky;
    bottom: 0;
    height: 50px;
    background-color: #fff;
    font-weight: 700;
}
.tab-content {
    display: none;
}

/* region */
.region-head {
    padding: 0 0 5px 0px;
    margin: 0px auto 15px auto;
    border-bottom: 1px solid #e2e2e2;
    clear:both;
}

.region-head .name {
    font-weight: 500;
    font-size: 15px;
    padding: 0 0;
    display: block;
    margin-bottom: -1px;
}

.region-head .explanation {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.4em;
}

.region {
    clear:both;
    margin: 0px 0 15px 0px;
}

.region-content {
    margin: 0px auto 5px auto;
    clear:both;
}

/* utilities */
.hidden {
    display: none;
}
.uppercase {
    text-transform: uppercase;
}

#disableOverlay {
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 199;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 100%;
}

#overlay-loading {
    width: 100%;
    position: fixed;
    top: 40%;
    text-align: center;
    font-size: 20px;
    margin-top: -40px;
}

ul.error-list {
    list-style: none;
    display: block;
    margin-top: -7px;
    margin-bottom: 0px;
    font-size: 12px;
    font-weight: 400;
    color: #f04124;
    font-weight: 400;
    padding-bottom: 5px;
    border-radius: 0 0 4px 4px;
}
ul.error-list > li {
    padding: 5px 5px 0px 1px;
}
ul.error-list.cleared {
    background-color: #66CD00;
}

.field-row {
    position: relative;
    flex-grow: 1;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 4fr 1fr;
    grid-column-gap: 2.5rem;
    width: clamp(300px, 100%, 1000px);
    margin: 0 auto;
    align-items: baseline;
}

.attribute {
    display: block;
    text-align: right;
    color: var(--ff-blue);
    font-weight: 700;
    margin-top: 0.5rem;
}

.v-attribute {
    display: block;
    margin-bottom: 5px;
    color: #777;
}

.value {
    width: 100%;
}

.note {
    color: var(--ff-grey);
    font-size: 13px;
    margin-bottom: 5px;
}

.bottom-left-note {
    position: absolute;
    bottom: 0px;
    left: 15px;
}

.color-white {
    color: #f2f2f2;
}

.color-light-black {
    color: #444;
}

.color-light-orange {
    color: #EEAA78;
}
.color-medium-orange {
    color: #FF8C3F;
}
.color-orange {
    color: var(--ff-orange);
}
.color-greyed-out {
    color: #ccc;
}
.color-dark-blue {
    color: #2f4249;
}

.bg-light-orange {
    background-color: var(--ff-orange-light);
}
.bg-medium-orange {
    background-color: var(--ff-orange-medium);
}
.bg-orange {
    background-color: var(--ff-orange);
}
.bg-grey {
    background-color:#777;
}
.bg-dark-blue {
    background-color: #2f4249;
}

.fwt-300 {
    font-weight: 300;
}

.fwt-400 {
    font-weight: 400;
}
.fwt-500 {
    font-weight: 500;
}
.fwt-700 {
    font-weight: 700;
}
.fwt-900 {
    font-weight: 900;
}
.fsz-small {
    font-size: 14px;
}

.fsz-large {
    font-size: 18px;
}
.fsz-huge {
    font-size: 26px;
}
.fst-uppercase {
    text-transform: uppercase;
}

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

.remove-left-padding {
    padding-left: 0 !important;
}
.remove-right-padding {
    padding-right: 0 !important;
}

.box-shadow-up {
    -webkit-box-shadow: 0px -3px 5px 0px rgba(68, 68, 68, 0.5);
    -moz-box-shadow: 0px -3px 5px 0px rgba(68, 68, 68, 0.5);
    box-shadow: 0px -3px 5px 0px rgba(68 ,68, 68, 0.5);
}
.box-shadow-down {
    -webkit-box-shadow: 0px 5x 5px 0px rgba(68,68,68,0.5);
    -moz-box-shadow: 0px 5px 5px 0px rgba(68,68,68,0.5);
    box-shadow: 0px 5px 5px 0px rgba(68,68,68,0.5);
}

.text-underline {
    text-decoration: underline;
}

/* custom ui widget styles */
.ui-widget, .ui-button {
    font-family: "Public Sans" !important;
    font-size: 15px;
}

.ui-widget-content a {
    color: #586784;
    display: inline-block;
    padding-bottom: 0px;
    text-decoration: none;
    outline: 0;
}

.ui-widget-content a:hover {
    color: #E37222;
    text-decoration: underline;
}

/* custom ui dialog styles */
.ui-button.button-red {
    background: red;
    color: #fff;
    border-color: red;
}

/* custom ui tooltip styles */
.ui-tooltip,.arrow:after {
    background: rgb(47, 66, 73);
    opacity: 0.95;
}
.ui-tooltip {
    padding: 10px 20px;
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Public Sans";
    line-height: 1.4em;
    box-shadow: 0 0 7px #111;
}
.arrow {
    width: 70px;
    height: 16px;
    overflow: hidden;
    position: absolute;
    left: 50%;
    margin-left: -35px;
    bottom: -16px;
}
.arrow.top {
    top: -16px;
    bottom: auto;
}
.arrow.left {
    left: 20%;
}
.arrow:after {
    content: "";
    position: absolute;
    left: 20px;
    top: -20px;
    width: 25px;
    height: 25px;
    box-shadow: 6px 5px 9px -9px black;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.arrow.top:after {
    bottom: -20px;
    top: auto;
}

.ui-dialog {
    font-family: "Public Sans";
}

.ui-autocomplete { position: absolute; cursor: default;z-index: 200 !important;}

/* button fa relations */
button .fa {
    margin-right: 5px;
}

/* dropdown menus */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    background: #fff;
    z-index: 10;
    text-align: left;
    width: max-content;
}

.dropdown-content a {
    padding: 6px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #eee;
    font-weight: 500;
}

#account-dropdown {
    right: 0;
}

/* data table styles */
.dataTable th {
}
.borderless-button {
    color: #aaa;
    border-bottom: 1px dashed #ccc;
}

.borderless-button:hover {
    cursor: pointer;
    color: var(--ff-orange);
    border-bottom-color: var(--ff-orange);
}

/* flew box definitions */
.flex-row {
    display: flex;
    flex-flow: row nowrap;
}
.flex-space-between {
    justify-content: space-between;
}
.flex-space-evenly {
    justify-content: space-evenly;
}
.flex-align-baseline {
    align-items: baseline;
}
.flex-align-center {
    align-items: center;
}

/* beta feature tag */
.beta {
    position: relative;
    top: -1px;
    font-size: 13px;
    background-color: var(--ff-orange);
    border-radius: 10px;
    padding: 1px 5px 3px 5px;
    margin-left: 2px;
    color: #fff;
    cursor: pointer;
}
.paid-subscription-required {
    font-family: "Inter";
    font-size: 12px;
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 500;
    background-color: var(--ff-orange);
    border-radius: 10px;
    padding: 3px 5px;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    top: -2px;
}

.promotion .title {
    font-weight: 700;
    font-size: 24px;
}

.promotion .description {
    margin-top: 10px;
}

.tippy-box[data-theme~='almost-white'] {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 10px 0px rgba(47, 66, 73, 0.5);
}

.tippy-box[data-theme~='almost-black'] {
    background-color: rgb(47, 66, 73);
    opacity: 0.95;
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Public Sans";
    line-height: 1.4em;
    box-shadow: 0 0 7px #111;
}

/* Vue slide down/up transition */
.slide-enter-active {
    transition: transform 0.2s ease;
}
.slide-leave-active {
    transition: transform 0.2s ease;
}

.slide-enter-to, .slide-leave {
    transform: scaleY(1);
    transform-origin: top;
    overflow: hidden;
}

.slide-enter, .slide-leave-to {
    transform: scaleY(0);
    transform-origin: top;
}


@media (min-width :540px) {
    .tingle-modal-box {
        min-width: 500px;
    }
    .small-modal-dialog .tingle-modal-box {
        width: 35vw;
    }
    .medium-modal-dialog .tingle-modal-box {
        width: 50vw;
    }
}

@media screen and (max-width: 834px) {
    #main {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .container {
        padding: 0px 15px;
    }
    html {
        font-size: 9px;
    }
    #footer {
        flex-direction: column;
        padding: 10px 20px;
        font-size: 12px;
    }
    #footer-info {
        display: block;
        text-align: center;
        margin: 0rem auto 0 auto;
    }
    #footer-logo {
        display: none;
    }
    #footer-links {
        display: block;
        text-align: center;
        margin: 0.5rem auto 0 auto;
    }
    #footer-links a {
        display: inline-block;
    }
    #footer-links .social-icons {
        display: none;
    }
    #logo {
        left: 1rem;
    }

    /* nav section behavior */
    .nav-section {
        font-size: 1.5rem;
        font-weight: 400;
    }
    .nav-section li:not(.active) {
        display: none;
    }
    .nav-section li {
        text-align: center;
    }
    .nav-tab .fa {
        display: none;
    }
    .nav-section .next-section, .nav-section .prev-section {
        display: inline-block;
        color: #fff;
        position: absolute;
        z-index: 1;
        cursor: pointer;
        padding: 10px 10px;
        top: 0;
    }
    .nav-section .prev-section {
        left: 2rem;
    }
    .nav-section .next-section {
        right: 2rem;
    }

    /* form fields behavior */
    .field-row {
        display: block;
    }
    .field-row .attribute {
        text-align: left;
    }

    #top-levels {
        display: none;
    }
    #top-levels.visible {
        display: flex;
        background-color: #fff;
        flex-direction: column;
        position: absolute;
        top: 71px;
        right: 5px;
        z-index: 5;
        padding: 0px 20px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    }
    #toggle-top-levels {
        cursor: pointer;
        transition: all 0.2s ease-in-out;
        -webkit-transition: all 0.2s ease-in-out;
        display: block;
        font-size: 3rem;
        margin: auto;
        position: relative;
        right: 15px;
    }
    .top-level-link {
        display: block;
        padding: 10px 10px;
        margin: auto 0;
        text-align: left;
        color: var(--ff-blue);
    }
    .top-level-link:hover {
        color: var(--ff-orange);
        border-bottom: 5px solid transparent;
    }
    .dropdown-content {
        top: 0;
        right: 100%;
    }
    #account-dropdown {
        right: 100%;
    }
}
