/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    /*color: #222;*/
    font-size: 1em;
    /*line-height: 1.4;*/
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
    max-width: 100%;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Custom styles
   ========================================================================== */
@font-face {
    font-family: "Junglelaw";
    src: url("assets/Junglelaw-ZVpLZ.ttf");
}

:root {
    color-scheme: dark;
    --color-primary: hsl(148, 33%, 16%);
    --color-secundary: hsl(153, 31%, 6%);
    --color-accent: hsl(30, 89%, 57%);
    --color-text: white;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background-image: url("assets/Hintergrund.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
    display: grid;
    grid-template-areas:
        'header'
        'main'
        'footer';
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-rows: min-content 1fr min-content;
    text-align: center;
    font-family: system-ui, sans-serif;
    text-shadow: black 0.1rem 0.1rem 0.1rem;
}

body>* {
    padding: clamp(0.5rem, calc(0.5rem + ((1vw - 0.48rem) * 0.6944)), 1rem);
}

header {
    color: var(--color-accent);
}

.jumanji {
    font-family: "Junglelaw";
    text-transform: uppercase;
    background-image: linear-gradient(0deg, #E84039 20%, #F4D034 90%);
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.title {
    font-size: clamp(6rem, calc(6rem + ((1vw - 0.48rem) * 8.3333)), 12rem);
    margin-top: 6rem;
    margin-bottom: 0;
}

.subtitle {
    margin-top: clamp(-1.8rem, calc(-1.2rem + ((1vw - 0.48rem) * -0.8333)), -1.2rem);
    color: var(--color-accent);
    font-size: clamp(0.8rem, calc(0.8rem + ((1vw - 0.48rem) * 0.8333)), 1.4rem);
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

main {
    position: relative;
    max-width: 60rem;
    margin: 0 auto;
}

.mascot {
    display: grid;
    grid-template-columns: 66% 33%;
    align-items: center;
}


.nigel {
    justify-self: start;
    max-width: min(100%, 9rem);
    margin-top: 5rem;
    order: 1;
    height: min-content;
}

.speechbubble {
    justify-self: end;
    position: relative;
    max-width: 20rem;
    order: 0;
    background-color: burlywood;
    color: black;
    text-shadow: none;
    border-radius: clamp(0.5rem, calc(0.5rem + ((1vw - 0.48rem) * 0.6944)), 1rem);
    border: 0.1rem solid burlywood;
    padding: clamp(0.5rem, calc(0.5rem + ((1vw - 0.48rem) * 0.6944)), 1rem);
    margin-right: 1rem;
}

.speechbubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    right: -1rem;
    top: calc(50% - 1rem);
    border-top: 1rem solid transparent;
    border-bottom: 1rem solid transparent;
    border-left: 1rem solid burlywood;
}

section {
    padding-block: 2rem;
}

.lead {
    margin-block: 2rem;
    font-size: 1.2rem;
}

table.fee {
    margin: 0 auto;
}

table.fee td {
    padding-inline: 1rem;
}


.glass {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 0.3rem 2rem rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wood {
    background-color: #1a0600;
    background-image: url("assets/wood-pattern.png");
    border: 0.2rem solid rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.3rem 2rem rgba(0, 0, 0, 0.1);

    /* This is mostly intended for prototyping; please download the pattern and re-host for production environments. Thank you! */
}

@keyframes scroll-img {
    0% {
        transform: scale(30%);
        opacity: 0;
    }

    50% {
        transform: scale(60%);
        opacity: 0.8;
    }

    100% {
        transform: scale(100%);
        opacity: 1;
    }
}

.scroll-effect {
    animation-timeline: --image-scroll;
    /* binding element (--image-scroll) with the scroll */
    animation-name: scroll-img;

    view-timeline-name: --image-scroll;
    /* create the element (--image-scroll) */
    view-timeline-axis: block;

    animation-range: entry 25% cover 50%;
    /* start animation when element is 25% and cover when it's at 50% */
    animation-fill-mode: both;
    /* enable animation at the entry and the end */
}


footer {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-content: center;
}

footer .logo {
    padding: clamp(1rem, calc(1rem + ((1vw - 0.48rem) * 5.5556)), 5rem);
}

footer .claim {
    grid-column: 1/6;
}

a,
a:hover,
a:visited,
a:focus {
    color: var(--color-text);
    text-decoration: underline var(--color-accent);
}

.button {
    padding: 1rem;
    box-shadow: 0 0 0 0.1rem var(--color-accent);
    border-radius: 1rem;
    background-color: var(--color-secundary);
    color: var(--color-text);
    text-decoration: none;
    font-weight: bold;
    transition-duration: 500ms;
}

.button:hover,
.button:focus {
    border-radius: 0.5rem;
    color: var(--color-text);
    box-shadow: 0 0 0.5rem 0.5rem var(--color-accent);
    text-decoration: none;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */
.no-margin {
    margin: 0;
}

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {

    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}