@font-face {
    font-family: 'Proxima Nova';
    font-display: swap;
    src: url('res/proxima/ProximaNova-Bold.woff2') format('woff2'), url('res/proxima/ProximaNova-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Proxima Nova';
    font-display: swap;
    src: url('res/proxima/ProximaNova-Regular.woff2') format('woff2'), url('res/proxima/ProximaNova-Regular.ttf') format('truetype');
    font-weight: normal;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Roboto', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    background: linear-gradient(270deg, #730E0E 0%, #000000 100%);
    font-size: 3vmin;
}

h1, h2, h3, .card .list summary {
    font-family: 'Proxima Nova', 'Roboto', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    margin: 0;
}

.first-screen {
    height: 100vh;
    position: relative;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 5vmax;
}

.hero-image {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('res/portrait/cropped/portrait-1080.webp');
    background-size: auto 95vh;
    background-position: bottom right -10px;
    background-repeat: no-repeat;
}

.no-webp .hero-image {
    background-image: url('res/portrait/cropped/portrait-1080.png');
}

@media (orientation: portrait) {
    .hero-image {
        background-size: auto 90vh;
        background-image: url('res/portrait/portrait-1080.webp');
    }
    .no-webp .hero-image {
        background-image: url('res/portrait/portrait-1080.png');
    }   
}

/* #region Adaptive pics */
/* 720px */

@media (max-height: 720px) {
    .hero-image {
        background-image: url('res/portrait/cropped/portrait-720.webp');
    }
    .no-webp .hero-image {
        background-image: url('res/portrait/cropped/portrait-720.png');
    }
    @media (orientation: portrait) {
        .hero-image {
            background-image: url('res/portrait/portrait-720.webp');
        }
        .no-webp .hero-image {
            background-image: url('res/portrait/portrait-720.png');
        }
    }
}

/* 480px */

@media (max-height: 480px) {
    .hero-image {
        background-image: url('res/portrait/cropped/portrait-480.webp');
    }
    .no-webp .hero-image {
        background-image: url('res/portrait/cropped/portrait-480.png');
    }
    @media (orientation: portrait) {
        .hero-image {
            background-image: url('res/portrait/portrait-480.webp');
        }
        .no-webp .hero-image {
            background-image: url('res/portrait/portrait-480.png');
        }
    }
}

/* 360px */

@media (max-height: 360px) {
    .hero-image {
        background-image: url('res/portrait/cropped/portrait-360.webp');
    }
    .no-webp .hero-image {
        background-image: url('res/portrait/cropped/portrait-360.png');
    }
    @media (orientation: portrait) {
        .hero-image {
            background-image: url('res/portrait/portrait-360.webp');
        }
        .no-webp .hero-image {
            background-image: url('res/portrait/portrait-360.png');
        }
    }
}

/* 240px */

@media (max-height: 240px) {
    .hero-image {
        background-image: url('res/portrait/cropped/portrait-240.webp');
    }
    .no-webp .hero-image {
        background-image: url('res/portrait/cropped/portrait-240.png');
    }
    @media (orientation: portrait) {
        .hero-image {
            background-image: url('res/portrait/portrait-240.webp');
        }
        .no-webp .hero-image {
            background-image: url('res/portrait/portrait-240.png');
        }
    }
}

/* #endregion  */

.first-screen h1 {
    font-size: 10vw;
    line-height: .8;
    position: relative;
    cursor: pointer;
}

.first-screen h1 .subtitle {
    font-size: .3em;
    line-height: .9;
    opacity: .7;
}

.down-button {
    position: absolute;
    right: -1em;
    top: .07em;
}

.down-button img {
    height: .66em;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .5);
}

.card {
    background: white;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (prefers-color-scheme: dark) {
    .card {
        background: #141414;
        color: #ffffff;
    }
}

.card>.title {
    max-width: 66vw;
    width: 100%;
    padding-left: .6em;
    padding-right: .6em;
    padding-top: .6em;
}

.card .list {
    max-width: 66vw;
    display: flex;
    flex-wrap: wrap;
}

.card .list a {
    width: calc(50% - 1.401em);
    display: block;
    padding: .7em .6em;
    background: #eee;
    background: var(--card-color);
    border-radius: .5em;
    margin: .7em;
    text-decoration: none;
    color: inherit;
}

.card .list summary {
    font-size: .7em;
    margin-top: 1em;
}

@media (orientation: portrait) {
    .first-screen {
        justify-content: center;
    }
    .down-button {
        right: -0.8em;
        bottom: -1em;
        top: auto;
    }
    .down-button img {
        height: 1em;
    }
    .first-screen h1 {
        line-height: 0.9;
        font-size: 15vw;
    }
    .first-screen h1>.subtitle {
        font-size: .5em;
        margin-right: auto;
    }
    .first-screen h1 span.newline {
        display: block;
    }
    .card {
        display: block;
        padding: 0;
        height: auto;
        font-size: 7vmin;
    }
    .card>.title {
        max-width: 100%;
    }
    .card>.list {
        width: 100%;
        max-width: initial;
        padding-bottom: .6em;
    }
    .card>.list>a {
        width: 100%;
        max-width: initial;
        display: flex;
        margin: 2vmin 2vmin 0 2vmin;
    }
}