/* --- breakpoints templates ------------------------------------------------ */
@media only screen and (min-width: 481px) {
}

@media only screen and (min-width: 769px) {
}

@media only screen and (min-width: 1280px) {
}

/* --- setup ---------------------------------------------------------------- */
:root {
    --logo: #1b1b32;
    --bg: #24223c;
    --bg-h: #3f3b72;
    --white: #f5f4eb;
    --white-h: #e8e2b0;
}

* {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--bg);
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
}

main {
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
}

li {
    list-style-position: inside;
}

/* --- typography ----------------------------------------------------------- */
html {
    font-size: 16px;

    @media only screen and (min-width: 600px) {
        font-size: 18px;
    }
}

h1 {
    font-weight: 800;
    font-size: 3.05rem;
    letter-spacing: -0.75px;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

h2 {
    font-weight: 800;
    font-size: 2.44rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0.5rem 0;
}

h3 {
    font-size: 1.95rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

h4 {
    font-size: 1.56rem;
    letter-spacing: -0.25px;
    line-height: 1.2;
}

h5 {
    font-size: 1.25rem;
    letter-spacing: -0px;
    line-height: 1.8;
}

body {
    font-size: 1rem;
    letter-spacing: -0px;
    line-height: 1.8;
}

caption {
    font-size: 0.8rem;
    letter-spacing: +0.25px;
}

/* --- layout --------------------------------------------------------------- */
.content-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100vw;
    max-width: 1625px;
    margin: 0 auto;
    box-shadow:
        rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
        rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

/* --- page ----------------------------------------------------------------- */
.teaser {
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;

    @media (width > 720px) {
        flex-direction: row;
    }

    .logo {
        position: relative;
        margin: 0 1rem 0 0;
        transform: rotate(340deg);
        right: 500px;
        height: 300px;
        width: 300px;
        animation: roll 6s forwards linear;
        animation-delay: 0.5s;
    }

    h1 {
        font-size: 4.5rem;
        line-height: 1;
        margin: 0;
        color: var(--white);
    }

    .canvas-teaser {
        position: relative;

        img {
            height: 100px;
            width: auto;
            position: absolute;

            &.radio {
                transform: rotate(24deg);
                top: 12px;
                right: 36px;
                width: 100px;
                height: auto;
            }

            &.boules-group {
                transform: rotate(12deg);
                right: 200px;
                width: 80px;
                right: 16px;
                bottom: -24px;
            }

            &.brauly-head {
                transform: scaleX(-1);
                object-fit: cover;
                max-height: 40px;
                overflow: hidden;
                width: 64px;
                top: 0px;
                right: -12px;
            }
        }
    }
}

@keyframes roll {
    0% {
        transform: rotate(0deg);
    }
    80% {
        right: 0;
        transform: rotate(348deg);
    }
    88% {
        right: 16px;
        transform: rotate(332deg);
    }
    100% {
        right: 0;
        transform: rotate(340deg);
    }
}

/* --- canvas main ------------------------------------------------------------ */
.section-canvas-main {
    height: 320px;
    position: relative;
    width: calc(100% - 4rem);
    max-width: 400px;

    @media only screen and (min-width: 441px) {
        height: 240px;
    }

    @media only screen and (min-width: 481px) {
        margin-bottom: 48px;
        height: 160px;
        max-width: 640px;
    }

    img {
        height: 120px;
        width: auto;
        position: absolute;

        &.marc-head {
            height: 80px;
            z-index: 1;
            top: 0px;
            left: 56px;
        }

        &.marc-body {
            height: 48px;
            transform: scaleX(-1);
            top: 64px;
            left: 64px;
        }

        &.ruben-head {
            height: 160px;
            z-index: 1;
            transform: rotate(-32deg);
            top: -24px;
            left: -48px;
        }

        &.ruben-body {
            height: 48px;
            top: 32px;
            left: 0px;
        }

        &.boules-finish {
            height: 48px;
            top: 120px;
            right: 128px;

            @media only screen and (min-width: 441px) {
                right: 200px;
            }

            @media only screen and (min-width: 481px) {
                right: 320px;
            }
        }

        &.nicola-head {
            transform: scaleX(-1);
            height: 80px;
            z-index: 2;
            right: 18px;
            bottom: 70px;

            @media only screen and (min-width: 481px) {
                bottom: 96px;
            }
        }

        &.severin-head {
            height: 72px;
            z-index: 1;
            right: 72px;
            bottom: 70px;

            @media only screen and (min-width: 481px) {
                bottom: 96px;
            }
        }

        &.tandem {
            height: 80px;
            right: 0px;
            bottom: 0px;

            @media only screen and (min-width: 481px) {
                bottom: 24px;
            }
        }
    }

    .capitano {
        transform: rotate(8deg);
        position: absolute;
        color: white;
        top: 48px;
        left: 120px;
    }
}

/* --- map ------------------------------------------------------------ */
div[id^="map"] {
    min-height: 320px;
    height: 90%;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 80px;
}

.popup-content {
    line-height: 1;
    font-size: unset;

    h6 {
        font-size: 1rem;
        font-weight: 600;
    }

    .owner {
        height: fit-content;
        display: flex;
        align-items: center;

        img {
            overflow: hidden;
            border-radius: 50%;
            margin: 0 4px 0 0;
        }
    }
}

/* --- show/hide following sections (tab / accordion) ----------------------- */
@media (width > 1200px) {
    .section-accordion {
        display: none;
    }
}

@media (width <= 1200px) {
    .section-tabs {
        display: none;
    }
}

/* --- accordion ------------------------------------------------------------ */
.section-accordion {
    width: 100%;
    max-width: calc(100vw - 2rem);
    margin: 2rem 0;

    @media (width > 640px) {
        max-width: calc(640px - 2rem);
    }

    details summary::-webkit-details-marker {
        display: none;
    }

    details {
        summary {
            cursor: pointer;
            margin: 1rem 0;
            background-color: inherit;
            color: #a3a3a3;
            font-size: 1.25rem;
            font-weight: 500;
            letter-spacing: -0px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 24px;
            width: 100%;
            height: auto;
            border: none;
            border-bottom: 2px solid #a3a3a3;
            outline: none;
            text-align: left;
            list-style: none;

            &:hover {
                color: var(--white);
                border-bottom: 2px solid var(--white);

                svg {
                    fill: var(--white);
                }
            }

            svg {
                height: 32px;
                width: 32px;
                fill: #a3a3a3;
            }
        }

        .content {
            margin: 1rem 0;
            height: auto;
            width: 100%;
            color: var(--white);
            float: left;

            h3 {
                margin-bottom: 1rem;
            }
        }
    }

    details[open] summary {
        color: var(--white);
        border: none;
        background: linear-gradient(
                to left,
                rgba(28, 36, 92, 1) 0%,
                rgba(124, 27, 112, 1) 12%,
                rgba(225, 29, 25, 1) 25%,
                rgba(244, 149, 0, 1) 40%,
                rgba(255, 209, 12, 1) 50%,
                rgba(244, 149, 0, 1) 60%,
                rgba(225, 29, 25, 1) 75%,
                rgba(124, 27, 112, 1) 88%,
                rgba(28, 36, 92, 1) 100%
            )
            left bottom var(--bg) no-repeat;
        background-size: 100% 5px;

        svg {
            fill: var(--white);
        }
    }
}

/* --- events,sponsors, friends content -------------------------------------------- */
.container-events {
    ul {
        margin: 16px 0 32px 0;

        li {
            margin: 4px 0;
        }
    }

    .canvas-events {
        position: relative;
        width: 100%;
        height: 180px;
        margin: 0 auto 32px;

        @media only screen and (min-width: 481px) {
            height: 240px;
        }

        img {
            height: 100px;
            width: auto;
            position: absolute;

            &.bench {
                width: auto;
                height: 65%;
                left: 8px;
                bottom: 0;

                @media only screen and (min-width: 481px) {
                    left: 68px;
                }
            }

            &.powerade {
                width: auto;
                height: 80px;
                left: 196px;
                bottom: 12px;

                @media only screen and (min-width: 481px) {
                    bottom: 32px;
                    left: 316px;
                }
            }

            &.siberia {
                width: auto;
                height: 16px;
                left: 24px;
                bottom: 48px;

                @media only screen and (min-width: 481px) {
                    left: 84px;
                    bottom: 64px;
                }
            }

            &.dominik-head {
                bottom: 72px;
                left: 24px;

                @media only screen and (min-width: 481px) {
                    bottom: 112px;
                    left: 112px;
                }
            }

            &.fabian-head {
                bottom: 88px;
                left: 96px;

                @media only screen and (min-width: 481px) {
                    bottom: 128px;
                    left: 196px;
                }
            }

            &.alex-head {
                transform: rotate(24deg);
                bottom: 90px;
                left: 208px;

                @media only screen and (min-width: 481px) {
                    bottom: 128px;
                    left: 336px;
                }
            }
        }
    }
}

.container-undrunk {
    display: flex;
    flex-direction: column;
    gap: 16px;

    .canvas-undrunk {
        width: 320px;
        height: 100px;
        position: relative;
        display: flex;
        justify-content: center;
        margin: 0 auto;

        @media only screen and (min-width: 481px) {
            height: 160px;
        }

        img {
            height: 100%;
            width: auto;
            margin: 0 8px;

            @media only screen and (min-width: 481px) {
                margin: 0 16px;
            }
        }

        .number {
            position: absolute;
            right: 48px;
            top: 8px;
            transform: rotate(32deg);

            @media only screen and (min-width: 481px) {
                right: 16px;
            }
        }
    }
}

.container-friends {
    margin: 16px auto;
    display: grid;
    place-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px 0;
}

/* --- tabs ------------------------------------------------------------ */
.section-tabs {
    margin: 2rem 0;
    height: auto;
}

.tab {
    background-color: var(--bg);
    color: #a3a3a3;
    float: left;
    width: 320px;
    margin: 0 4rem 0 0;
}

.tab button {
    background-color: inherit;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    width: 100%;
    height: auto;
    border: none;
    border-bottom: 2px solid #a3a3a3;
    outline: none;
    cursor: pointer;

    &:hover {
        color: var(--white);
        border-bottom: 2px solid var(--white);

        svg {
            fill: var(--white);
        }
    }

    svg {
        height: 32px;
        width: 32px;
        fill: #a3a3a3;
    }
}

.tab button.active {
    color: var(--white);
    border: none;
    background: linear-gradient(
            to left,
            rgba(28, 36, 92, 1) 0%,
            rgba(124, 27, 112, 1) 12%,
            rgba(225, 29, 25, 1) 25%,
            rgba(244, 149, 0, 1) 40%,
            rgba(255, 209, 12, 1) 50%,
            rgba(244, 149, 0, 1) 60%,
            rgba(225, 29, 25, 1) 75%,
            rgba(124, 27, 112, 1) 88%,
            rgba(28, 36, 92, 1) 100%
        )
        left bottom var(--bg) no-repeat;
    background-size: 100% 5px;

    svg {
        fill: var(--white);
    }
}

.tabcontent {
    height: auto;
    width: 640px;
    float: left;
    animation: fade 1s;
    color: var(--white);

    h3 {
        margin-bottom: 1rem;
        color: var(--white);
    }
}

/* --- section award -------------------------------------------------------- */
.award-inner {
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: center;
    margin: 0 0 32px 0;

    @media only screen and (min-width: 481px) {
        flex-direction: row;
        align-items: center;
        gap: 32px;
    }

    .wrapper {
        width: 180px;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;

        .image {
            margin: 1rem auto;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: $white;
            height: 120px;
            width: 120px;
            box-shadow:
                rgba(28, 36, 92, 1) 0px 0px 0px 3px,
                rgba(124, 27, 112, 1) 0px 0px 0px 6px,
                rgba(225, 29, 25, 1) 0px 0px 0px 8px,
                rgba(244, 149, 0, 1) 0px 0px 0px 10px,
                rgba(255, 209, 12, 1) 0px 0px 0px 12px;

            img {
                width: 80px;
                height: 80px;
            }
        }
    }
}

/* --- footer --------------------------------------------------------------- */
footer {
    position: relative;
    margin: 80px auto 0 auto;
    max-width: 1280px;
    color: var(--white);
    z-index: 1;

    .severin-head {
        transform: rotate(-16deg);
        position: absolute;
        height: 80px;
        left: 16px;
        top: -60px;
    }

    .boule {
        position: absolute;
        height: 32px;
        top: -24px;
    }

    .v1 {
        left: 122px;
        transform: rotate(45deg);
    }

    .v2 {
        left: 88px;
    }

    .v3 {
        left: 152px;
        transform: rotate(-72deg);
    }

    .v4 {
        left: 104px;
        top: -46px;
    }

    .v5 {
        top: -48px;
        left: 135px;
        transform: rotate(-12deg);
    }

    .v6 {
        transform: rotate(-45deg);
        top: -64px;
        left: 120px;
    }
}

.footer-inner {
    border-radius: 10px 10px 0 0;
    background-color: var(--bg-h);
    position: relative;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .bar-top {
        position: relative;

        #footer-anchor {
            position: absolute;
            top: 0;
            right: 0;

            &:hover {
                transform: scale(1.1);
                cursor: pointer;

                .arrow {
                    animation: upward 0.8s ease 1;
                }
            }

            .arrow {
                box-sizing: border-box;
                position: relative;
                display: block;
                width: 22px;
                height: 22px;
                border: 2px solid;
                border-radius: 20px;

                &:hover {
                    cursor: pointer;
                }

                &::before {
                    content: "";
                    display: block;
                    box-sizing: border-box;
                    position: absolute;
                    top: 4px;
                    width: 2px;
                    height: 10px;
                    left: 8px;
                    background: var(--white);
                }

                &::after {
                    content: "";
                    display: block;
                    box-sizing: border-box;
                    position: absolute;
                    top: 4px;
                    width: 6px;
                    height: 6px;
                    border-top: 2px solid;
                    border-left: 2px solid;
                    transform: rotate(45deg);
                    left: 6px;
                }
            }
        }
    }

    .logo {
        height: 160px;
        width: 160px;
        position: relative;
        left: 16px;
    }

    .bar-bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        p {
            font-size: 11px;
        }

        .slogan {
            font-size: 16px;
        }
    }

    img {
        height: 100px;
        width: auto;
        position: absolute;

        &.hoti-head {
            height: 48px;
            transform: rotate(48deg);
            right: 8px;
            bottom: 48px;

            @media only screen and (min-width: 481px) {
                right: 68px;
            }
        }

        &.hoti-body {
            height: 48px;
            right: 8px;
            bottom: -4px;

            @media only screen and (min-width: 481px) {
                right: 68px;
            }
        }

        &.cellphone {
            transform: scaleX(-1) rotate(12deg);
            width: 24px;
            height: auto;
            right: -4px;
            bottom: 56px;

            @media only screen and (min-width: 481px) {
                right: 56px;
            }
        }

        &.cigarettes {
            transform: rotate(36deg);
            width: 24px;
            height: auto;
            right: 8px;
            bottom: 24px;

            @media only screen and (min-width: 481px) {
                right: 68px;
            }
        }

        &.marlboro {
            transform: rotate(-12deg);
            width: 24px;
            height: auto;
            right: 40px;
            bottom: 24px;

            @media only screen and (min-width: 481px) {
                right: 100px;
            }
        }
    }
}

/* --- keyframes ------------------------------------------------------------ */
@keyframes upward {
    25% {
        transform: translateY(-4px);
    }
    75% {
        transform: translateY(0px);
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
