section.opening-times {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;

    div.day {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 175px;

        p.name {
            font-size: 1.8rem;
            font-family: 'Bike Park', serif;
            color: var(--hiGreen);
        }

        p.times {
            font-size: 1rem;
        }

        &.card {
            --cardPadding: 11px;
        }
    }
}

section.countdown {
    text-align: center;

    p.intro {
        font-family: 'Bike Park', serif;
        font-size: 2rem;
    }

    div.card {
        margin: 22px auto;
        width: fit-content;

        div.counter {
            font-size: 1.4rem;
        }    
    }

    p.lede {
        font-size: 1.2rem;
    }
}

section.location {
    display: flex;
    justify-content: center;
    gap: 44px;

    div.map {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;

        iframe {
            box-shadow: 0 0 10px black;
            max-width: 100%;
        }

        div.actions {
            display: flex;
            gap: 22px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;

            a.button {
                width: fit-content;

                &.w3w {
                    --buttonColour: #e11f26;
                }
            }
        }
    }

    div.content {
        display: flex;
        flex-direction: column;
        gap: 44px;
        align-items: center;

        div.modes {
            display: flex;
            flex-direction: column;
            gap: 11px;

            div.card {
                display: flex;
                align-items: center;
                gap: 22px;
            
                div.icon {
                    aspect-ratio: 1/1;
                    width: 50px;
                    height: 50px;
                    flex-shrink: 0;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: contain;
                        transition: transform 0.2s ease-in-out;
                    }
                }

                div.info {
                    p.name {
                        font-weight: bold;
                        font-family: 'Bike Park', serif;
                        color: var(--hiGreen);
                        font-size: 1.2rem;
                    }

                    p.description {
                        margin-top: 0;
                    }
                }

                &:hover {
                    div.icon > img {
                        transform: scale(1.05) rotate(3deg);
                    }
                }
            }

            div.or {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 22px;
                padding: 11px;

                &::before, &::after {
                    border-top: solid 1px var(--hiGreen);
                    content: ' ';
                    width: 20%;
                }
            }
        }
    }

    @media (max-width: 750px) {
        flex-direction: column-reverse;
        
        div.content {
            flex-direction: column-reverse;
        }
    }
}

section.menu {
    h2 {
        text-align: center;
        font-size: 2rem;
    }

    div.sections {
        display: flex;
        gap: 22px;
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 22px;

        div.column {
            display: flex;
            flex-direction: column;
            gap: 22px;

            max-width: 380px;
            min-width: 300px;
            width: 100%;

            article {
                h3 {
                    font-family: 'Cabin Sketch', sans-serif;
                    font-weight: bold;
                    font-size: 1.4rem;
                    text-align: center;
                }

                ul {
                    list-style: none;
                    padding-left: 0;

                    li {
                        font-size: 1rem;
                        display: flex;
                        justify-content: space-between;
                        gap: 11px;
                        padding-top: 11px;
                        padding-bottom: 11px;

                        &:not(:last-of-type) {
                            border-bottom: solid 1px var(--hiGreen);
                        }
                    }
                }
            }
        }
    }
}

section.instagram {
    h2 {
        text-align: center;
        font-size: 2rem;
    }

    > p {
        text-align: center;
    }

    div.posts {
        --imgWidth: 200px;
        
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        max-width: calc((var(--imgWidth) + 22px) * 5);
        margin: 0 auto;
        gap: 22px;
        margin-top: 22px;

        div.post {
            flex-shrink: 0;
            box-shadow: 0 0 10px black;

            img {
                aspect-ratio: 4/5;
                object-fit: cover;
                width: var(--imgWidth);
                transition: transform 0.2s ease-in-out;

                &:hover {
                    transform: scale(1.05);
                }
            }
        }

        @media (max-width: 750px) {
            --imgWidth: 175px;
        }

        @media (max-width: 420px) {
            --imgWidth: 125px;
        }
    }
}

section.about {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 22px;

    img {
        max-width: 450px;
        aspect-ratio: 1/1;
        width: 100%;
        flex-shrink: 0;
        object-fit: cover;
        box-shadow: 0 0 10px black;

        transition: transform 0.2s ease-in-out;

        &:hover {
            transform: scale(1.05);
        }
    }

    div.content {
        max-width: 600px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 22px;

        h2 {
            font-size: 2rem;
        }

        div.body {
            flex-grow: 1;

            p:not(:first-of-type) {
                margin-top: 22px;
            }
        }

        div.links {
            display: flex;
            gap: 22px;
            justify-content: center;
            flex-wrap: wrap;

            a.ia {
                --buttonColour: #f37739;
            }
        }
    }

    @media (max-width: 850px) {
        img {
            max-width: 350px;
        }
    }

    @media (max-width: 700px) {
        img {
            max-width: 300px;
        }
    }

    @media (max-width: 600px) {
        flex-direction: column-reverse;
        align-items: center;
    }
}