:root {
    --bg-main: rgb(6, 6, 6);
    --external-link-img-size: 52px;
}

#wrapper-frontpage {
    background: var(--bg-main);

    margin-top: 100vh;

    line-height: 1.5;
    text-align: center;

    /* padding-left: 24em; */
    padding-left: min(20vw, 24em);

    /* padding-right: 24em; */
    padding-right: min(20vw, 24em);

    padding-bottom: 2em;
}

#main-art-container {
    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    perspective: 1px;
    perspective-origin: 0 0;
}

.main-art {
    width: 100%;
    height: 100vh;
    
    position: absolute;
    left: 0px;
    top: 0px;

    background-size: cover;
    background-position: bottom center;

    transform-origin: 0 0;
}

#bg-parallax-01 {
    background-image: url("/static/www/parallax_night/bg_parallax_01.webp");
    z-index: -1;
}

#bg-parallax-02 {
    background-image: url("/static/www/parallax_night/bg_parallax_02.webp");
    z-index: -2;

    transform: translateZ(-0.4px) scale(1.4);
}

#bg-parallax-03 {
    background-image: url("/static/www/parallax_night/bg_parallax_03.webp");
    z-index: -3;

    transform: translateZ(-1px) scale(2);
}

#bg-parallax-04 {
    background-image: url("/static/www/parallax_night/bg_parallax_04.webp");
    z-index: -4;

    transform: translateZ(-2px) scale(3);
}

#bg-parallax-text {
    font-size: 55px;

    margin-top: 1.5em;
    z-index: -2;

    transform: translateZ(-0.4px) scale(1.4);
}

#bg-parallax-text > h1 {
    margin: 0px;
    line-height: 1.2;
}

#subtitle {
    margin-bottom: 1.5em;

    font-size: 28px;
}

#server-ip {
    background: hsl(214, 92.5%, 21%);
    /* padding: 0.2em 0.6em; */

    border-radius: 16px;
    /* border: 2px solid rgba(255, 255, 255, 0.2); */

    padding-left: 12px;
}

#server-ip > code {
    margin-right: 12px;
}

#server-ip > a {
    color: white;
    background: hsl(214, 92.5%, 42%);

    border-radius: 0px 14px 14px 0px;

    padding: 0px 12px 0px 10px;
}

#server-ip > a:hover {
    background: hsl(214, 100%, 60.2%);
}

#server-ip > .unselectable {
    user-select: none;
}

#navigation-bar {
    display: flex;
    justify-content: center;
    
    width: 100%;
    padding: 8px 0px;
    margin: 0 auto 0 auto;

    font-size: 24px;
    font-family: "Heebo", Arial, Helvetica, sans-serif;
    font-weight: 300;

    user-select: none;
}

#navigation-bar > span > a {
    font-weight: 500;
    margin: 0 12px;
}

#navigation-external-links {
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    width: 128px;

    display: flex;
    justify-content: space-around;
}

#navigation-external-links > a > img {
    width: var(--external-link-img-size);
    height: var(--external-link-img-size);

    transition: 0.15s ease-out;
}

#navigation-external-links > a > img:hover {
    filter: drop-shadow(0px 0px 3px currentcolor);
}

#pictureshowcase {
    position: relative;

    height: 30vw;

    margin-bottom: 0.8em;
}

#pictureshowcase > div {
    position: absolute;

    width: 100%;
    height: 100%;

    transition: opacity 1s ease-in-out;

    box-shadow: inset 0px 0px 20px black, inset 0px 0px 120px black;

    background-image: url("/static/www/showcase/summit_general_01.webp");
    background-size: cover;
    background-position: center;

    border-radius: 32px;
}

#pictureshowcase > div.hidden {
    opacity: 0;
}

#feature-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.feature-entry {
    max-width: 49%;
}

.feature-entry img {
    max-width: 100%;
    border-radius: 6px;
}

.feature-entry h2 {
    line-height: 0.3;
}

.feature-entry p {
    max-width: 90%;
    margin: auto auto 1.5em auto;
}



/* Mobile changes */
@media (max-width: 1024px) {
    /* Feature entries are 1 per row */
    .feature-entry {
        max-width: 100%;
    }

    /* Smaller subtitle */
    #subtitle {
        font-size: 21px;
    }

    /* Wrapper padding adjustments */
    #wrapper-frontpage {
        padding-left: 32px;
        padding-right: 32px;
    }

    /* Hides "connect" button as it does nothing on mobile */
    #server-ip > a {
        display: none;
    }

    #server-ip {
        font-size: 18px;
    }
}
