:root {
    --color-es-primary: rgb(170, 21, 27);
    --color-es-secondary: rgb(241, 191, 0);
    --color-es-bg: rgb(232, 245, 253);

    --color-pt-primary: rgb(218, 41, 28);
    --color-pt-secondary: rgb(4, 106, 56);
    --color-pt-bg: rgb(221, 201, 138);
}

@keyframes current-photo-marker {
    from {
        width: 10px;
    }

    to {
        width: 30px;
    }
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: black;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    height: 100vh;
}

a {
    text-decoration: none;
}

section.photos {

    ul {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        list-style: none;
        scroll-marker-group: after;

        li {
            flex: 0 0 100%;
            /* Each item takes 80% width */
            display: flex;
            align-items: center;
            justify-content: center;
            scroll-snap-align: center;
            counter-increment: number;

            img {
                height: 200px;
            }
        }

        li::scroll-marker {
            content: "";
            width: 10px;
            height: 10px;
            border-radius: 10px;
            background-color: white;
        }

        li::scroll-marker:target-current {
            content: "";
            width: 30px;
            animation-name: current-photo-marker;
            animation-duration: 0.5s;
            animation-timing-function: ease-in-out;
        }

    }

    ul::scroll-marker-group {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;


    }

}

body>main {
    display: flex;
    flex: 2;
    flex-direction: column;
    background-color: black;

    article {

        display: flex;
        flex: 1;
        flex-direction: column;
        flex-wrap: wrap;
        background-color: var(--camp-bg-color);
        color: var(--camp-color);
        font-size: 16px;
        padding: 2em 1em;


        h1 {
            font-family: Futura, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            color: var(--camp-h1-color);
            font-weight: 900;
            font-size: 36px;
            letter-spacing: -2px;
            text-transform: uppercase;
            padding: 0 1ex;
            mask: linear-gradient(black 30%, transparent);

            span {
                color: var(--camp-h1-accent);
            }
        }

        h2 {
            margin: 1ex 1ex;
        }

        h3 {
            margin: 1em 0 0.5ex 0;
            font-size: 18px;
            color: var(--camp-h1-color);
        }

        h3.accent {
            color: var(--camp-h1-accent);
        }

        ul {
            list-style-type: circle;
            list-style-position: inside;
        }

        section {
            display: flex;
            flex-direction: column;
            flex-wrap: wrap;

            p {
                padding: 0 0.5ex;
            }
        }
    }

    article#camp-lisbon {
        --camp-bg-color: var(--color-pt-bg);
        --camp-color: var(--color-pt-primary);
        --camp-h1-color: var(--color-pt-primary);
        --camp-h1-accent: var(--color-pt-secondary);
    }

    article#camp-barcelona {
        --camp-bg-color: var(--color-es-bg);
        --camp-color: var(--color-es-primary);
        --camp-h1-color: var(--color-es-primary);
        --camp-h1-accent: var(--color-es-secondary);
        ;
    }

    article#philosophy {
        --camp-bg-color: rgb(57, 77, 66);
        --camp-color: rgb(207, 206, 220);
        --camp-h1-color: rgb(182, 119, 64);
        --camp-h1-accent: rgb(181, 172, 42);
    }

    article#people {
        --camp-bg-color: rgb(40, 47, 68);
        --camp-color: rgb(149, 146, 180);
        --camp-h1-color: rgb(156, 182, 64);
        --camp-h1-accent: rgb(107, 181, 42);
    }

    article.photo {
        min-height: 300px;
        background-repeat: no-repeat;
        background-size: cover;
    }

    article#photo-algarve {

        color: rgba(255, 255, 255, 0.3);
        background-image: url("images/portugal2.jpg");
        background-position: 0 center;
        padding: 0;

        section {
            align-self: flex-end;
            margin-top: auto;
        }
    }

    article#photo-barcelona {

        color: rgba(0, 0, 0, 0.5);
        background-image: url("images/barcelona2.jpg");
        background-position: 0 0;

        padding: 0;

        section {
            mask: linear-gradient(white 90%, transparent);
            align-self: flex-end;
            margin-bottom: auto;
        }
    }
}

body>header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0;
    min-height: 300px;
    /*background: #2A7B9B;
    background: linear-gradient(0deg, rgb(30, 29, 53) 10%, rgb(46, 127, 188) 40%);*/
    background-image: url("images/lisbon2.jpg");
    background-repeat: no-repeat;
    background-position: 0;
    background-size: cover;

    border-bottom: 1px solid rgb(128, 32, 64);

    section {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 1em 0;

        font-size: 14px;
        text-decoration: none;
        font-family: Futura, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        font-weight: 200;

        nav {

            width: 100vw;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            padding: 3px 1em;

            img {
                align-self: center;
                height: 16px;
                margin: 0 1ex;
            }

            a {
                padding: 1ex 0ex;
                color: rgba(255, 255, 255, 1);
                margin: 0 2ex;
                border-bottom: 2px solid rgba(255, 255, 255, 0.0);
            }

            a#btn-contact {
                margin-left: auto;
                border: 1px solid rgba(255, 255, 255, 0.2);
                border-radius: 6px;
                padding: 1ex;
            }

            a#btn-contact:hover {
                border: 1px solid rgba(255, 255, 255, 0.7);
            }

            a:hover {
                color: rgba(255, 255, 255, 1);
                /*background-color: rgba(1, 1, 1, 0.1);
                border-radius: 1ex;*/
                border-bottom: 1px solid rgba(255, 255, 255, 0.7);

                cursor: pointer;
            }
        }

        h1 {
            font-family: Futura, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            color: rgba(176, 206, 255, 0.6);
            font-weight: 900;
            font-size: 24px;
            letter-spacing: -2px;
            text-rendering: optimizelegibility;
            text-transform: uppercase;
            -webkit-font-smoothing: antialiased;
            padding: 0 1ex;
            margin-right: 1em;
            mask: linear-gradient(black 50%, transparent);
            text-shadow: 0px 0px 1px white;

            span {
                color: rgba(255, 219, 57, 0.9);
                ;
            }
        }
    }

    aside {
        padding: 0.5ex 1em;
        align-self: flex-end;
        background-color: rgba(128, 32, 64, 1.0);

        /*backdrop-filter: blur(2px) brightness(1.1);*/
        color: white;
        font-size: 14px;
        font-weight: 100;
        border-radius: 20px 0px 0px 0px;

        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

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

        a:hover {
            text-decoration: underline;
            cursor: pointer;
        }
    }

}

footer {
    display: flex;
    flex: 0;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 12px;
    justify-content: space-between;
    padding: 1em;
    color: rgba(255, 255, 255, 0.7);

    font-weight: 200;
    background-color: rgb(22, 26, 48);
    border-top: 4px rgba(0, 0, 0, 1)
}