*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    text-shadow: none;
    cursor: pointer;
}

/* 5. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 7. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root,
#__next {
    isolation: isolate;
}

body {
    font-family: sans-serif;
    font-size: 1.125rem;
    width: 90%;
    min-width: 960px;
    max-width: 1280px;
    background-color: white;
    margin-left: auto;
    margin-right: auto;

    /* 3. Add accessible line-height */
    line-height: 1.5;
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
    min-height: 100%;

    background-color: rgb(239, 241, 235);
}

.splitview {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-bottom: 40px;
    border-bottom: solid 1px #000;
}

footer {
    margin-top: 10px;
}

.vertically_centered {
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    line-height: 120%;
    margin-bottom: 20px;
    margin-top: 10px;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    margin-bottom: 1rem;
}

header {
    padding-top: 40px;
    padding-bottom: 20px;
    font-size: 1.25rem;
    border-bottom: solid 8px black;
}

.grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 80px;
}

.thumbscontainer {
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contentItem {
    overflow: scroll;
}

.viewercontainer {
    width: 100%;
    max-width: 700px;
    border: 10px solid white;
}

.viewer {
    width: 100%;
    max-width: 700px;
    height: 800px;
}

.tabbar {
    height: 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    border-radius: 6px;
    top: 10px;
    z-index: 1000;
}

.item_menu {
    margin-top: 20px;
    margin-bottom: 35px;
    display: flexbox;
    font-size: 1.5rem;
    font-weight: lighter;
    column-wrap: wrap;
    border-bottom: 1px solid black;
}

.pattern_image {
    border: solid 10px #fff;
}

.pattern_links_box {
    display: inline-block;
    background-color: #fff;
    padding: 0.5rem 1rem;
    margin-top: 2rem;
    font-size: 1.25rem;
}

.download_icon {
    font-weight: bolder;
    display: inline-block;
    margin-right: 1rem;
}

.pattern_download {
    display: inline-block;
    margin-right: 1rem;
}

.pattern_links {
    line-height: 200%;
    display: inline-block;
}

a:hover {
    color: #000;
}

.item_button {
    display: inline-block;
    all: unset;
    border-radius: none;
    text-align: center;
    cursor: pointer;
    padding: 0.25rem 1rem;
}

.title {
    height: 125px;
    display: flexbox;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-direction: column;
}

.bold {
    font-weight: 600;
    color: white;
    background-color: black;
    background-color: rgba(30, 144, 255, 0.75);
    background-color: rgb(0, 199, 83);
    background-color: rgb(0, 0, 0);
}

.to_top_link {
    display: inline-block;
    border-top: 4px solid black;
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}

button:hover {
    background-color: rgb(0, 199, 83);
}

.selected {
    background-color: white;
}

.headerlogo {
    width: 160px;
    height: 160px;
    background-image: url("assets/drastadigital_logo\ schwarz.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.thumbnailholder {
    width: 160px;
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
}

.no_background {
    background-color: inherit;
}

.thumbnail {
    width: 160px;
    object-position: top;
}

.thumbtitle {
    display: block;
    text-align: center;
    line-height: 130%;
    padding: 5px;
}

.fixedThumbnail {
    height: 200px;
    object-fit: cover;
    overflow: hidden;
    object-position: center;
}

.description {
    max-width: 800px;
}

.animation {
    max-width: 700px;
}

.gallery {
    display: grid;
    grid-template-columns: auto 290px;
    gap: 40px;
    width: 100%;
    height: 100%;
    font-size: 1rem;
}

.gallery_image_container {
    height: 100%;
    object-fit: contain;
    border: solid 10px white;
}

.bordered {
    border: solid 10px white;
}

.margin_top_10 {
    margin-top: 25px;
}

.gallery_image {
    width: 100%;
}

.gallery_thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: left-start;
    align-items: start;
    align-content: start;
    gap: 10px;
}

.gallery_thumbnail_container {
    width: 140px;
}

.gallery_thumbnail {
    width: 140px;
    height: 140px;
    object-fit: cover;
    cursor: pointer;
}

video {
    width: 100%;
    border: solid 10px white;
}

.imageOverlay {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100svw;
    height: 100svh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    object-fit: cover;
}

.overlayImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hidden {
    display: none;
}

a {
    text-decoration: none;
    color: rgb(0, 199, 83);
}

p {
    margin-top: 1rem;
    margin-bottom: 1rem;
    hyphens: auto;
}

blockquote {
    padding: 1rem;
    font-style: italic;
    background-color: white;
}

section {
    margin-bottom: 2rem;
}

.mobile_only {
    display: none;
}

.no_mobile {
    display: auto;
}

.partner_logos {
    display: flex;
    width: 100%;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-items: flex-start;
    padding-bottom: 2rem;
    border-bottom: 1px solid black;
    mix-blend-mode: multiply;
}

.partner_logo {
    display: block;
    width: 200px;
    height: auto;
}


@media (max-width: 1080px) {
    .grid {
        gap: 40px;
    }

    .gallery {
        gap: 30px;
    }
}

@media (max-width: 960px) {
    body {
        width: 90%;
        min-width: inherit;
    }

    .grid {
        gap: 40px;
    }

    h1 {
        font-size: 2rem;
    }

    .item_menu {
        font-size: 1.125rem;
    }

    .gallery {
        grid-template-columns: auto 140px;
        gap: 30px;
    }

    .gallery_thumbnails {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .item_button {
        padding: 0.25rem 0.5rem;
    }

    .gallery {
        display: block;
    }

    .gallery_thumbnail_container {
        width: 120px;
    }

    .gallery_thumbnails {
        margin-top: 20px;
        display: flexbox;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: start;
        align-content: start;
    }

    .hidden {
        display: none;
    }
}

@media (max-width: 760px) {
    body {
        width: 94%;
        min-width: inherit;
        font-size: 1rem;
    }

    header {
        padding-top: 20px;
        font-size: 1rem;
        border-bottom: solid 6px black;
    }

    .grid {
        grid-template-columns: 140px 1fr;
    }

    .thumbnailholder {
        width: 140px;
        font-size: 0.9rem;
    }

    .thumbnail {
        width: 140px;
    }

    .fixedThumbnail {
        height: 180px;
        object-fit: cover;
        overflow: hidden;
        object-position: center;
    }

    .title {
        height: 115px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .partner_logos {
        margin-top: 2rem;
    }

    .partner_logo {
        width: 150px;
    }
}

@media (max-width: 640px) {

    .title {
        border-top: 1px solid black;
        margin-top: 20px;
        height: auto;
        display: block;
        padding-top: 20px;
    }

    .margin_top_10 {
        margin-top: 0px;
    }

    .flexible_grid {
        display: block;
    }

    .thumbscontainer {
        font-size: 1rem;
        display: flex;
        flex-direction: row;
        gap: 25px;
        overflow: scroll;
    }

    .partner_logos {
        border: none;
    }

}

@media (max-width: 480px) {
    .item_menu {
        display: flex;
        margin-top: 0px;
        margin-bottom: 20px;
        font-size: 1rem;
        font-weight: lighter;
        gap: 0px;
        column-wrap: wrap;
    }

    .hidden {
        display: none;
    }

    .pattern_links_box {
        display: inline-block;
        padding: 0.5rem 1rem;
        margin-top: 2rem;
        font-size: 1.125rem;
    }

    header {
        border-bottom: none;
    }

    .mobile_only {
        display: inherit;
    }

    .no_mobile {
        display: none;
    }

    .extra_margin {
        margin-bottom: 1rem;
    }

    .gallery_thumbnail_container {
        width: 100px;
    }

    .gallery_thumbnails {
        margin-top: 10px;
        display: flexbox;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: start;
        align-content: start;
    }

    .gallery_thumbnail {
        width: 100px;
        height: 100px;
    }

    .thumbnail {}

    .fixedThumbnail {
        height: 120px;
    }

    .partner_logos {
        flex-direction: column;
    }
}