@font-face {
    font-family: 'SupercellFont';
    src: url(../fonts/supercell-regular.woff2) format("woff2");
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SupercellFont';
    src: url(../fonts/supercell-bold.woff2) format("woff2");
    font-display: swap;
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'GameFont';
    src: url(../fonts/game-regular.woff2) format("woff2");
    font-display: swap;
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GameFont';
    src: url(../fonts/game-bold.woff2) format("woff2");
    font-display: swap;
    font-weight: 700;
    font-style: normal;
}

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

body, html {
    max-width: 100vw;
    height: 100%;
    overflow-x: hidden;
    background: #f2f2f2;
    color: #010101;
}

main {
    font-family: 'GameFont', Arial, sans-serif;
    font-size: 18px;
    color: #fff;
    background-image: url(../images/background.jpg);
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    position: relative;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.language-dropdown-wrapper {
    font-family: 'SupercellFont', Arial, sans-serif;
    position: absolute;
    top: 5px;
    right: 20px;
    z-index: 100000;
    display: flex;
    justify-content: center;
}

.language-dropdown {
    color: #fff !important;
    outline: none;
    width: fit-content;
    padding: 11px 25px 11px 33px;
    border: 0;
    background: none;
    appearance: none;
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 25px;
    background-image: url(../images/language-globe-white.svg), url(../images/language-caret-white.svg) !important;
    background-size: 18px, 12px;
    background-repeat: no-repeat, no-repeat;
    background-position: 10px center, right 11px center;
    cursor: pointer;
    text-shadow: none !important;
}

.contents {
    width: 100%;
    height: 100%;
    min-height: 80vh;
    position: relative;
    padding-top: 50px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
}

.contents a {
    display: block;
}

.contents img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

@media(min-width: 576px) {
    .contents {
        width: 350px;
    }
}

.logo {
    max-height: 115px;
    object-fit: contain;
    padding: 0 10px;
}

@media(min-width: 300px) {
    .logo {
        padding: 0;
    }
}

main p {
    text-align: center;
}

.nested-content {
    margin-left: 20px;
    margin-right: 20px;
}

@media(min-width: 576px) {
    .nested-content {
        margin-left: 5px;
        margin-right: 5px;
    }
}

.nested-content .download-links-wrapper > *,
.nested-content .qr-button-wrapper > *,
.nested-content > * {
    margin-top: 20px;
}

.nested-content .download-links-wrapper {
    margin-top: 0;
}

.lead-wrapper p {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.qr-button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

button.button {
    all: unset;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 22px;
    position: relative;
    font-weight: 700;
    border: none;
    border-radius: 0 !important;
    height: 74px;
    text-shadow: 0 -2px #000, 0 0 #000, 0 2px #000, 0 4px #000,
                 -1px -1px #000, 1px -1px #000, 1px 0 #000, -1px 0 #000,
                 1px 1px #000, -1px 1px #000, 1px 2px #000, -1px 2px #000;
    background: url(../images/center.png);
    background-repeat: repeat-x;
    background-size: 100% 100%;
    background-color: transparent;
    cursor: pointer;
    min-width: 250px;
    transition: transform 0.1s linear;
}

button.button:hover {
    transform: scale(1.02);
}

button.button:active {
    transform: scale(0.95);
}

button.button:before {
    left: -12px;
    background-image: url(../images/left.png);
}

button.button:after,
button.button:before {
    position: absolute;
    top: 0;
    height: 74px;
    width: 12px;
    background-size: 100% 100%;
    content: "";
}

button.button:after {
    right: -12px;
    background-image: url(../images/right.png);
}

button.button span {
    line-height: 25px;
    padding-left: 10px;
    padding-right: 10px;
    display: block;
    transform: translateY(-2px);
}

main .contents > a {
    margin-top: 16px;
}

.clicked-label {
    color: #fff;
    font-size: 1.5rem;
    margin-top: 30px !important;
    text-align: center;
}

.download-links-wrapper {
    margin-top: 50px;
}

.download-links-heading {
    display: inline-block;
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
    font-weight: 700;
}

.download-links {
    flex-flow: column wrap;
    gap: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-links a {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.download-links a:hover {
    transform: scale(1.05);
}

@media(min-width: 576px) {
    .download-links {
        flex-direction: row;
    }

    .download-links a {
        width: calc(52% - 1rem);
    }

    .download-links[data-links-amount="1"] a {
        width: 80%;
    }
}

.deco-section {
    margin-top: auto !important;
    padding-top: 40px !important;
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.deco-section img {
    transform: translateY(5px);
    max-width: 100%;
    object-fit: contain;
    max-height: 209px;
    height: auto;
}

img, svg {
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

@media (max-width: 576px) {
    .nested-content {
        margin: 10px;
    }
    
    .lead-wrapper p {
        font-size: 1.2rem;
    }
    
    button.button {
        font-size: 18px;
        min-width: 200px;
    }
}