/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Comic Relief', sans-serif;
}

:root {
    font-size: 16px;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    max-width: 1920px;
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
    white-space: normal;
    word-break: normal;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Typography and text alignment */
.bold {
    font-weight: bold;
}

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

.align-right {
    text-align: right;
}

.justify-content-space-between {
    justify-content: space-between;
}

/* Flexbox utilities */
.flex-container {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: column;
}

.flex1 {
    flex: 1 1 0;
}

.flex2 {
    flex: 2 1 0;
}

.flex3 {
    flex: 3 1 0;
}

.flex4 {
    flex: 4 1 0;
}

.flex5 {
    flex: 5 1 0;
}

.space-between {
    justify-content: space-between;
}

/* Containers and layout */
.img-container-padding {
    padding: 3rem;
    gap: 3rem;
}

.info-container {
    padding: 3rem;
    text-align: justify;
    font-size: 1.2em;
}

.info-container h1 {
    font-size: 2.5em;
    text-align: center;
}

.center-image-in-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-boxshadow {
    box-shadow: rgba(0, 0, 0, 0.24) 0 0.2em 0.5em;
    border-radius: 0.625em;
    border: 0.07em solid #dddddd;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}

.img {
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}

.height-one-hundred-percent {
    height: 100%;
}

/* Lists */
.collecting-trash-locations-list li {
    list-style: upper-roman;
    margin-left: 1.5em;
}

.collecting-trash-locations-list li::marker {
    color: #595858;
}

.ul-li-margin {
    margin-left: 1em;
}

.roman li {
    list-style: upper-roman;
}

.roman-left {
    list-style: none;
    padding-left: 0;
    counter-reset: roman;
}

.roman-left li {
    counter-increment: roman;
    position: relative;
    padding-left: 2em;
}

.roman-left li::before {
    content: counter(roman, upper-roman) " ";
    position: absolute;
    left: 0;
    width: 2em;
    text-align: left;
}

/* Motto section */
.motto {
    background-image: url("/static/images/other/motto_cover.jpeg");
    background-size: 16em;
    height: 6.5em;
    align-items: center;
    display: flex;
    will-change: transform;
}

.motto a {
    display: flex;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    height: 100%;
    font-style: italic;
    color: black;
    font-weight: bold;
    text-shadow:
        -0.25em -0.25em 0.25em #fff,
         0.25em -0.25em 0.25em #fff,
        -0.25em  0.25em 0.25em #fff,
         0.25em  0.25em 0.25em #fff,
         0     0.25em 0.25em #fff,
         0.25em  0    0.25em #fff,
         0    -0.25em 0.25em #fff,
        -0.25em  0    0.25em #fff;
    transition: transform 0.08s;
    cursor: pointer;
}

.motto a:active {
    transform: translateY(0.15em) scale(0.98);
}

.motto a:hover {
    text-shadow:
        -0.25em -0.25em 0.25em #EDEDEDFF,
         0.25em -0.25em 0.25em #EDEDEDFF,
        -0.25em  0.25em 0.25em #EDEDEDFF,
         0.25em  0.25em 0.25em #EDEDEDFF,
         0     0.25em 0.25em #EDEDEDFF,
         0.25em  0    0.25em #EDEDEDFF,
         0    -0.25em 0.25em #EDEDEDFF,
        -0.25em  0    0.25em #EDEDEDFF;
    transform: scale(1.03);
}

/* Navbar */
.navbar {
    display: flex;
    flex-direction: row;
    background: #f3f2f2;
    align-items: stretch;
    flex-wrap: wrap;
}

.navbar > a,
.navbar > .dropdown {
    flex: 1 1 0;
    text-align: center;
}

.navbar > a {
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.7em 0;
    font-size: 1.1em;
    background: inherit;
    color: inherit;
    text-decoration: none;
    border: 0.07em solid #dddddd;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.navbar a:hover,
.dropbtn:hover {
    background: #e9e9e9;
}

#collecting-trash-button:hover {
    box-shadow: inset 0 0.125rem 0.5rem 0 #E38E4EFF;
}
#collecting-trash-button:active {
    box-shadow: inset 0 0.25rem 1rem 0 #E38E4EFF;
}

#workshop-button:hover {
    box-shadow: inset 0 0.125rem 0.5rem 0 #A2C7C0FF;
}
#workshop-button:active {
    box-shadow: inset 0 0.25rem 1rem 0 #A2C7C0FF;
}

#marathon-button:hover {
    box-shadow: inset 0 0.125rem 0.5rem 0 #308cd399;
}
#marathon-button:active {
    box-shadow: inset 0 0.25rem 1rem 0 #308cd399;
}

#fun-link:hover {
    box-shadow: inset 0 0.125rem 0.5rem 0 #FF61C6FF;
}
#fun-link:active {
    box-shadow: inset 0 0.25rem 1rem 0 #FF61C6FF;
}

#partners-button:hover {
    box-shadow: inset 0 0.125rem 0.5rem 0 #8b26f0;
}
#partners-button:active {
    box-shadow: inset 0 0.25rem 1rem 0 #8b26f0;
}

.active:hover {
    box-shadow: inset 0 0.125rem 0.5rem 0 rgba(0, 0, 0, 0.25) !important;
}
.active:active {
    box-shadow: inset 0 0.25rem 1rem 0 rgba(0, 0, 0, 0.5) !important;
}

.navbar > a:hover,
.dropdown:hover,
.dropdown-content > a:hover,
footer a:hover {
    z-index: 10;
}

footer a:hover {
    transform: scale(1.03);
}

.dropbtn {
    height: 100%;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    background: #f3f2f2;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.dropbtn .fa-caret-up {
    display: none;
}

.dropdown:hover .dropbtn .fa-caret-down {
    display: none;
}

.dropdown:hover .dropbtn .fa-caret-up {
    display: inline;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    min-width: 100%;
    background: #f3f2f2;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.10);
    z-index: 101;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.7rem 1rem;
    background: #f3f2f2;
    text-align: center;
    font-size: 1.1rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
    box-shadow: none;
}

/* Header and footer */
header {
    background: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 101;
    box-shadow: 0 -0.13em 0.5em rgba(0,0,0,0.08);
    flex-shrink: 0;
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    box-shadow: 0 -0.13em 0.5em rgba(0,0,0,0.08);
    display: flex;
    flex-direction: row;
    width: 100%;
    text-align: center;
    padding: 0.5em 0;
    background-color: #f3ce00;
    font-size: 1em;
    z-index: 100;
    align-items: center;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    text-align: center;
    padding: 0.5em 0;
    background-color: #f3ce00;
    font-size: 1em;
    z-index: 100;
    align-items: center;
}

.footer-content > * {
    flex: 1 0 calc(100% / 3);
}

.footer-spacer {
    flex: 1 1 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.mail {
    text-decoration: underline;
    will-change: transform;
    display: inline-block;
}

.mail:hover {
    text-shadow: 0 0 0.2em #ededed;
    transform: scale(1.03);
}

/* Footer burger button */
.footer-burger {
    display: none;
    background: #fff;
    border: none;
    color: #f3ce00;
    font-size: 2.2em;
    border-radius: 50%;
    width: 2.2em;
    height: 2.2em;
    align-items: center;
    justify-content: center;
    margin: 0.5em auto;
    box-shadow: 0 0.1em 0.4em rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background 0.2s;
    z-index: 102;
}

/* Social media and partners */
.social-media {
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
    gap: 1rem;
    text-align: center;
    font-size: 1.5rem;
    flex-wrap: wrap;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    aspect-ratio: 1/1;
    background: white;
    border-radius: 50%;
    text-decoration: none;
}

.social-media a:hover {
    filter: drop-shadow(0 0 0.2em #607ba9);
}

.partners,
.social-media {
    padding: 0 1rem;
}

.partners {
    align-items: center;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.partners a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Logo size */
.logo-size {
    font-size: 1.5em;
    line-height: 1;
}

/* Specific links colors */
.natasha-link-workshop {
    color: #437a5d;
}

.library-link {
    color: #bb530d;
}

.vidin-link {
    color: #45559b;
}

.tancov-sustav-zdravec-link {
    color: #b30509;
}

.bmchk-link {
    color: #d40202;
}

.natasha-link-partners {
    color: #8b26f0;
}

.fun-link-text {
    color: #d7008a;
}

.fun-link-tanci {
    color: #c8041a;
}

.fun-page-link {
    color: #1c70b0;
}

.workshop-locations {
    color: #007507;
}

/* Sponsor circle */
.sponsor {
    width: 2em;
    aspect-ratio: 1/1;
    border-radius: 50%;
}

/* Captions */
.caption {
    padding: 3rem 3rem 0 3rem;
    font-size: 2em;
    color: #00d4ff;
}

.index-link {
    color: #5b74a1;
}

.collecting-trash-facts-caption {
    color: #e33a10;
}

.collecting-trash-color,
.collecting-trash-color a {
    color: #b15d1d;
}

/* Navbar active buttons background colors */
.navbar #collecting-trash-button.active {
    background: #e38e4e;
}

.navbar #workshop-button.active {
    background: #a2c7c0;
}

.navbar #marathon-button.active {
    background: #308cd399;
}

.navbar #partners-button.active {
    background: #b979e4;
}

#fun-link.active {
    background: #ff61c6;
}

/* Active state */
.active {
    font-weight: bold;
    border: 0.07rem solid rgba(0, 0, 0, 0.2) !important;
}

/* Error message */
.error {
    color: #ff0000;
    height: 100%;
    justify-content: center;
    text-align: center;
    font-size: 2.5em;
    margin-top: auto;
    padding: 3rem;
}

/* Line between divs */
.line-between-divs > div:not(:first-of-type) {
    position: relative;
}

.line-between-divs > div:not(:first-of-type)::before {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    width: 95%;
    left: 50%;
    border-radius: 1em;
    transform: translateX(-50%);
    background: black;
}

/* Utility hover and transform */
.link,
.ul-with-locations a {
    font-style: italic;
    transition: transform 0.18s cubic-bezier(.4,2,.6,1);
    will-change: transform;
    display: inline-block;
}

.link:hover,
.ul-with-locations a:hover {
    transform: scale(1.03);
}

.navbar > a,
.dropdown,
.dropdown-content > a,
footer a {
    will-change: transform;
}

/* Footer specific hover filters */
.natasha-footer:hover {
    filter: drop-shadow(0 0 0.2em #ff61c6);
}

.library-footer:hover {
    filter: drop-shadow(0 0 0.2em #ff6600);
}

.bmchk-footer:hover {
    filter: drop-shadow(0 0 0.2em red);
}

.tancov-sustav-footer:hover {
    filter: drop-shadow(0 0 0.2em #b30509);
}

.vidin-footer:hover {
    filter: drop-shadow(0 0 0.2em #45559b);
}

/* Marathon info and groups */
.marathon-info {
    font-size: 1.2em;
    text-align: right;
    padding: 1em 1em;
}

.marathon-groups-container {
    font-size: 1.3em;
    margin: auto 5em;
}

/* Sculpture images container */
.sculpture-and-container-images > * {
    flex-basis: calc(100% / 3);
    aspect-ratio: 1 / 1.4;
}

/* Media queries */
@media (max-width: 1033px) {
    #marathon-info {
        flex-direction: column;
    }
}

@media (max-width: 810px) {
    .motto a {
        font-size: 2.3rem;
    }
}

@media (max-width: 745px) {
    .motto a {
        font-size: 2.1rem;
    }
}

@media (max-width: 712px) {
    .motto a {
        font-size: 2rem;
    }

    .navbar {
        font-size: 0.8rem;
    }

    .dropdown-content a {
        font-size: 0.8rem;
    }
}

@media (max-width: 650px) {
    .motto a {
        font-size: 1.9rem;
    }
}

@media (max-width: 626px) {
    :root {
        font-size: 8px;
    }

    .motto a {
        font-size: 2.3rem;
    }

    .navbar {
        font-size: 1rem;
    }

    .dropdown-content a {
        font-size: 1rem;
    }

    main {
        font-size: 1.5rem;
    }

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

    .flex2 {
        order: 1;
    }

    .align-right {
        text-align: left;
    }

    footer {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        min-height: 0;
        background: #f3ce00;
        box-shadow: 0 -0.13em 0.5em rgba(0,0,0,0.08);
    }

    .footer-burger {
        display: flex;
    }

    .footer-content {
        display: none;
        animation: footerExpand 0.2s;
    }

    .footer-content.expanded {
        display: flex;
    }

    .footer-contact p {
        margin: 0;
        line-height: 1.5;
    }

    .footer-burger.expanded.expand {
        display: none;
    }

    .partners {
        font-size: 1.5rem;
    }

    .social-media a {
        width: 4.5rem;
    }

    .social-media i {
        font-size: 3.5rem;
    }

    .footer-burger .fa-angle-down {
        display: none;
    }

    .footer-burger .fa-angle-up {
        display: inline;
    }

    .footer-burger.expanded .fa-angle-up {
        display: none;
    }

    .footer-burger .fa-angle-down {
        display: none;
    }

    .footer-burger.expanded .fa-angle-down {
        display: inline;
    }

    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 387px) {
    .motto {
        height: auto;
    }
}

@media (max-width: 326px) {
    .motto a {
        font-size: 2.3rem;
    }
}

/* Animations */
@keyframes footerExpand {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
