html {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    margin: 0;
    padding: 1em;
    font-family: 'Noto Sans', sans-serif;
    color: rgb(77, 77, 77);
}

.title {
    grid-area: title;
    justify-self: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.logo {
    grid-area: logo;
    justify-self: flex-end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 12px;
}

.full {
    grid-area: full;
    padding: 1em;
}

.l-big {
    grid-area: l-big;
    position: relative;
}

.r-small {
    grid-area: r-small;
    position: relative;
}

.l-small {
    grid-area: l-small;
}

.r-big {
    grid-area: r-big;
}

.boxtainer {
    box-sizing: border-box;
    width: inherit;
    display: grid;
}

.rcpImage {
    width: auto;
    height: auto;
    max-width: 100%;
}

.logoImage {
    width: auto;
    height: auto;
    max-width: 100%;
    margin-top: 8px;
    margin-bottom: 12px;
}

.wordCloud {
    padding: 2em;
}

#flyIn {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    cursor: pointer;
}

article {
    min-height: 100%;
    padding: 0.5em 1.5em 1.5em 1.5em;
    background-color: rgba(250, 250, 250, 1.0);
    box-shadow: 10px 10px 5px #cccccc;
    align-self: end;
    position: absolute;
    top: 0;
    visibility: hidden;
}

#recipe-intro {
    border: inherit;
}

#recipe-body {
    border: inherit;
    display: flex;
}

#ingredients {
    flex: 1 1;
    margin-right: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
}

.noshow {
    display: none !important;
}

#instructions {
    flex: 1.5 1.5;
}

.concluding {
    text-indent: 0 !important;
    margin-left: 2em;
    line-height: 1.36em;
}

.concluding-1 {
    text-indent: 0 !important;
    margin-top: 2em !important;
    margin-bottom: 0.2em;
}

.stretchLeft {
    animation-name: stretchLeft;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    transform-origin: 100% 0%;
}

@keyframes stretchLeft {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.stretchRight {
    animation-name: stretchRight;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    transform-origin: 100% 0%;
}

@keyframes stretchRight {
    0% {
        transform: scaleX(1)
    }

    100% {
        transform: scaleX(0)
    }
}

/* other styles */

.nav-top {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1em;
}

.nav-item {
    margin: 1em 0.5em 1em 0.5em;
    display: inline;
    font-size: 120%;
}

.ingdtQty {
    text-align: right;
    width: 45%;
    padding-right: 1em;
}

.ingdtList {
    margin-top: 1em;
    font-size: 0.96em;
    width: 100%;
    table-layout: fixed;
}

.ingdtCaption {
    text-align: left;
    font-weight: bold;
}

p,
dl,
dt,
dd {
    line-height: 1.84em;
}

td {
    vertical-align: top;
    line-height: 1.5em;
    padding: 3px;
}

dt {
    margin-top: 1.5em;
    color: rgba(115, 115, 115, 1.0)
}

p,
dd {
    text-indent: 1em;
}

p {
    margin-top: 0;
    margin-bottom: 0;
}

p:first-of-type {
    margin-top: auto;
    text-indent: 0;
}

dt + dd {
    text-indent: 0;
}

.chevron {
    background-color: rgba(250, 250, 250, 0.5);
    padding: 0.5em;
    z-index: 10;
}

/* styles for index */
.index-letter {
    list-style-type: none;
    font-weight: bold;
    list-style-type: none;
    font-weight: bold;
}

ul.index-letter > li {
    margin: 1em;
    line-height: 1.2em;
    break-after: avoid;
}

.rcp-list-entry {
    list-style-type:none;
    text-indent:-3em;
    margin-left:2em;
}

ul.rcp-list-entry > li {
    margin: 5px
}

.no-break {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.col-4 {
    column-count: 4;
    column-gap: 10px;
}

#toc-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

li > a.toc-list-link-big {
    background-color: inherit;
    color: darkslategray;
    font-size: x-large;
}

.ul-triangle {
    list-style: none;
}

.ul-triangle li::before {
    content: "\25b6";
    color: rgb(120, 120, 120);
    display: inline-block;
    width: 2em;
    font-size: 7px;
    margin-left: -2em;
}

.ul-triangle li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* styles for cat pages */
.tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    padding-top: 20px;
    height: 800px;
}

.tile {
    width: 270px;
    height: 270px;
    margin: 10px 10px 0 0;
    box-shadow: 4px 4px 2px #999;
}

.tiles .tile:first-of-type {
    margin: -20px 35px 10px -25px;
}

/* styles for help page */
.col-2 {
    display: block;
}

.intro-col {
    flex: 1 1;
}

.intro-col:first-of-type {
    margin-right: 2em;
}

.intro-col-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 12px;
}

.small-tile {
    margin: 2em;
}

.indent-1em {
    margin-left: 1em;
}

/* styles for making-of */
.post {
    display: flex;
    line-height: 172%;
    margin-bottom: 2em;
}

.post-date {
    margin-right: 2em;
    margin-left: 3%;
    width: 8%;
    font-size: larger;
}

.post-text {
    background-color: #e5e5e5;
    padding: 2em;
    width: 85%;
    box-shadow: 4px 4px 2px #999;
}

/* styles for version history */
.version {
    display: flex;
    line-height: 172%;
    margin-bottom: 2em;
}

.version-no {
    margin-right: 2em;
    margin-left: 3%;
    width: 8%;
    font-weight: bold;
    font-size: larger;
}

.version-text {
    background-color: #e5e5e5;
    padding: 2em;
    width: 85%;
    box-shadow: 4px 4px 2px #999;
}

.shadow3 {
    box-shadow: 3px 3px 1px #999;
}

#impressum {
    margin: 1em;
}

/* styles for about-cookbook and about-me */
.main-area {
    margin: 2em;
}

.chapter {
    margin-top: 1em;
    display: block;
}

.croppedImageRight {
    display: none;
    margin-top: 0;
    margin-left: 1em;
    margin-bottom: 0;
    width: auto;
    height: 20%;
}

.croppedImageLeft {
    display: none;
    margin-top: 0;
    margin-right: 1em;
    margin-bottom: 0;
    width: auto;
    height: 20%;
}

.formIndexEntry {
    border: 2px;
    margin-left: 1em;
    font-weight: normal;
    cursor: pointer;
    text-decoration: none;
    color: #343a40 !important;
}

/* media queries go here */

@media screen and (min-width: 280px) {
    .boxtainer {
        grid-template-columns: 1fr;
        grid-template-areas: "logo""title""full""l-big""r-small""l-small""r-big";
    }

    article {
        width: auto;
        display: flex;
        flex-direction: column;
        left: 0;
    }

    #recipe-body {
        flex-direction: column;
    }

    .col-4 {
        column-count: 1;
    }
}

@media screen and (min-width: 480px) {
    .boxtainer {
        grid-template-columns: 5fr 2fr 5fr;
        grid-template-areas: "title . logo""full full full""l-big l-big r-small""l-small r-big r-big";
    }

    article {
        left: -24%;
    }

    .col-4 {
        column-count: 2;
    }
}

@media screen and (min-width: 800px) {
    .boxtainer {
        grid-template-columns: 8px 5fr 2fr 5fr 8px;
        grid-template-areas: ". title . logo ."". full full full ."". l-big l-big r-small ."". l-small r-big r-big .";
    }

    article {
        left: -64%;
    }

    #recipe-body {
        flex-direction: row;
    }

    .chapter {
        display: flex;
    }

    .croppedImageLeft {
        display: block;
    }

    .croppedImageRight {
        display: block;
    }

    .col-2 {
        display: flex;
    }

    .col-4 {
        column-count: 3;
    }
}

@media screen and (min-width: 1400px) {
    .boxtainer {
        grid-template-columns: auto 600px 200px 600px auto;
        grid-template-areas: ". title . logo ."". full full full ."". l-big l-big r-small ."". l-small r-big r-big .";
    }

    article {
        left: -200px;
    }

    .col-2 {
        display: flex;
    }

    .col-4 {
        column-count: 4;
    }

    .main-area {
        margin: 0;
        width: 76%;
    }
}

@media print {
    @page {
        size: landscape;
    }

    .logo,
    .l-big {
        display: none !important;
    }

    .boxtainer {
        grid-template-columns: 1fr 6fr 1fr;
        grid-template-areas: ". title ."". r-small .";
    }
}
