@font-face {
    font-family: "Garamondt";
    src: url("../fonts/Garamondt-Regular.otf") format("opentype");
}

@font-face {
    font-family: "Sligoil";
    src: url("../fonts/Sligoil-Micro.woff");
}

:root {
    --text-color: #80840d;
    --background-color: rgba(255, 0, 140, 0.4);
    --font-size: 25px;
    --shadow: 0rem 0rem 0.5rem var(--background-color);

}

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

html {
    font-size: var(--font-size);
}

body, h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-weight: normal;
    font-size: 1rem;
}

a {
    color: var(--text-color);
}

/* IDs */
#announcer {
    position: fixed;
    bottom: 0;
    right: 0;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    width: 360px;
    background-color: var(--background-color);
    border: 2px solid var(--text-color);
    border-radius: 8px;
    font-family: "Sligoil";
    font-size: 0.8rem;
    padding: 10px 10px 10px 10px;
}

#hiddenprint {
    display: none;
    font-family: "Garamondt";
    font-size: 3rem;
    color: white;
    position: absolute;
    bottom: 3cm;
    right: 1cm;
    text-shadow: 0cm 0cm 0.7rem var(--background-color);
}

/* General styles */

body {
    font-family: "Sligoil";
    line-height: 1.1;
    margin: 0 auto;
    padding: 1.8rem;
    color: var(--text-color);
}


.background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shadow {
    filter: drop-shadow(var(--shadow));
}

.background img {
    object-fit: contain;
    object-position: center;
    width: 150%;
    height: 150%;
}


.loading {
    text-align: center;
    padding: 1.8rem;
    font-style: italic;
}

.error {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

h1 {
    font-family: "Garamondt", sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    margin-top: -1rem;
    line-height: 1;
    -webkit-text-stroke: 2px var(--text-color);
    -webkit-text-fill-color: white;
    text-shadow: var(--shadow);
}

header {
    position: sticky;
    display: block;
    top: 0;
}

.special {
    padding-bottom: 30px;
    font-size: 0.8rem;
}

.container {
    display: flex;
    font-size: 1rem;
    overflow: hidden;
}

.content {
    flex-direction: column;
}

.actinomy-image {
    max-width: 100%;
    margin-bottom: 1rem;
}

section {
    overflow: hidden;
}

.about {
    width: 30%;
    flex-shrink: 0;
    margin-right: 2rem;
}

.program, upcoming, past {
    flex-grow: 1;
}

.description {
    font-size: 1rem;
}

.events-list {
    flex-grow: 1;
    list-style: none;
    padding: 0;
}

.event-item {
    border-bottom: 2px solid var(--text-color);
    justify-content: center;
    overflow: hidden;
    display: flex;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    align-items: start;
}

h2 {
    margin-bottom: 1rem;
    text-decoration-thickness: 0.07rem;
    text-underline-offset: 0.1rem;
    font-weight: bold;
}

.event-image {
    width: 20%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 1rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.event-content {
    flex: 1;
}

.event-title {
    margin: 0 0 1rem 0;
    font-weight: bold;
}

section {
    margin-bottom: 1.8rem;
}

#footer {
    position: absolute;
    bottom: 0;
}

/* Mobile View */

@media (max-width: 1000px) {
    :root {
        --text-color: #80840d;
        --font-size: max(4vw, 15px);
    }

    .container {
        display: flex;
        flex-direction: column-reverse;
    }

    .about {
        width: 100%;
    }

    #announcer {
        max-width: 50%;
    }
}
