:root {
    --background-first: rgb(220, 220, 220);
    --background--second: rgba(210, 210, 210, 1.0);
    --background--third: rgba(200, 200, 200, 1.0);
    --remark-color: rgb(184, 46, 28);
    --remarkok-color: rgb(17, 129, 36);
    --rounded-radius: 3px;
    --text-color: rgb(65, 65, 65);
    --text-color-title: rgb(60, 60, 60);
    --text-color-header: rgb(50, 50, 50);
    --padding-general: 15px;
    --font-base: 'Poppins', Arial, Helvetica, sans-serif;
    --font-title: "Times New Roman Extra Bold", Times, serif;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-RegularItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

@font-face {
    font-family: 'Times New Roman Extra Bold';
    src: url('../fonts/TimesNewRomanExtraBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--background-first);
}

* {
    font-family: var(--font-base);
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 300;
}

p,
img,
li {
    color: var(--text-color);
}

b {
    font-weight: 700;
}

ul {
    margin: 0;
    padding: 5px 0 5px 20px;
    list-style-type: none;
}

li {
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: space-evenly;
}

.main-title {
    color: var(--text-color-title);
    font-size: clamp(1rem, 5vw, 3rem);
    white-space: nowrap;
    margin: 25px;
    font-family: var(--font-title);
    text-decoration: none;
}

.main-title a {
    text-decoration: none;
    color: inherit;
}

.days {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 10vh;
}

.main {
    display: flex;
    flex-direction: row;
    width: 90vw;
    flex: 1;
    align-self: center;
    gap: 20px;
}

.main>.sidebar {
    flex-shrink: 0;
    background-color: var(--background--third);
    padding: calc(var(--padding-general) * 2);
    align-self: flex-start;
    margin: 50px 0;
    border-radius: var(--rounded-radius);
    position: sticky;
    top: 20px;
}

.main>.sidebar li a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
}

.sidebar ul {
    padding: 0px;
}

.main>.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: auto;
    margin: 50px 0;
    margin-bottom: 100px;
}

.sidebar-button {
    display: none;
}


@media (max-width: 1024px) {

    .main {
        flex-direction: column;
    }

    .sidebar-button {
        display: block;
        position: fixed;
        left: 10px;
        top: 50%;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        z-index: 2000;
        transition: left 0.3s ease;
    }

    .sidebar-button.open {
        left: calc(100vw - 50px);
    }

    .main>.sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100%;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: var(--background--third);
        transition: left 0.3s ease;
        z-index: 1999;
    }

    .main>.sidebar.open {
        display: block;
        left: 0;
        padding: 5vh 10vw;
        box-sizing: border-box;
    }

    .main>.sidebar.open li {
        padding: 0.5rem;
    }

    .day .header {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .day .header p {
        text-align: center;
    }

    .no-scroll {
        overflow: hidden;
    }
}

.day {
    display: flex;
    gap: 10px;
    flex-direction: column;
    width: 100%;
}

.day .header {
    display: flex;
    justify-content: space-between;
    background-color: var(--background--third);
    border-radius: var(--rounded-radius);
    padding: max(var(--rounded-radius), var(--padding-general)) max(var(--rounded-radius), var(--padding-general));
}

.day .header p {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-color-header);
    margin: 0;
    padding: 0;
}

.day .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--background--second);
    border-radius: var(--rounded-radius);
    padding: max(var(--rounded-radius), var(--padding-general));
}

.day .content p,
.day .content a,
.day .content li {
    margin: 0;
    padding: 5px;
}

.day .section .header,
.day .section .content {
    background-color: transparent;
    padding: 0;
    gap: 0px;
}

.day .section .header p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 600;
}

.section .content {
    margin-left: 1rem;
}

remark {
    font-weight: 700;
    font-style: italic;
    color: var(--remark-color);
}

remarkok {
    font-weight: 700;
    font-style: italic;
    color: var(--remarkok-color);
}

.gallery {
    position: relative;
    width: clamp(75%, 100%, 800px);
    /* fixed width */
    height: clamp(200px, 100vh, 600px);
    /* fixed height */
    margin: auto;
    overflow: hidden;
    /* crop images */
    box-sizing: border-box;
}

.gallery-element {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-element.active {
    display: block;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* crop nicely */
    display: block;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    text-align: center;
    padding: 0.5em;
    font-size: 0.9rem;
}

.gallery button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.2em 0.5em;
    cursor: pointer;
    z-index: 10;
}

.gallery .prev {
    left: 0;
}

.gallery .next {
    right: 0;
}

.gallery button:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.lightbox-inner {
    position: relative;
    line-height: 0;
    touch-action: none;
    /* important for pinch/pan on mobile */
}

.lightbox img {
    display: block;
    cursor: inherit;
    max-width: none;
    max-height: none;
    user-select: none;
    pointer-events: auto;
    -webkit-user-drag: none;
    /* Safari/Chrome */
}