﻿.t-content {
    position: relative;
}

.index-top {
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    min-height: 266px;
    z-index: 1;
}

#announcement {
    position: relative;
    min-height: 266px;
    margin: 5px 0;
}

.ann-container {
    position: absolute;
    bottom: -20px;
    left: calc(50% - 400px);
    color: #000;
}

.announcement-border {
    border-top-width: 2px;
    border-top-style: solid;
    width: 70px;
    margin-top: 15px;
    margin-bottom: 25px;
}

#announcementLabel {
    font-size: 24px;
}

#announcementContent {
    overflow: hidden;
    width: 400px;
    height: 80px;
}

#announcementContent p {
    height: 100%;
    display: inline-block;
    animation: marquee 10s linear infinite;
}

.index-game-list {
    position: absolute;
    bottom: -80px;
    left: calc(50% + 150px);
    width: 350px;
    height: 350px;
    -moz-box-shadow: -8px 12px 10px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: -8px 12px 10px rgba(0, 0, 0, 0.15);
    box-shadow: -8px 12px 10px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.index-game-list .index-game-item {
    width: 50%;
    height: 50%;
    display: inline-block;
    position: relative;
    /*margin: -2px;*/
}

.index-game-list .index-game-item img {
    width: 100%;
}

.index-game-list .index-game-item img:first-child {
    position: absolute;
    width: 100%;
    transition: all .3s;
}

.index-game-list .index-game-item:hover img:first-child {
    opacity: 0;
}

.index-list {
    padding-top: 60px;
    padding-bottom: 30px;
}

.index-list .index-item img {
    transition: all .5s;
}

.index-list .index-item:hover img {
    -moz-transform: rotate3d(0, 1, 0, -360deg);
    -ms-transform: rotate3d(0, 1, 0, -360deg);
    -o-transform: rotate3d(0, 1, 0, -360deg);
    -webkit-transform: rotate3d(0, 1, 0, -360deg);
    transform: rotate3d(0, 1, 0, -360deg);
}

@keyframes marquee {
    0% {
        -moz-transform: translateY(100%);
        -ms-transform: translateY(100%);
        -o-transform: translateY(100%);
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }

    100% {
        -moz-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        -o-transform: translateY(-100%);
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
}

#content {
    padding-top: 100px;
}

@media (max-width: 1500px) {
    .index-game-list {
        bottom: -60px;
        left: calc(50% + 150px);
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 1199px) {
    .index-top {
        top: -160px
    }

    .ann-container {
        bottom: -10px;
    }

    #announcementContent {
        height: 70px;
    }

    .index-game-list {
        left: calc(50% + 150px);
        width: 260px;
        height: 260px;
    }

    #content {
        padding-top: 130px;
    }

    .index-game-list {
        bottom: -50px;
    }
}

@media (max-width: 991px) {
    .index-top {
        top: -110px;
        min-height: 200px;
    }

    #announcement {
        min-height: 200px;
    }

    .ann-container {
        left: calc(50% - 350px);
        bottom: 0px;
    }

    .index-game-list {
        left: calc(50% + 100px);
    }

    #announcementLabel {
        font-size: 20px;
    }

    .announcement-border {
        margin-top: 5px;
        margin-bottom: 15px;
    }

    #announcementContent {
        width: 300px;
        height: 60px;
    }

    .index-game-list {
        width: 240px;
        height: 240px;
        bottom: -30px;
    }

    #content {
        padding-top: 80px;
    }
}

@media (max-width: 767px) {
    .index-top {
        background: transparent !important;
        position: relative;
        top: 0;
        left: 0;
        min-height: initial;
    }

    #announcement {
        min-height: initial;
        margin: 0;
        padding: 0 15px;
        position: relative;
        overflow: hidden;
    }

    .ann-container {
        position: relative;
        top: 0;
        left: 0;
    }

    .ann-container2 {
        display: flex;
    }

    #announcementLabel {
        text-align: center;
        white-space: nowrap;
        position: relative;
        padding-right: 10px;
        font-size: 16px;
    }

    .announcement-border {
        display: none;
    }

    #announcementContent {
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        height: auto;
        width: 100%;
    }

    #announcementContent p {
        display: inline-block;
        padding-left: 100%;
        line-height: 1.7;
        animation: marqueeToLeft 30s linear infinite;
    }

    @keyframes marqueeToLeft {
        0% {
            transform: translate(0, 0);
        }

        100% {
            transform: translate(-100%, 0);
        }
    }

    .index-game-list {
        position: initial;
        width: auto;
        height: auto;
        display: flex;
        box-shadow: none;
        background: rgba(0, 0, 0, .5);
        margin: auto;
    }

    #content {
        padding: 0;
    }

    .index-list {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}


@media (max-width: 575px) {
    #announcementLabel {
        font-size: 15px;
    }
}