html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--background-color);
    margin: 0;
    position: relative;
}

* {
    box-sizing: border-box;
    position: relative;
    max-width: 100%;
    transition: .25s;
}

img {
    height: auto;
    display:block;
    max-width:100%;
}


/* Chromium Scrollbar styles */
::-webkit-scrollbar {
    background-color: var(--background-color);
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
}


/* Firefox scrollbar styles */
:root {
    scrollbar-color: var(--primary-color) #222;
    scrollbar-width: thick;
}

::selection {
    background-color: var(--primary-color);
    color: var(--background-color);
    ;
}

/* --------------- */
/* Lightbox styles */
/* --------------- */

/* 
   This code has 3 classes:
   1. image-area - place inside parent of img-tags
      enables the code.
   2. show-alt - place inside same container that has image-area
      shows img alt-text at the top of the lightbox
   3. split-image-area - goes into body-tag.
      prevents navigation between different image-areas
*/

.lightbox {
    display: none;
    /* initial state */
    opacity: 0;
    /* fully transparent */
    transition: opacity 0.5s;
    /* 0.5-second transition for opacity */

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 80%;
    max-height: 80%;
    transform: translate(-50%, -50%);
    box-shadow: 0 .5rem 1.5rem -1rem black;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;
    font-size: 2em;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.arrow:hover {
    opacity: 1;
}

#left-arrow {
    left: 4%;
}

#right-arrow {
    right: 4%;
}

.arrow,
.close {
    user-select: none;
}

.image-area img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: 0 .5rem 2.5rem -1.5rem black;
    cursor: pointer;
}

.lightbox-alt {
    color: white;
    font-size: 1em;
    text-align: center;
    margin: .5em auto 0;
    max-width: max-content;
}

#lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    width: 2rem;
    height: 2rem;
    border: .2rem solid white;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation .5s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: .15rem solid transparent;
    border-bottom-color: var(--secondary-color);
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* -------------------- */
/* Lightbox styles Ende */
/* -------------------- */

nav {
    padding: .5em .5em .5em .5em;
    background: var(--primary-color);
    position: fixed;
    top: 5em;
    left: 0;
    box-shadow: 0 .1em .8em -.2em black;
    z-index: 900;
    color: var(--primary-color);
    ;
    font-weight: 600;
    font-size: .8rem;
    line-height: 1.5em;
    display: flex;
    flex-direction: column;
}

nav a {
    transition: .25s;
    color: var(--background-color);
}

nav a:hover {
    opacity: .5;
}

/* Dynamic grid */
.grid-layout {
    --max-columns: var(--grid-max-columns);
    --min-column-width: 10rem;
    --gap: 1rem;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--min-column-width), 100%/var(--max-columns) - var(--gap))), 1fr));
    grid-gap: var(--gap);

    width: 100%;
}

.grid-layout-two {
    --grid-max-columns: 2;
}

.grid-layout-three {
    --grid-max-columns: 3;
}

.grid-layout-four {
    --grid-max-columns: 4;
}

/* Hero styles */
.hero {
    padding: 2rem;
    display: grid;
    place-items: flex-start;
    min-height: 100svh;
}

.hero .title-area h1 {
    font-size: 2em;
    font-weight: 900;
    line-height: 1.2em;
}

.hero .title-area p {
    font-weight: 500;
}

.hero .title-area strong {
    font-weight: 800;
}

/* Text Styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--title-font);
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    line-height: var(--page-line-height);
    color: var(--text-color);
}

a {
    text-decoration: none;
}

ul,
ol {
    padding: 0em 1em;
    margin: 0;
}

/* Button styles */
.button-area {
    display:flex;
    gap:.25rem;   
}

.button {
    max-width: max-content;
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    padding: .5em 1em;
    display: grid;
    place-items: center;
    border-radius: 100rem;
    font-size: .8em;
    border: .25em solid var(--primary-color);
}

.readmore {
    background: transparent;
    color: var(--primary-color);
    border-color: currentcolor;
}

.button:hover,
.button:focus {
    opacity:50%;
}

/* Blurb styles */
.blurb {
    display: flex;
}

/* Content styles */
main,
section {
    background: var(--background-color);
    padding: var(--section-padding);
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
}

.content {
    width: 95%;
    max-width: var(--content-max-width);
    display: flex;
    flex-direction: column;
    gap: var(--paragraph-gap);
}

.content h2 {
    font-weight: 600;
    font-size: 1.2rem;
}

/* Footer styles */
footer {
    padding: 1rem;
    background: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

footer ::selection,
nav ::selection {
    background-color: var(--secondary-color);
    color: black;
}

footer>* {
    width: var(--content-width);
    max-width: 95%;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

footer * {
    color: white;
}

.footer-bottom {
    --bottom-footer-spacing: 1rem;
    margin-top: calc(var(--bottom-footer-spacing) * 0.5);
    padding-top: calc(var(--bottom-footer-spacing) * 0.5);
    border-top: calc(var(--bottom-footer-spacing) * 0.05) solid var(--background-color);
}

.footer-bottom p {
    font-size: .8em;
}

footer a,
footer p {
    transition: .25s;
    line-height: 1.5em;
}

footer a:hover,
footer a:focus {
    opacity: 0.5;
}

/* Opening hours styles */
.opening-hours {
    display: grid;
    grid-template-columns: .25fr 1fr;
    gap: .15rem 0rem;
    max-width: 100%;
}

.opening-hours div:not(:nth-last-child(-n+2)) {
    padding: .15rem;
    border-bottom: .1rem solid #ddd;
    text-align: left;
}

.opening-hours div:nth-child(2n) {
    text-align: right;
}

.opening-hours>div:nth-child(n+9):nth-child(-n+10) {
    padding: .15rem;
}

@keyframes wheel {
    to {
        opacity: 0;
        top: .62em;
    }
}

/* Dropcap */
#dropcap::first-letter {
    font-size: 2.4em;
    font-weight: bold;
    float: left;
    margin: 0.15em 0.1em -.2em 0;
    line-height: .8em;
}

/* Responsive */
/* Tablet and below */
@media all and (max-width: 980px) {
    nav {
        top: 1rem;
    }

    .hero {
        min-height: var(--mobile-main-height);
    }

    footer {
        flex-direction: column;
    }
}

/* Font Imports */
/* frank-ruhl-libre-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/frank-ruhl-libre-v20-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* frank-ruhl-libre-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/frank-ruhl-libre-v20-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* frank-ruhl-libre-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/frank-ruhl-libre-v20-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* frank-ruhl-libre-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/frank-ruhl-libre-v20-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* frank-ruhl-libre-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/frank-ruhl-libre-v20-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* frank-ruhl-libre-800 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/frank-ruhl-libre-v20-latin-800.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* frank-ruhl-libre-900 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Frank Ruhl Libre';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/frank-ruhl-libre-v20-latin-900.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-300 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/quicksand-v31-latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-regular - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/quicksand-v31-latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-500 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/quicksand-v31-latin-500.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-600 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/quicksand-v31-latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* quicksand-700 - latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/quicksand-v31-latin-700.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}