﻿@import url("fonts.css");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg-color);
    font-family: "Open Sans", sans-serif;
    font-size: 16px;

    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}
    footer a {
        color: var(--light-text-color);
        text-decoration: none;
        cursor: pointer;
    }
        footer a:hover {
            color: var(--light-text-color);
            text-decoration: underline;
        }


/* Content boxes */

main {
    display: flex;
    flex-direction: column;
}
.content-box:last-child { flex-grow: 1; } /* make last content box take remaining vertical space */

.content-box {
    width: 100%;
    padding: 2.5rem 1rem;
}

.light {
    color: var(--dark-text-color);
    background-color: var(--light-bg-color);
}

.gray {
    color: var(--dark-text-color);
    background-color: var(--gray-bg-color);
}

.dark {
    color: var(--light-text-color);
    background-color: var(--dark-bg-color);
}

.primary {
    color: var(--light-text-color);
    background-color: var(--primary-color);
}

.secondary {
    color: var(--light-text-color);
    background-color: var(--secondary-color);
}


/* Typography */

.heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}

.heading-large {
    font-size: 2.5rem;
}

@media (min-width: 500px) {
    .heading-large {
        font-size: 3rem;
    }
}

.centered-text {
    text-align: center;
}

.highlight-text {
    color: var(--primary-color);
}

/* Buttons */
.action-button {
    display: inline-block;
    font-size: 1.5rem;
    border: 0;
    padding: 0.5rem 3rem;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    margin: 0.5rem;
    cursor: pointer;
    text-decoration: none;
}
    .action-button:hover {
        background-color: var(--primary-color);
        color: var(--light-text-color);
    }

.banner-button {
    display: inline-block;
    font-size: 1.25rem;
    padding: 0.5rem 3rem;
    color: var(--light-text-color);
    margin: 0;
    margin-top: 1rem;
    width: 100%;
    max-width: 24rem;
    text-align: center;
    background: none;
    border: 1px solid white;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s linear;
    transition: color 0.3s linear;
}

    .banner-button:hover {
        background-color: var(--light-bg-color);
        color: var(--dark-text-color);
    }

a.back {
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    margin: 0;
    color: var(--primary-color);
}

.help-button {
    border: none;
    background-color: var(--secondary-color);
    height: 3rem;
    width: 10rem;
    color: var(--light-text-color);
    padding: 0.85rem 0.7rem;
    font-weight: 700;
    font-family: 'Montserrat';
    cursor: pointer;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-block;
}

/* Cookie notification */

#cookie-notification {
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 0.5rem;
    display: block;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.85rem;
    z-index: 100;
}

    #cookie-notification a {
        color: var(--light-text-color);
    }

    #cookie-notification button {
        border: 0;
        padding: 0.5rem 1rem;
        background-color: var(--primary-color);
        color: var(--light-text-color);
        width: 100%;
    }

@media (min-width: 992px) {
    #cookie-notification {
        position: fixed;
        padding: 1.5rem;
        left: 1rem;
        bottom: 1rem;
        width: fit-content;
    }
}

/* Header section */

.header-section {
    position: absolute;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    grid-template-rows: 1fr;
    gap: 0em 0em;
    grid-template-areas: "left center right";
    width: 100%;
    height: 3.5rem;
    box-shadow: 0 0 5px var(--gray-bg-color);
}

    .header-section .logo-area {
        grid-area: left;
        height: inherit;
        margin: 0;
        padding:0.75rem; 
    }

    .header-section .language-area {
        grid-area: right;
        height: inherit;
        margin: 0;
        padding: 0;
        padding-right: 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

.header-spacer {
    height: 3.5rem;
}

@media (min-width: 380px) {
    .header-section {
        height: 4rem;
    }
    .header-spacer {
        height: 4rem;
    }
}
@media (min-width: 700px) {
    .header-section {
        height: 4.5rem;
    }
        .header-section .logo-area {
            grid-area: center;
            padding: 0.75rem;
        }
        .header-section .language-area {
            padding-right: 20px; /* scrollbar clearance */
        }
    .header-spacer {
        height: 4.5rem;
    }
}
@media (min-width: 1200px) {
    .header-section {
        height: 6rem;
    }
        .header-section .logo-area {
            padding: 1.5rem;
        }
    .header-spacer {
        height: 6rem;
    }
}


/* Search bar */

.search-bar-section {
    height: 100vh;
    padding: 0;
    padding-top: 2rem;
    min-height: 25rem;
    max-height: 60rem;
    /* background image */
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4)), url(/img/title.webp) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    /* bottom border */
    border-bottom: 5px solid var(--dark-bg-color);
    /*border-top: 5px solid var(--dark-bg-color);*/
}
@media (min-width: 992px) and (min-height: 60rem) {
    .search-bar-section {
        height: 60vh;
    }
}

.search-bar-container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-flow: column;
}

.search-bar-section-divider {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr max-content;
    grid-auto-columns: 1fr;
    gap: 0em 0em;
    grid-auto-flow: row;
    grid-template-areas:
        "search-bar-widget-area"
        "info-scroller-area";
    width: 100%;
    height: 100%;
}

.search-bar-widget-area {
    grid-area: search-bar-widget-area;
}

.info-scroller-area {
    grid-area: info-scroller-area;
}

.info-scroller-button {
    margin-top: 2rem;
    font-size: 1rem;
    border: 0;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    text-align: center;
    cursor: pointer;
}
    .info-scroller-button:hover {
        background-color: var(--dark-bg-color);
    }
@media (min-width: 992px) and (min-height: 60rem) {
    .info-scroller-button {
        display: none;
    }
}


.slide-in-container {
    animation-duration: 1s;
    animation-name: slide-in;
    animation-direction: normal;
    animation-iteration-count: 1;
}

@keyframes slide-in {
    from {
        transform: translateY(-25vh);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Process Steps */

div.steps-row-offset {
    margin-top: 0;
}
@media (min-width: 992px) and (min-height: 60rem) {
    div.steps-row-offset {
        margin-top: -6rem;
    }
}

.steps-box-container {
    height: 100%;
    padding: 0.5rem 0;
}

.steps-box-content {
    height: 100%;
    padding: 2rem;
    box-shadow: 0 0 5px var(--light-bg-color);
}

    .steps-box-content .heading {
        font-size: 1.5rem;
    }

.steps-icon {
    margin: auto;
    margin-bottom: 1rem;
    padding: 1rem 0;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    text-align: center;
    font-size: 3rem;
    width: 5rem;
    height: 5rem;
    line-height: 1;
    border-radius: 10px;
}

    .steps-icon i {
        margin: 0;
        padding: 0;
    }

/* Side Bar */

.side-bar-container {
    display: none;
}
.side-bar-container.active {
    display: initial;
}


.side-bar {
    position: fixed;
    padding-right: 2rem;
    z-index: 10;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100vw;
    max-height: 100vh;
    overflow-y: auto;
    box-shadow: 0 0 5px var(--dark-bg-color);
}
@media (min-width: 600px) {
    .side-bar {
        width: fit-content;
        min-width: 15rem;
        max-width: 30rem;
    }
}

.side-bar-overlay {
    position: fixed;
    background-color: var(--dark-bg-color);
    opacity: 0.3;
    z-index: 9;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.side-bar-close-button {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.75rem;
    padding: 1rem;
    color: var(--gray-text-color);
    cursor: pointer;
}

    .side-bar-close-button:hover {
        color: var(--primary-color);
    }

/* language side bar */

.language-items-container {
    max-width: 100%;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.language-items-container .globe-icon {
    width: 100%;
    color: var(--primary-color);
    text-align: center;
    font-size: 3rem;
    margin: 0.5rem;
}

.language-item {
    display: block;
    text-decoration: none;
    color: var(--primary-color);
    background-color: var(--light-bg-color);
    width: 100%;
    min-width: 20rem;
    padding: 1rem;
    margin: 1rem;
    margin-right: 0;
    cursor: pointer;
}
    .language-item:active {
        color: var(--primary-color);
    }
    .language-item:visited {
        color: var(--primary-color);
    }

.language-item span {
    display: inline-block;
    padding: 0.5rem;
    width: 3rem;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

    .language-item:hover {
        color: var(--secondary-color);
    }
    .language-item:hover span {
        background-color: var(--secondary-color);
        color: var(--light-text-color);
    }

/* FAQ */

.faq-question {
    display: block;
    margin: 1rem;
    padding: 1rem 3rem;
    background-color: var(--light-bg-color);
    color: var(--dark-text-color);
    border: 1px solid var(--gray-text-color);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}
    .faq-question:active {
        color: var(--gray-text-color);
    }
    .faq-question:visited {
        color: var(--dark-text-color);
    }
    .faq-question:hover {
        background-color: var(--primary-color);
        color: var(--light-text-color);
    }


/* Accordion */

.accordion {
    border-radius: 0;
    overflow: hidden;
    color: var(--dark-text-color);
}

    .accordion input {
        position: absolute;
        opacity: 0;
        z-index: -1;
    }

    .accordion .tab {
        width: 100%;
        overflow: hidden;
    }

    .accordion .tab-label {
        display: flex;
        justify-content: space-between;
        padding: 1em;
        background: var(--light-bg-color);
        font-weight: bold;
        cursor: pointer;
    }
    .accordion .tab:not(:first-of-type) .tab-label {
        border-top: 1px solid var(--gray-text-color);
    }

        .accordion .tab-label:hover {
            background-color: var(--gray-bg-color);
        }

        .accordion .tab-label::after {
            content: "❯";
            width: 1em;
            height: 1em;
            text-align: center;
            transition: all 0.35s;
        }

    .accordion .tab-content {
        max-height: 0;
        padding: 0 1em;
        color: var(--dark-text-color);
        background: var(--light-bg-color);
        transition: all 0.35s;
        opacity: 0;
    }

    .accordion input:checked + .tab-label {

    }

.accordion input:checked + .tab-label::after {
    transform: rotate(90deg);
}

    .accordion input:checked ~ .tab-content {
        max-height: none;
        padding: 1em;
        opacity: 1;
    }


/* Terms and Conditions */


table.terms {
    border-collapse: collapse;
    width: 100%;
}

table.terms td {
    padding-top: 1rem;
}

tr.terms-heading {
    font-weight: 700;
    font-size: 1.5rem;
}

table.terms, th, td {
    border: none;
}

    table.terms td:first-child {
        vertical-align: top;
        text-align: right;
        padding-right: 10px;
    }


/* Blazor errors */

#blazor-error-ui {
    z-index: 2500;
    background: var(--red-color);
    color: white;
    padding: 1rem 2rem;
    display: none;
    position: fixed;
    top: 0;
    margin: 1rem;
    font-size: 1rem;
    box-shadow: 0px 0px 5px grey;
    font-weight: 400;
}

    #blazor-error-ui h1 {
        font-size: 1.25rem;
        font-weight: 700;
    }

    #blazor-error-ui button {
        padding: 0.2rem 0.5rem;
        background-color: white;
        border: 1px solid gray;
        margin-right: 0.5rem;
    }
