:root {
    --header-bg-color: #9d4545;
    --header-text-color: white;

    --main-color: #75459d;

    --footer-bg-color: #29292c;
    --footer-text-color: #888;
    --footer-text-hover-color: #37c3e3;
}
@font-face {
    font-family: 'Modak';
    src: url("/static/font/modak.woff2");
}

body{
    background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);
}

header {
    color: white;
    background-color: var(--main-color) !important;
}

header .container {
    color: white;
}

header .logo {
    font-size: 1.3rem;
    color: #f5a0a0;
    font-family: 'Roboto Slab', serif;
}

.navbar .menu-btn {
    border: 1px solid #badce3;
    border-radius: 10px;
}

.navbar .offcanvas {
    max-width: 300px !important;
}

/* 搜索框 */
.input-container {
    position: relative;
}

.input-container .icon {
    position: absolute;
    right: 10px;
    top: calc(50% + 5px);
    transform: translateY(calc(-50% - 5px));
    cursor: pointer;
}

.input-container .input {
    width: 100%;
    height: 40px;
    padding: 10px;
    transition: .2s linear;
    border: 2.5px solid black;
    font-size: 14px;
    letter-spacing: 2px;
}

.input:focus {
    outline: none;
    border: 0.5px solid black;
    box-shadow: -5px -5px 0px black;
}

.input-container:hover > .icon {
    animation: anim 1s linear infinite;
}

@keyframes anim {
    0%,
    100% {
        transform: translateY(calc(-50% - 5px)) scale(1);
    }

    50% {
        transform: translateY(calc(-50% - 5px)) scale(1.1);
    }
}

/* 分类列表 */
.offcanvas-body .li-title {
    color: #333;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 2rem;
}

#categoryList .nav-item a {
    color: #d20a0a;
}

#categoryList .nav-item {
    display: inline-block;
    color: white;
    width: 100%;
    text-align: center;
    border-left: solid 2px var(--main-color);
    border-right: solid 2px var(--main-color);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    text-decoration: none;
    z-index: 1;
    font-family: inherit;
}

#categoryList .nav-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    color: white;
    background-color: var(--main-color);
    transform: translateX(-100%);
    transition: all .3s;
    z-index: -1;
}

#categoryList .nav-item:hover::before {
    transform: translateX(0);
}


/* 底部样式 */
footer {
    font-size: 1rem;
    margin-top: 3rem;
    padding: 2rem 0 1rem;
    color: var(--footer-text-color);
    background-color: var(--footer-bg-color);
}

footer .about {
    color: white;
}

footer .copyright {
    font-size: .8rem;
}

footer .copyright .logo {
    font-size: 3rem;
    color: white;
    margin: 2rem 0;
}

/* 卡片也样式 */
.game-wall .wall-title {
    display: inline-block;
    margin-left: 1rem;
    padding-left: 0.5rem;
    padding-right: 3rem;
    font-size: 2rem;
    border-bottom: 2px solid blanchedalmond;
    font-family: 'Modak';
    color: var(--main-color);
    line-height: 80%;
    /*box-shadow: 1px 2px 5px var(--main-color) ;*/
}

.waller{
    display: grid;
    /*grid-template-columns:repeat(auto-fill, 100px);*/
    grid-template-columns:repeat(6, 1fr);
    /* 尽量将行填充完整 */
    grid-auto-flow: row dense;
    grid-gap: 10px;
    /* 元素整体居中对齐 */
    justify-content: center;
    /* 单元格元素拉屎填充 */
    align-items: stretch;
    border-radius: 5px;
    padding: 1rem;
}

.mini-card{
    width: 100%;
    height: 100%;
    display: inline-block;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 15px;
    background-color: #fff;
    cursor: pointer;
    overflow: hidden;
}
.mini-card a{
    width: 100%;
    height: 100%;
    border-radius: 15px;
}
.mini-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}
.mini-card img:hover{
    transform: scale(1.2);
}
.mini-card .game-name{
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    line-height: 1.5rem;
    color: white;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    background-color: #c089ed;
}


/* 以下为样式部分  */
.web-logo {
    position: relative;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 48px;
    width: 10rem;
    cursor: pointer;
    font-weight: bold;
    height: 55px;
    -webkit-box-reflect: bottom 1px linear-gradient(transparent, #0004);
}

.web-logo span {
    position: absolute;
    display: flex;
    justify-content: center;
    top: 4px;
    right: 4px;
    bottom: 4px;
    left: 4px;
    text-align: center;
    color: rgba(255, 255, 255, 0.781);
    transition: 0.5s;
    z-index: 1;
}

.web-logo:hover span {
    color: rgba(255, 255, 255, 1);
}

.web-logo::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: 400%;
    opacity: 0;
    transition: 0.5s;
    background: linear-gradient(
            45deg,
            #91155d,
            #525296,
            #0f0,
            #ff0,
            #fb0094,
            #00f,
            #0f0,
            #ff0
    );
    animation: animate123 20% linear infinte;
}

.web-logo::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: 400%;
    filter: blur(20px);
    transition: 0.5s;
    background: linear-gradient(
            45deg,
            #91155d,
            #525296,
            #0f0,
            #ff0,
            #fb0094,
            #00f,
            #0f0,
            #ff0
    );
    animation: animate123 20% linear infinte;
}

.web-logo:hover::before,
.web-logo:hover::after {
    opacity: 1;
}

@keyframes animate123 {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 300% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.web-logo span::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.1);
}


.logo-word {
    display: inline-block;
    margin-right: -10px;
    line-height: 70%;
    font-size: 32px;
    font-family: Modak;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0px 0px 0px #d2d2d22e;
}
.logo-word-1 {
    background-image: linear-gradient(to right, #ff8177 0%, #ff867a 0%, #ff8c7f 21%, #f99185 52%, #cf556c 78%, #b12a5b 100%);
}
.logo-word-2 {
    background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
}
.logo-word-3 {
    background-image: linear-gradient(to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}
.logo-word-4 {
    background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);
}
.logo-word-5 {
    background-image: linear-gradient(to top, #fdcbf1 0%, #fdcbf1 1%, #e6dee9 100%);
}
.logo-word-6 {
    background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}
.logo-word-7 {
    background-image: linear-gradient(120deg, #a6c0fe 0%, #f68084 100%);
}