/* CUSTOM PROPERTIES */

:root {
    --color-green: #405d27;
    --color-orange: #e58e26;
    --color-gray: #3e4444;
    --color-white: #ffffff;
}

/* GENERAL */

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

html {
    height: 100%;
    scroll-behavior: smooth;
}

h2[id] {
    scroll-margin-top: 70px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Gayathri', sans-serif;
    color: var(--color-gray);
    font-size: 1em;
}

h1 {
    text-align: center;
    color: var(--color-orange);
    padding: 1em;
}

h2 {
    text-align: center;
    color: var(--color-orange);
    margin: 2em 0 1em 0;
}

section {
    padding: 0;
    margin: 0;
}

.section {
    margin: auto;
    max-width: 700px;
    width: 90%;
}

a {
    color: var(--color-green);
    transition: color 0.2s;
}

a:hover {
    color: var(--color-orange);
}

a:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-green);
    color: white;
    padding: 0.5em 1em;
    z-index: 100;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
    color: white;
}

.container {
    padding: 0 1em;
}

/* NAVIGATION */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 55px;
    z-index: 1;
}

#menu-button {
    position: fixed;
    top: 0.5em;
    right: 0.5em;
    width: 2.5em;
    background: none;
    border: none;
    padding: 0.5em;
    cursor: pointer;
}

#menu-button svg {
    width: 100%;
    height: auto;
    fill: rgba(100, 100, 100, 1);
}

#menu-button:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

#menu {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6em 0.5em 0.5em 0.5em;
    background-color: rgba(0, 0, 0, 0.7);
    text-align: right;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2;
}

#menu-768 {
    display: none;
}

#menu p {
    margin: 0.5em;
}

#menu a {
    text-decoration: none;
    color: white;
}

@media only screen and (min-width: 768px) {
    #menu-button {
        display: none;
    }

    #menu {
        display: none;
    }

    #menu-768 {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        padding: 0.5em;
    }

    #menu-768 p {
        margin: 0.5em;
    }

    #menu-768 a {
        text-decoration: none;
    }
}

/* HEADER */

header {
    text-align: center;
    margin-top: 4em;
}

header img {
    width: 90%;
    height: auto;
    margin: 1em 0 0 0;
}

/* DESCRIPTION */

#description {
    text-align: center;
    font-size: 1.3em;
    line-height: 1.5em;
    margin: 0 auto;
    max-width: 90%;
}

#description p {
    margin: 0.5em auto;
    padding: 0;
}

@media only screen and (min-width: 768px) {
    #description {
        max-width: 50%;
    }
}

/* FACEBOOK EVENT */

#facebook-event {
    text-align: center;
    font-size: 1.2em;
    line-height: 1.5em;
    padding: 0.5em 1em;
    border: 3px solid var(--color-orange);
    margin: 2em auto;
    max-width: 90%;
}

@media only screen and (min-width: 768px) {
    #facebook-event {
        max-width: 50%;
    }
}

/* SHARE */

#share {
    text-align: center;
    padding: 1em 0;
    font-size: 1.5em;
    line-height: 1em;
    background-color: var(--color-green);
    color: white;
}

#share a {
    color: white;
}

#share a:hover {
    color: var(--color-orange);
}

/* PROGRAM */

#program-section {
    display: flex;
    flex-direction: column;
}

#program-section h3 {
    text-align: center;
    font-size: 2.5em;
    text-transform: uppercase;
    color: var(--color-green);
    margin: 1em 0;
}

#program-legend {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3em;
    margin-bottom: 2em;
}

.legend {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.legend img {
    height: 50px;
    margin: 0 0.5em;
}

.svg-in-text {
    max-height: 1.25rem;
    vertical-align: -0.25rem;
}

.cafe {
    max-width: 400px;
    width: 100%;
    padding: 1em;
    border: 1px solid var(--color-green);
    border-radius: 10px;
}

.cafe-name {
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    padding: 0.5em;
}

.cafe-info {
    text-align: center;
    padding: 0.5em;
}

.cafe-info svg {
    fill: var(--color-green);
    height: 20px;
}

.cafe .svg-in-text {
    /* https://stackoverflow.com/questions/22252472/how-can-i-change-the-color-of-an-svg-element */
    filter: invert(32%) sepia(10%) saturate(1959%) hue-rotate(49deg) brightness(96%) contrast(95%);
}

.cafe-description {
    padding: 0.5em;
}

.cafe-icons {
    text-align: center;
}

.cafe-icons img {
    height: 30px;
    margin: 0.5em;
}

.cafe-info .svg-in-text:not(:first-child),
.event-info .svg-in-text:not(:first-child) {
    padding-left: 2ex;
}

.events {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2em;
}

.event {
    max-width: 400px;
    width: 100%;
    padding: 0.5em;
    border: 1px solid var(--color-orange);
    border-radius: 10px;
}

.event-name {
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    padding: 0.5em;
}

.event-info {
    text-align: center;
    padding: 0.5em;
}

.event-info svg {
    fill: var(--color-orange);
    height: 20px;
}

.event-description {
    padding: 0.5em;
}

.event-icons {
    text-align: center;
}

.event-icons img {
    height: 30px;
    margin: 0.5em;
}

.event .svg-in-text {
    filter: invert(61%) sepia(64%) saturate(1002%) hue-rotate(346deg) brightness(96%) contrast(86%);
}

/* MAP */

#map-section {
    text-align: center;
}

#map-section iframe {
    width: 1000px;
    max-width: 96%;
    border: none;
}

/* ARCHIVE */

#archive-section {
    text-align: center;
}

/* CONTACTS */

#contacts-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1em;
    gap: 1em;
    margin-bottom: 3em;
}

.contact {
    width: 300px;
    text-align: center;
}

.contact img {
    width: 200px;
    border-radius: 50%;
}

/* SPONSOR */

#sponsor-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    line-height: 1em;
    gap: 1em;
    margin-bottom: 3em;
}

.sponsor {
    width: 300px;
    text-align: center;
}

/* FOOTER */

footer {
    background-color: var(--color-green);
    width: 100%;
    color: white;
    text-align: center;
    line-height: 1.2em;
    padding: 2em 0;
}

footer a {
    color: white;
}

footer a:hover {
    color: var(--color-orange);
}