@font-face {
    font-family: "ABCCompressed";
    src: url("../__/fonts/ABCGravityCompressed.woff2") format("woff2");
}

@font-face {
    font-family: "ABCItalic";
    src: url("../__/fonts/ABCGravityItalic.woff2") format("woff2");
}

h1.wallpapername {
    font-family: "ABCCompressed", sans-serif;
    text-transform: uppercase;
}

h1.wallpapername span {
    font-family: "ABCItalic", sans-serif;
}

.wallpaperDescription {
    margin-top: 25rem;
    max-width: 60%;
}



/* ФОНЫ ДЛЯ СТРАНИЦЫ ОБОИНЫ */
.colorNeon {
    --background-color: #9CFF1F;
}

.colorPurple {
    --background-color: #8A15FF;
}



/* КНОПКИ */
.buttons {
    display: flex;
    gap: var(--margin-grid-half);
}

.buttons.fixed {
    position: fixed;
    z-index: 100;
    top: var(--margin-grid-half);
    right: var(--margin-grid);
    flex-direction: column;
    align-items: flex-end;
    transition: 0.15s;
    margin-top: 0;
}

.buttons img {
    height: 85rem;
    width: initial;
}

.buttons .googlePlay {
    position: relative;
}

.buttons .googlePlay>img:nth-child(1),
.buttons .googlePlay>img:nth-child(2) {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: 200ms;
}

.buttons .googlePlay:hover>img:nth-child(1),
.buttons .googlePlay:hover>img:nth-child(2) {
    opacity: 1;
    transition: 0s;
}

.darkmode .buttons .googlePlay>img:nth-child(2),
.darkmode .buttons .googlePlay>img:nth-child(3) {
    filter: invert(1);
}

.buttonSecondary {
    display: flex;
    justify-content: center;
    padding: 25rem;
    background-color: black;
    margin-top: 20rem;
    user-select: none;
}

.darkmode .buttonSecondary {
    background-color: white;
}

.buttonSecondary p {
    color: white;
}

.darkmode .buttonSecondary p {
    color: black;
}



.buttonSecondary:hover {
    cursor: pointer;
    background-color: var(--hover-color);
}

.buttons googlePlay:active,
.buttonSecondary:active {
    opacity: .8;
}



@media screen and (max-width: 800px) {
    .buttons.fixed {
        left: var(--margin-grid);
        bottom: var(--margin-grid);
        right: unset;
        top: unset;
    }

    .buttons .qr {
        display: none;
    }

}



/* СТИЛИ СТРАНИЦ */
.mainCover {
    --text-color: white;
    position: relative;
    background: none !important;
    min-height: 82vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wallpaperCover {
    grid-template-columns: 1fr 2.4fr;
    padding: var(--margin-grid);
    padding-top: 56rem;
}

@media screen and (max-width: 800px) {
    .wallpaperCover {
        grid-template-columns: 1fr;
    }

    .wallpaperCover .text {
        max-width: initial;
    }

    .wallpaperCover .image img {
        object-fit: cover;
    }

    .wallpaperCover .image img:nth-child(3) {
        height: 100%;
    }
}

@media screen and (max-width: 500px) {
    .wallpaperCover .image {
        max-height: 80vh !important;
    }
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.ornamentalFooter a {
    display: block;
    text-decoration: none;
    margin-top: var(--margin-grid);
}

.category::before {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    /* Rectangle 5833 */

    position: absolute;

    left: 0px;
    bottom: 0px;
    background: linear-gradient(179.18deg, rgba(0, 0, 0, 0) 0.43%, rgba(0, 0, 0, 0) 38.3%, rgba(0, 0, 0, 0.1) 70.53%, rgba(0, 0, 0, 0.2) 85.88%, rgba(0, 0, 0, 0.26) 95.09%, rgba(0, 0, 0, 0.35) 102.76%);
}

.category h2 {
    position: absolute;
    bottom: 25rem;
    left: var(--margin-grid);
    --text-color: white;
}

.factoid {
    position: relative;
    height: 100%;
}


/* Убираем подчёркивание у ссылок в шапках */
.cover a {
    text-decoration: none;
}

@media screen and (max-width: 800px) {
    .ornamentalFooter {
        gap: var(--margin-text);
    }

    .ornamentalFooter a {
        margin-top: calc(var(--margin-grid) *1.5);
    }

    footer {
        padding-bottom: calc(var(--margin-text) + 90rem);
    }

    .category h2 {
        bottom: 15rem;
    }
}