.main_rules{
    width: 100%;
    background: #212020;
    padding: 10px;
    border-radius: 10px;
    transition: .5s;
}

.main_rules:hover{
    transform: translate(0px,-4px);
    background: #161616;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.block_rules{
    display: grid;
    margin-left: 40px;
}

.block_rules p{
    color: #fff;
    opacity: 0.6;
    text-indent: 30px;
    text-align: justify;
    margin: 10px;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.rules_id{
    background-image: url(../image/icon/rules.png);
    background-position: center;
    background-size: cover;
    width: 90px;
    height: 90px;
    position: absolute;
    margin-left: -77px;
    margin-top: -31px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 600;
    transform: rotate(45deg);
}

.rules_id .bt{
    transform: rotate(-45deg);
    font-size: 20px;
    margin-left: 4px;
    margin-top: -5px;
    color: #fff;
    text-shadow: 1px 1px 3px #ff002d;
    opacity: 1 !important;
}

.mt-40{
    margin-top: 40px;
}

.block_rules b{
    color: #fff;
    margin-left: 20px;
    opacity: 1 !important;
}

.block_rules span{
    color: #fff;
    opacity: 0.6;
    text-align: justify;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.block_rules .kr{
    opacity: 1;
}


.news_open .gl{
    color: #fff;
    opacity: 0.8;
    text-align: justify;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-indent: 30px;
    margin-bottom: 50px;
}


#tabs{
    width: 100%;
    display: grid;
}

#tabs ul{
    display: flex;
    gap: 3em;
    justify-content: center;
    list-style-type: none;
    margin: 5px;
}

#tabs ul li{
    width: 100px;
    display: grid;
    justify-content: center;
    text-align: center;
    padding: 5px;
    text-decoration: none;
    color: #fff;
}

#tabs ul li a{
    color: #fff;
    text-decoration: none;
    transition: .5s;
    border-radius: 12px;
    width: 136px !important;
    padding: 10px;
}

#tabs ul li a:hover{
    transform: translate(0px,-5px);
    color: #b9b9b9;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

#tabs ul li a:hover #tabs ul li a span:hover{
    transform: scale(1.05);
}

#tabs ul li a span{
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 8px;
    overflow: hidden;
}

#tabs ul li a span em{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
}

.permat{
    font-size: 18px !important;
    color:#ff6565 !important;
}

.ban_permat{
    color: #ffe1e1 !important;
    opacity: 1 !important;
    font-weight: 600 !important;
}

@media(max-width: 900px) {
    #tabs ul {
        display: grid;
        display: grid;
        grid-template-columns: repeat(auto-fill, 116px);
        gap: 2em;
    }
}