/**
 * q=index
 */
.index-header {
    display: grid;
    grid-template-columns: 1.0fr 1.0fr 1.0fr;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.navigation-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}

@media (max-width: 1160px) {
    .index-header {
        display: flex;
        flex-direction: column;
    }

    .navigation-bar {
        margin-top: 2rem;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
}

.logo-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 70%;
    height: auto;
    display: block;
}

.navigation-bar a {
    font-style: normal;
    font-size: 1.25rem;
    text-align: center;
    color: #F8F8F8;
    text-transform: uppercase;
}

.navigation-bar a:hover {
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}


.index-content {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
}

.index-bottom-content {
    text-align: center;
}

/**
 * Play button:
 */
.play-button-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    justify-items: center;
    justify-self: center;
    margin-bottom: 2rem;
}

.play-button, .sign-in-button {
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    background-image: url(../images/index/play-button-background.webp);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 240px;
    height: auto;
    font-size: 1.25rem;
    padding: 0.5rem 4rem;
    text-transform: uppercase;
    color: #F8F8F8;
}

.play-button:hover {
    background-image: url(../images/index/play-button-background-hover.webp);
}

.sign-in-button {
    background-image: url(../images/index/sign-in-button-background.webp);
}

.sign-in-button:hover {
    background-image: url(../images/index/sign-in-button-background-hover.webp);
}

.index-online-container {
    text-transform: uppercase;
}

.index-online-container > div:last-child {
    color: #DCC3A9;
    font-size: 1.5rem;
}

.index-credentials-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.index-sign-in-button {
    width: 150px;
    justify-self: center;
}

.index-sign-in-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}


/* News */

.news-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.news-item > .time {
    color: #F8F8F8;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.news-item > .time img {
    height: 1.5rem;
    width: auto;
}

.news-item > .body {
    margin-bottom: 20px;
}


/** Wiki */
.help-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 1160px) {
    .help-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}

.help-container div div:nth-child(1) {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.help-container div div:nth-child(2) {
    color: #7e7d7d;
    overflow-wrap: anywhere;
}

.wiki-search-controls-container {
    margin-bottom: 1rem;
}


/* Sign up */
.sign-up-background-stage-1, .sign-up-background-stage-2 {
    position: absolute;
    background-image: url(../images/sign_up/landscape/action-1-background.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    background-color: #000000;

    mask-image: linear-gradient(to bottom, transparent 0px, black 0px, black calc(100% - 24px), transparent 100%);
    mask-composite: intersect;
}
.sign-up-background-stage-2 {
    background-image: url(../images/sign_up/landscape/action-2-background.webp);
}

.sign-up-vignette-bottom-right-anchor {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 305px;
    background-image: url(../images/sign_up/landscape/vignette-bottom-right.webp);
    background-size: cover;
}


.sign-up-character {
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: url(../images/sign_up/landscape/character.webp);
    background-size: contain;
    background-position-x: -90px;
    background-position-y: 140px;
    background-repeat: no-repeat;
    width: 256px;
    height: 520px;
}

.sign-up-prologue {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    justify-self: end;

    color: #F8F8F8;
    font-size: 1rem;
    max-width: clamp(250px, 95vw, 430px);
    height: 100%;
    bottom: 1rem;
}

.sign-up-prologue .paragraph {
    margin-top: 1rem;
}

.index-sign-up-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    justify-items: center;
    align-items: center;
    color: #9f9f9f;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.index-sign-up-eula-block {
    max-width: 300px;
}

/* portrait orientation (mobile) */
@media (max-height: 460px) {
    .sign-up-background-stage-1, .sign-up-background-stage-2 {
        mask-image: linear-gradient(to bottom, transparent 0px, black 0px, black calc(100% - 4px), transparent 100%);
    }
    .sign-up-character {
        background-position-x: -90px;
        background-position-y: 280px;
    }
    .sign-up-vignette-bottom-right-anchor {
        height: 280px;
    }
    .sign-up-prologue {
        max-width: clamp(250px, 95vw, 400px);
        bottom: 0.5rem;
    }
}