@font-face {
    font-family: 'legibility';
    src: url('assets/fonts/paragon/Paragon-Regular.otf')
}
@font-face {
    font-family: 'palanquin';
    src: url('assets/fonts/palanquin/Palanquin-Regular.ttf');
}

:root {
    --logo-red: #ef9976;
    --logo-orange: #eeb862;
    --logo-yellow: #ffea99;
    --logo-green: #c1e494;
    --logo-blue: #a1cad1;
    --logo-purple: #dba7bd;
}

.bg-orange {
    background-color: #faaf6844;
}
.bg-yellow {
    background-color: #ffea9944;
}
.bg-green {
    background-color: #cef39d44;
}
.bg-blue {
    background-color: #bae9f144;
}
.bg-purple {
    background-color: #edb8f144;
    
}
.bg-red {
    background-color: #fca17e44;
}

body {
    font-family: legibility;
    margin-left: calc(min(2rem, 25px));
    margin-right: calc(min(2rem, 25px));
    padding-bottom: 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: center;
}

.card-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    row-gap: 2rem;
    width: 80rem;
    max-width: calc(100% - 1.5rem);
}

.card {
    width: 20rem;
    height: 32rem;
    border-radius: 1rem;
    padding: 1.5rem;
    overflow: visible;
    box-shadow: 2px 2px 5px 0px #33220033;
}

.card-body {
    overflow: auto;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: 100%;
}

.event {
    position: relative;
    width: 80%;
    max-width: calc(42rem + 10%);
    min-height: 10rem;
    border-radius: 3rem;
    padding: 1.5rem;
    overflow: hidden;
    box-shadow: 2px 2px 5px 0px #33220033;
    margin-bottom: 2rem;
}

.event-image {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 20%;
    height: 100%;
    background-size: cover;
}

.event-text h2 {
    font-size: 1.25rem;
    text-align: left;
}
.event-text {
    margin-top: 2.5rem;
    margin-left: calc(20% + 1rem);
}

.event-date {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    text-align: right;
    margin-right: 1rem;
}

.event-title {
    display: inline-block;
}

.image-fill {
    width: 100%;
}

.card h2 {
    margin: 0px;
    font-size: 1.5rem;
}

h2 a {
    text-decoration: none;
}

.footer {
    position: fixed;
    bottom: 0px;
    width: 100%;
    min-height: 1rem;
    padding: 0.25rem;
    background-color: var(--logo-yellow);
    border-top: 1px solid #eeb862;
    font-size: 1.25rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: inherit;
    gap: 2rem;
    box-shadow: 0 -2px 5px 0px #33220033;
}

.divider {
    height: 0.5rem;
    width: 40rem;
    max-width: 80%;
    border-radius: 0.5rem;
    background-color: var(--logo-yellow);
    background-image: linear-gradient(90deg, var(--logo-orange), var(--logo-yellow), var(--logo-green), var(--logo-blue), var(--logo-purple));
    opacity: 0.5;
    margin-bottom: 2rem;
}

.asterix {
    font-family: palanquin;
    font-size: 0.875rem;
}

/* Header styling */
h1 {
    font-size: 2.25rem;
    margin: 0px;
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.75rem;
    margin: 0px;
    margin-bottom: 2rem;
    max-width: 40rem;
    line-height: 1.75;
}

/* Paragraphs */
p {
    max-width: 40rem;
    font-family: legibility;
    font-size: 0.875rem;
    line-height: 1.75;
    text-align: justify;
    padding-bottom: 0.5rem;
}

p img {
    max-width: 100%;
    padding: 0.5rem;
}

ul, ol {
    max-width: 40rem;
}

li {
    font-family: legibility;
    font-size: 0.875rem;
    line-height: 1.75;
    text-align: justify;
    padding-bottom: 0.5rem;
}

li img {
    width: 80%;
    max-width: 20rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

a {
    color: black;
}

.mt-1rem {
    margin-top: 1rem;
}

.mt-4rem {
    margin-top: 4rem;
}

.mb-halfrem {
    margin-bottom: 0.5rem;
}

.logo {
    width: 28rem;
    max-width: calc(90% - 100px);
    min-Width: 100px;
}

.lesezeichen {
    position: absolute;
    width: 10%;
    max-width: 100px;
    top: 0px;
    right: 10%;
    opacity: 0.55;
}

.blob {
    position: absolute;
    top: 2rem;
    left: calc(max(2rem, 50% - 25rem));
    width: 10rem;
    max-width: calc(20% + 5px);
}

.blob2 {
    position: absolute;
    top: calc(min(12rem, 32vw));
    left: calc(max(0.5rem, 50% - 35rem));
    width: 8.75rem;
    max-width: calc(20% + 5px);
}

.blob img, .blob2 img {
    width: 100%;
}
