@font-face {
    font-family: "ZernoBold";
    src: url("/assets/fonts/ZernoBold.ttf");
}

@font-face {
    font-family: "ZernoSemiBold";
    src: url("/assets/fonts/ZernoSemiBold.ttf");
}

@font-face {
    font-family: "AbsoluteEmpire";
    src: url("/assets/fonts/AbsoluteEmpire.otf");
}

@font-face {
    font-family: "Caslon";
    src: url("/assets/fonts/ACaslonPro-Regular.ttf");
}

html {
    min-height: 100%;
    font-size: 10px;
}

body {
    background-color: #FFFFFF;
    margin: 0;
    font-family: var(--text-body);
    color: var(--dark-text);
}

.header {
    background-image: url("/assets/header_background.webp");
    background-position: center bottom;
    background-repeat: repeat-x;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    height: 140px;
    width: 100%;
    z-index: 20;
}

.header-logo-link {
    display: flex;
    justify-content: center;
}

.logo {
    width: 90%;
    max-width: 300px;
    padding-bottom: 30px;
}

.logo-signin {
    width: 100%;
    height: 160px;
    background-image: url("/assets/logos/battlemarked_signin.webp");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 800px;
}

.main-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.content-container {
    flex: auto;
    background-image: url("/assets/main_bg.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    margin-top: -25px;
}

.content-container-signin {
    background-image: linear-gradient(0deg, rgba(38, 1, 20, 1) 0%, rgba(0, 0, 0, 0) 100%), url("/assets/signin_bg.webp");
    background-size: 100% 30%, cover;
    background-position: center bottom, center top;
    margin-top: 0;
}

.footer {
    background-color: #191C1C;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    width: 100%;
    background-size: cover;
    color: var(--light-text);
    font-size: 1.2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1296px;
}

@media only screen and (max-width: 1300px) {
    .footer-content {
        max-width: 600px;
        justify-content: center;
    }
}

.footer-text {
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
}

@media only screen and (max-width: 1300px) {
    .footer-text {
        padding: 0 20px;
    }
}


.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-sizing: border-box;
    max-width: 600px;
}

.footer-image {
    height: 50px;
    padding: 15px;
}

.footer-link {
    color: var(--light-text);
    padding-bottom: 5px;
}

.footer-link:visited {
    color: var(--light-text);
}

.login {
    position: absolute;
    top: 20px;
    right: 20px;
    text-decoration: none;
    z-index: 30;
}

.login.a {
    text-decoration: none;
}

@media only screen and (max-width: 600px) {
    .login {
        top: calc(var(--header-to-content) + 135px);
    }
}

.content {
    position: relative;
    margin: auto;
    margin-top: var(--header-to-content);
    margin-bottom: 80px;
    border: var(--content-border) solid transparent;
    border-image: url("/assets/content_bg.webp") 50 round;
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.1));
}

@media only screen and (max-width: 600px) {
    .content {
        max-width: unset;
        border-left: unset;
        border-right: unset;
    }
}

@media only screen and (max-width: 1300px) {
    .content {
        max-width: 600px;
    }
}

@media only screen and (min-width: 1301px) {
    .content {
        max-width: 1200px;
    }
}

.content-signin {
    border-image: url("/assets/signup/content_bg.webp") 50 round;
    margin-top: -10px;
}

.content-row {
    min-height: 600px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #EAE3DD;
}

.content-col {
    height: 100%;
    max-width: 600px;
    width: 100%;
}

.centered-horizontally {
    display: flex;
    justify-content: center;
}

.centered-vertically {
    display: flex;
    align-items: center;
}

.stacked {
    flex-direction: column;
}

.button-container {
    background-image: url("/assets/buttons/btn-middle.avif");
    background-size: auto 50px;
    background-repeat: repeat-x;
    font-size: 1.6rem;
    font-family: var(--text-body);
    color: #fcfcfc;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.button-part {
    height: 50px;
    margin: 0px;
}

.button-left {
    margin-left: -5px;
}

.button-text {
    display: flex;
    align-items: center;
    margin-left: 7px;
    margin-right: 7px;
    box-sizing: border-box;
}

.button-right {
    margin-right: -5px;
}

.button-wide {
    width: 100%;
}

.login-content {
    display: flex;
    justify-content: space-between;
}

@media only screen and (max-width: 1300px) {
    .login-content {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.login-container {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    padding: 20px;
    padding-right: 40px;
    box-sizing: border-box;
}

@media only screen and (max-width: 1300px) {
    .login-container {
        padding-left: var(--content-padding);
        padding-right: var(--content-padding);
    }
}

.signup-box {
    width: 100%;
    max-width: 580px;
    box-sizing: border-box;
}

@media only screen and (max-width: 1300px) {
    .signup-box {
        max-width: 600px;
        margin-right: 0;
    }
}

.signup-box-text {
    width: 100%;
    text-align: center;
    font-size: 1.4rem;
}

.login-header {
    font-size: 4rem;
    font-family: var(--text-body-bold);
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 20px;
}

@media only screen and (max-width: 1300px) {
    .login-header {
        margin-left: unset;
        padding-left: var(--content-padding);
        padding-right: var(--content-padding);
    }
}

@media only screen and (max-width: 700px) {
    .login-header {
        font-size: 2.5rem;
    }
}

.login-breadtext {
    font-size: 1.4rem;
    line-height: var(--breadtext-line-height);
    margin-top: -22px;
    margin-left: auto;
    margin-right: auto;
}

.login-dice {
    margin-top: 40px;
    max-width: 100%;
}

.signup-container {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.signup-form-header {
    width: 100%;
    font-family: var(--text-body-bold);
    font-size: 2.2rem;
    padding-bottom: 20px;
}

.signup-form {
    display: grid;
    grid-template-columns: [labels] auto [controls] 1fr;
    grid-auto-flow: row;
    grid-gap: .8em;
    padding-left: 0;
    padding-bottom: 20px;
}

.signup-form>label {
    grid-column: labels;
    grid-row: auto;
    padding: 0.3em;
    font-size: 1.4rem;
    display: grid;
    align-items: center;
}

.signup-form>input {
    grid-column: controls;
    grid-row: auto;
    border-radius: 8px;
    border-width: 0;
    height: 24px;
    font-family: var(--text-body);
    padding: 4px 8px;
}

.signup-form>button {
    display: block;
}

.signup-privacy-policy {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.signup-policy-link {
    color: var(--dark-text);
}

.signup-policy-link:visited {
    color: var(--dark-text);
}

.signup-small-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.signup-small-divider-text {
    margin-left: 5px;
    margin-right: 5px;
}

.signup-small-divider-right {
    transform: rotate(180deg);
}

.login-divider {
    width: 100%;
    padding: 40px 20px;
    box-sizing: border-box;
}

.login-button {
    all: unset;
    width: 100%;
}

.about-header {
    font-size: 3.4rem;
    font-family: var(--text-body-bold);
    margin-bottom: 40px;
}

@media only screen and (max-width: 700px) {
    .about-header {
        font-size: 2.6rem;
    }
}

.about-content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
}

.about-text {
    max-width: 600px;
    padding-left: var(--content-padding);
    padding-right: 40px;
    box-sizing: border-box;
}

@media only screen and (max-width: 1300px) {
    .about-text {
        padding-right: var(--content-padding);
    }
}

.about-subheader {
    font-size: 2rem;
    font-family: var(--text-body-bold);
    margin-top: 40px;
    margin-bottom: 10px;
}

.about-breadtext {
    font-size: 1.4rem;
    font-family: var(--text-body);
    line-height: var(--breadtext-line-height);
}

.about-image {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    padding-left: 20px;
}

@media only screen and (max-width: 1300px) {
    .about-image {
        margin-left: unset;
        padding-left: var(--content-padding);
        padding-right: var(--content-padding);
    }
}

.portrait-container {
    display: flex;
    flex-wrap: wrap;
}

.portrait-image {
    width: 100px;
    margin-right: 20px;
}

.portrait-name {
    font-size: 4rem;
    font-family: var(--text-body-bold);
}

.link-container {
    display: flex;
    justify-content: space-between;
    margin-right: 90px;
    margin-top: 30px;
}

@media only screen and (max-width: 1300px) {
    .link-container {
        margin-right: unset;
        padding-left: var(--content-padding);
        padding-right: var(--content-padding);
    }
}

.link-header {
    position: absolute;
    top: -25px;
    left: -25px;
    font-family: var(--text-header);
    font-size: 1.4rem;
}

@media only screen and (max-width: 600px) {
    .link-header {
        left: 10px;
    }
}

.link-breadtext {
    margin-top: 20px;
    font-size: 2rem;
}

.link-divider {
    width: 100%;
    margin-top: 80px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.link-connect-text {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.link-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

@media only screen and (max-width: 700px) {
    .link-buttons-container {
        max-width: unset;
        flex-direction: column;
        align-items: center;
    }
}

.link-button {
    width: 170px;
    padding: 10px 0;
}

@media only screen and (max-width: 1300px) {
    .link-button {
        width: 100%;
    }
}

.link-steam-form {
    width: unset;
}

@media only screen and (max-width: 1300px) {
    .link-steam-form {
        width: 100%;
    }
}


.link-steam-button {
    all: unset;
}

.link-button-unconnected {
    padding-top: 10px;
    padding-bottom: 23px;
    width: 170px;
}

@media only screen and (max-width: 1300px) {
    .link-button-unconnected {
        width: 100%;
    }
}

.link-button-image {
    max-height: 30px;
}

.dark-box {
    border: 25px solid transparent;
    border-image: url("/assets/rewards/bg.png") 25 round;
    filter: drop-shadow(0px 0px 10px rgba(204, 191, 181, 1));
    background-color: var(--dark-box-bg);
    background-clip: padding-box;
}

@media only screen and (max-width: 400px) {
    .dark-box {
        border-left: unset;
        border-right: unset;
    }
}

.rewards-container {
    position: relative;
    height: 100%;
}

.rewards-header {
    font-size: 2.2rem;
    font-family: var(--text-header);
    padding: 20px;
    padding-bottom: 0px;
}

.rewards-list {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rewards-list-item {
    aspect-ratio: 625 / 172;
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    position: relative;
}

.rewards-list-placeholder {
    aspect-ratio: 625 / 172;
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    background-color: var(--dark-box-placeholder-bg);
    border-radius: 8px;
}

.rewards-background {
    width: 100%;
}

.rewards-item {
    position: absolute;
    top: 50%;
    left: 18%;
    transform: translate(-50%, -50%);
    height: 93%;
}

.rewards-item-text {
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translateY(-50%);
    height: 75%;
    width: 60%;
    color: var(--light-text);
    line-height: 140%;
    font-size: 1.3rem;
    font-family: var(--text-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.connected-label {
    font-size: 1rem;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 5px solid #FFF;
    border-bottom-color: #82131B;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.spinner-small {
    width: 30px;
    height: 30px;
}

.spinner-success {
    width: 42px;
    height: 42px;
    border: 5px solid darkgreen;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.spinner-text {
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.spinner-error-text {
    width: 100%;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.clickable {
    cursor: pointer;
}