@import url('https://fonts.googleapis.com/css2?family=Bona+Nova:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bona+Nova+SC:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

@font-face {
    font-family: "Gold and After";
    src: url("/public/assets/GoldAndAfter.otf") format("opentype");
}

:root {
    --bulma-primary-h: 215.2deg !important;
    --bulma-primary-s: 71% !important;
    /* 100% */
    --bulma-primary-l: 62% !important;
    /* 41% */

    --bulma-title-color: #ebecf0;
    --bulma-subtitle-color: #ebecf0;
    --bulma-body-color: #ebecf0ee;

    /* --bulma-body-background-color: hsl(221, 3%, 3%); */
    --bulma-body-background-color: rgb(2.745% 2.745% 3.137%);
    /* --bulma-scheme-main: rgb(221, 3%, 3%); */
    --bulma-scheme-main: rgb(2.745% 2.745% 3.137%);
    /* This is also referenced in the fade-outs. */
}

html,
body {
    /* font-family: "Libre Baskerville", serif; */
    font-family: "Merriweather", serif;
}

.section {
    position: relative;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

.section * {
    position: relative;
    z-index: 1;
}

hr {
    background: url(/public/assets/divider.svg) no-repeat center center;
    background-size: 100% 100%;
    border: none;
    height: 2rem;
    margin: 5rem 0;
}

.title,
.subtitle {
    font-family: "Gold and After", serif;
    font-weight: normal;
    text-shadow: 0 0.075em 0 black;
}

.title {
    font-size: 5rem;
}

.subtitle {
    font-size: 2rem;
}

.title+.subtitle {
    margin-top: 0.5rem;
}

.hero-body {
    margin-top: 2rem;
}

.hero-title {
    margin-top: 4rem;
    margin-bottom: 5rem;
}

h2.title {
    font-size: 3rem;

    /* Underline */
    /* border-width: 0 0 0.3rem 0; */
    /* border-style: solid; */
    /* border-color: #ffe55e; */
    /* border-image: linear-gradient(to right, #ffe55e, rgba(0, 0, 0, 0)) 0 1 100% 0; */
    /* margin-right: 10rem; */
}

p {
    margin-left: auto;
    margin-right: auto;
}

.buttons {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.button {
    border: 1px solid var(--bulma-title-color);
    background-color: transparent;
    font-weight: bold;
}

.button:hover {
    background-color: var(--bulma-title-color);
    color: var(--bulma-body-background-color);
}

.button .icon:first-child:not(:last-child) {
    margin-inline-end: calc(var(--bulma-button-padding-horizontal)*.5)
}

.columns {
    margin-left: auto;
    margin-right: auto;
}

.background-flavour-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/public/assets/summary-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.background-flavour-image::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.background-flavour-image.fadeout-top::after {
    background: linear-gradient(180deg,
            rgb(2.745% 2.745% 3.137%) 0%,
            rgb(2.745% 2.745% 3.137% / 0.999755859375) 6.25%,
            rgb(2.745% 2.745% 3.137% / 0.998046875) 12.5%,
            rgb(2.745% 2.745% 3.137% / 0.993408203125) 18.75%,
            rgb(2.745% 2.745% 3.137% / 0.984375) 25%,
            rgb(2.745% 2.745% 3.137% / 0.969482421875) 31.25%,
            rgb(2.745% 2.745% 3.137% / 0.947265625) 37.5%,
            rgb(2.745% 2.745% 3.137% / 0.916259765625) 43.75%,
            rgb(2.745% 2.745% 3.137% / 0.875) 50%,
            rgb(2.745% 2.745% 3.137% / 0.822021484375) 56.25%,
            rgb(2.745% 2.745% 3.137% / 0.755859375) 62.5%,
            rgb(2.745% 2.745% 3.137% / 0.675048828125) 68.75%,
            rgb(2.745% 2.745% 3.137% / 0.578125) 75%,
            rgb(2.745% 2.745% 3.137% / 0.463623046875) 81.25%,
            rgb(2.745% 2.745% 3.137% / 0.330078125) 87.5%,
            rgb(2.745% 2.745% 3.137% / 0.176025390625) 93.75%,
            rgb(2.745% 2.745% 3.137% / 0) 100%);
}

.background-flavour-image.fadeout-bottom::after {
    background: linear-gradient(0deg,
            rgb(2.745% 2.745% 3.137%) 0%,
            rgb(2.745% 2.745% 3.137% / 0.999755859375) 6.25%,
            rgb(2.745% 2.745% 3.137% / 0.998046875) 12.5%,
            rgb(2.745% 2.745% 3.137% / 0.993408203125) 18.75%,
            rgb(2.745% 2.745% 3.137% / 0.984375) 25%,
            rgb(2.745% 2.745% 3.137% / 0.969482421875) 31.25%,
            rgb(2.745% 2.745% 3.137% / 0.947265625) 37.5%,
            rgb(2.745% 2.745% 3.137% / 0.916259765625) 43.75%,
            rgb(2.745% 2.745% 3.137% / 0.875) 50%,
            rgb(2.745% 2.745% 3.137% / 0.822021484375) 56.25%,
            rgb(2.745% 2.745% 3.137% / 0.755859375) 62.5%,
            rgb(2.745% 2.745% 3.137% / 0.675048828125) 68.75%,
            rgb(2.745% 2.745% 3.137% / 0.578125) 75%,
            rgb(2.745% 2.745% 3.137% / 0.463623046875) 81.25%,
            rgb(2.745% 2.745% 3.137% / 0.330078125) 87.5%,
            rgb(2.745% 2.745% 3.137% / 0.176025390625) 93.75%,
            rgb(2.745% 2.745% 3.137% / 0) 100%);
}

.background-flavour-image.fadeout-top-bottom::after {
    background: linear-gradient(0deg,
            rgb(2.745% 2.745% 3.137%) 0%,
            rgb(2.745% 2.745% 3.137% / 0.999755859375) 3.125%,
            rgb(2.745% 2.745% 3.137% / 0.998046875) 6.25%,
            rgb(2.745% 2.745% 3.137% / 0.993408203125) 9.375%,
            rgb(2.745% 2.745% 3.137% / 0.984375) 12.5%,
            rgb(2.745% 2.745% 3.137% / 0.969482421875) 15.625%,
            rgb(2.745% 2.745% 3.137% / 0.947265625) 18.75%,
            rgb(2.745% 2.745% 3.137% / 0.916259765625) 21.875%,
            rgb(2.745% 2.745% 3.137% / 0.875) 25%,
            rgb(2.745% 2.745% 3.137% / 0.822021484375) 28.125%,
            rgb(2.745% 2.745% 3.137% / 0.755859375) 31.25%,
            rgb(2.745% 2.745% 3.137% / 0.675048828125) 34.375%,
            rgb(2.745% 2.745% 3.137% / 0.578125) 37.5%,
            rgb(2.745% 2.745% 3.137% / 0.463623046875) 40.625%,
            rgb(2.745% 2.745% 3.137% / 0.330078125) 43.75%,
            rgb(2.745% 2.745% 3.137% / 0.176025390625) 46.875%,
            rgb(2.745% 2.745% 3.137% / 0) 50%),
        linear-gradient(180deg,
            rgb(2.745% 2.745% 3.137%) 0%,
            rgb(2.745% 2.745% 3.137% / 0.999755859375) 3.125%,
            rgb(2.745% 2.745% 3.137% / 0.998046875) 6.25%,
            rgb(2.745% 2.745% 3.137% / 0.993408203125) 9.375%,
            rgb(2.745% 2.745% 3.137% / 0.984375) 12.5%,
            rgb(2.745% 2.745% 3.137% / 0.969482421875) 15.625%,
            rgb(2.745% 2.745% 3.137% / 0.947265625) 18.75%,
            rgb(2.745% 2.745% 3.137% / 0.916259765625) 21.875%,
            rgb(2.745% 2.745% 3.137% / 0.875) 25%,
            rgb(2.745% 2.745% 3.137% / 0.822021484375) 28.125%,
            rgb(2.745% 2.745% 3.137% / 0.755859375) 31.25%,
            rgb(2.745% 2.745% 3.137% / 0.675048828125) 34.375%,
            rgb(2.745% 2.745% 3.137% / 0.578125) 37.5%,
            rgb(2.745% 2.745% 3.137% / 0.463623046875) 40.625%,
            rgb(2.745% 2.745% 3.137% / 0.330078125) 43.75%,
            rgb(2.745% 2.745% 3.137% / 0.176025390625) 46.875%,
            rgb(2.745% 2.745% 3.137% / 0) 50%);
}

*:has(> .background-flavour-image.extended-up:not([hidden])) {
    padding-top: min(max(7rem, 10vw + 2rem), 15rem);
}

*:has(> .background-flavour-image.extended:not([hidden])) {
    padding-top: 7rem;
    padding-bottom: 7rem;
}

*:has(> .background-flavour-image.softextended:not([hidden])) {
    padding-top: 15rem;
    padding-bottom: 15rem;
    margin-top: -15rem;
    margin-bottom: -15rem;
}

.background-flavour-image.transparent {
    opacity: 0.5;
}

.has-text-justified {
    hyphens: auto;
}

/* For some reason, the Bulma classes do not work. */

.is-max-small {
    max-width: 400px !important;
    margin-left: auto;
    margin-right: auto;
}

.is-max-mobile {
    max-width: 768px !important;
    margin-left: auto;
    margin-right: auto;
}

.is-max-tablet {
    max-width: 769px !important;
    margin-left: auto;
    margin-right: auto;
}

.is-max-desktop {
    max-width: 1024px !important;
    margin-left: auto;
    margin-right: auto;
}

.is-max-widescreen {
    max-width: 1216px !important;
    margin-left: auto;
    margin-right: auto;
}

.is-max-fullhd {
    max-width: 1408px !important;
    margin-left: auto;
    margin-right: auto;
}

.safe-borders {
    padding-left: 2rem;
    padding-right: 2rem;
}

.flavour-image {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    mix-blend-mode: screen;
    opacity: 0.25;
    max-height: min(100%, 10rem);
    margin: -3rem;
}

/* Responsive behaviour for phones. */
@media only screen and (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .hero-title {
        margin-top: 2rem;
        margin-bottom: 4rem;
    }

    h2.title {
        font-size: 2rem;
    }

    hr {
        height: 1rem;
        margin: 3rem 0;
    }

    .map-background {
        padding-bottom: 5rem;
    }

    .flavour-image {
        margin-right: 0;
    }

    *:has(> .shifted-up) {
        padding-top: 14rem;
    }
}

@media only screen and (min-width: 768px) {
    img.is-small {
        max-width: 30rem;
    }
}