main{
    background: url(../images/bg.png) bottom / 100% auto no-repeat, linear-gradient(180deg, #0c5675 0%, #216d8b 38%, #3d8eae 72%, #67c2dd 100%);
}

a {
    display: contents;
}


/* hsinchu */

body[page="rules"][eid="hsinchu"]{
    background-color: #024F73;
}
body[page="rules"][eid="hsinchu"] h2.classic{
    color: #024F73;
}
body[page="rules"][eid="hsinchu"] main{
    background-color: #024F73;
    background-image: url(../images/bg-hsinchu.jpg);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
}


/* kaohsiung */

body[page="rules"][eid="kaohsiung"] .eventTable{
    color: #196d7c;
}
body[page="rules"][eid="kaohsiung"] h2.classic{
    color: #196d7c;
}
body[page="rules"][eid="kaohsiung"] .eventTable th, body[page="rules"][eid="kaohsiung"] .eventTable td{
    border-color:#196d7c;
}
body[page="rules"][eid="kaohsiung"] .eventTable td {
    background: #bae0da;
}
body[page="rules"][eid="kaohsiung"] main{
    background-color: #196d7c;
    background-image: url(../images/bg-kaohsiung.jpg);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
}
body[page="rules"][eid="kaohsiung"] .eventTable th, body[page="rules"][eid="kaohsiung"] .eventTable th {
    background: #7dc8b5;
}





/* body[page="rules"][eid="taichung"]{
    background-color: #a22c5f;
}
body[page="rules"][eid="taichung"] h2.classic{
    color: #a22c5f;
}
body[page="rules"][eid="taichung"] main{
    background-color: #a22c5f;
    background-image: url(../images/bg-taichung.jpg);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
} */




/* taichung */
body[page="rules"][eid="taichung"]{
    background-color: #a22c5f;
}
body[page="rules"][eid="taichung"] h2.classic{
    color: #a22c5f;
}
body[page="rules"][eid="taichung"] main{
    background-color: #a22c5f;
    background-image: url(../images/bg-taichung.jpg);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
}
body[page="rules"][eid="taichung"] .eventTable{
    color: #a22c5f;
}
body[page="rules"][eid="taichung"] h2.classic{
    color: #a22c5f;
}
body[page="rules"][eid="taichung"] .eventTable th, body[page="rules"][eid="taichung"] .eventTable td{
    border-color:#a22c5f;
}
body[page="rules"][eid="taichung"] .eventTable td {
    background: #fce2ec;
}

body[page="rules"][eid="taichung"] .eventTable th, body[page="rules"][eid="taichung"] .eventTable th {
    background: #e6a9c0;
}
body[page="rules"][eid="taichung"] .btn_primary{
    color: #a22c5f;
}



/* newtaipei */
body[page="rules"][eid="newtaipei"]{
    background-color: #58207d;
}
body[page="rules"][eid="newtaipei"] h2.classic{
    color: #58207d;
}

body[page="rules"][eid="newtaipei"] .eventTable{
    color: #58207d;
}
body[page="rules"][eid="newtaipei"] h2.classic{
    color: #58207d;
}
body[page="rules"][eid="newtaipei"] .eventTable th, body[page="rules"][eid="newtaipei"] .eventTable td{
    border-color:#58207d;
}
body[page="rules"][eid="newtaipei"] .eventTable td {
    background: #e6d6e9;
}

body[page="rules"][eid="newtaipei"] .eventTable th, body[page="rules"][eid="newtaipei"] .eventTable th {
    background: #bda4cd;
}
body[page="rules"][eid="newtaipei"] .btn_primary{
    color: #58207d;
}
body[page="rules"][eid="newtaipei"]{
    background-color: #58207d;
}
body[page="rules"][eid="newtaipei"] h2.classic{
    color: #58207d;
}
body[page="rules"][eid="newtaipei"] main{
    background-color: #58207d;
    background-image: url(../images/bg-newtaipei.jpg);
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
}



.quick_go{
    text-align: center;    
    padding-bottom: 35px;
    
}
.quick_go .btn_primary.quick{
    margin: 2px;
    font-size: 15px;
    padding: 15px;
    padding-top: 11px;
    padding-bottom: 11px;
}


h2.classic.w20{
    margin-bottom: 15px;
}
.icon-title{
    position: relative;
}
.icon-title::before{
    content: '';
    width: 70px;
    height: 70px;
    position: absolute;
    left: -73px;   /* ← 重點 */
    top: 56px;     /* ← 用 top 不用 margin-top */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.icon-title::after{
    content: '';
    width: 70px;
    height: 70px;
    position: absolute;
    right: -73px;  /* ← 重點 */
    top: 56px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.icon-title.icon-pets::before{
    background-image: url(../images/rules/icon-pets.svg);
}
.icon-title.icon-pets::after{
    background-image: url(../images/rules/icon-pets.svg);
}

.icon-title.icon-blind::before{
    background-image: url(../images/rules/icon-blind.svg);
}
.icon-title.icon-blind::after{
    background-image: url(../images/rules/icon-blind.svg);
}

.icon-title.icon-elder::before{
    background-image: url(../images/rules/icon-elder.svg);
}
.icon-title.icon-elder::after{
    background-image: url(../images/rules/icon-elder.svg);
}




.content{
    padding-left: 30px;
    padding-right: 30px;
    text-align: center;
}


.content ul, .content ol{
    text-align: left;
    color: #FFF;
    font-size: 18px;
    line-height: 1.8;
}

/* 第二層 ol */
.content ol ol {
    list-style: none;
    counter-reset: subitem;
    padding-left: 0em;
}

.content ol ol li {
    counter-increment: subitem;
    position: relative;
    padding-left: 2em;
}

/* (1)(2)(3) 樣式 */
.content ol ol li::before {
    content: "(" counter(subitem) ")";
    position: absolute;
    left: 0;
}

.content img{
    max-width: 90%;
    margin: auto;
}
.content h3{
    font-size: 25px;
    color: #FFF;
}
.content h3{
    font-size: 25px;
    color: #FFF;
}
.content h3.gold{
    color:#fff100;
}

.content h4{
    font-size: 18px;
    color: #fff;
    text-align: left;
    margin-block-end: 0;
}

/* table */

.eventTable{
    width: 90%;
    max-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 40px;
    background: #1f5b86;
    font-weight: 700;
    color: #1f4f78;
    margin: auto;
    font-size: 18px;
}

.eventTable th,
.eventTable td{
    border: 2px solid #1f5b86;
    padding: 10px 14px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.25;
}

.eventTable th{
    width: 22%;
    background: #7fb3cb;
    
    white-space: nowrap;
}

.eventTable td{
    background: #dbe6ec;
    
}
.eventTable td.white{
    background: #ffffff !important;
        width: 40%;
}
.eventTable .small{
    font-size: 0.95em;
}
.eventTable .timebig{
    font-size: 1.6em;
    line-height: 1;
    letter-spacing: 1px;
}

.eventTable tr:first-child th{
    border-top-left-radius: 40px;
}

.eventTable tr:first-child td{
    border-top-right-radius: 40px;
}

.eventTable tr:last-child th{
    border-bottom-left-radius: 40px;
}

.eventTable tr:last-child td{
    border-bottom-right-radius: 40px;
}



.eventTable3 {
    width: 100%;
    max-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 20px;
    background: #2c6c88;
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 15px;
}

/* cell */
.eventTable3 td {
    border: 2px solid #2c6c88;
    padding: 10px 14px;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
}

/* 左右欄（藍） */
.eventTable3 td:nth-child(1),
.eventTable3 td:nth-child(3) {
    background: #7faec0;
    color: #1b3f57;
    width: 33%;
}

/* 中間欄（白） */
.eventTable3 td:nth-child(2) {
    background: #e6edf1;
    color: #1b3f57;
    width: 34%;
}

/* 圓角 */
.eventTable3 tr:first-child td:first-child {
    border-top-left-radius: 20px;
}
.eventTable3 tr:first-child td:last-child {
    border-top-right-radius: 20px;
}
.eventTable3 tr:last-child td:first-child {
    border-bottom-left-radius: 20px;
}
.eventTable3 tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}


.gift_center{
    width: 300px;
}


.gift_list{
    text-align: center;
    padding-top: 50px;
    padding-left: 30px;
    padding-right: 30px;
    margin-bottom: 17px;
}

.gift_list .each{
    display: inline-block;
    width: 19%;
    vertical-align: top;
        position: relative;
}
.gift_list .each .photo{
    background-color: #FFF;
    width: 90%;
    padding-bottom: 90%;
    border-radius: 100%;
    display: inline-block;
}
.gift_list .each .text{
    font-size: 16px;
    height: 120px;
}
.gift_list .each img{
    position: absolute;
    width: 86%;
    left: 8%;
    top: 0%;
}





.content .care{
    width: 450px;
    margin-bottom: 30px;
    margin-top: 30px;
}


.content .text{
    color: #FFF;
    font-size: 18px;
    line-height: 1.8;
}
.content .text.left{
    text-align: left;
}

.content .midtext{
    color: #FFF;
    font-size: 20px;
    letter-spacing: 1px;
}
.content .midtext .smm{
    font-size: 16px;

}
@media (max-width: 900px){

    .content .midtext .smm{
        font-size: 12px;
    }

    .content .midtext {
        letter-spacing: 1px;
        font-size: 12px;
    }
    .content .text {
        font-size: 16px;
    }
    .eventTable{
        font-size: 14px;
    }
    .eventTable th{
        width: 26%;
        padding: 10px 12px;
    }

    .content h3 {
        font-size: 20px;
        color: #FFF;
    }

    .content ul, .content ol {
        font-size: 16px;
    }

    .eventTable td{
        padding: 10px 12px;
    }

   


    .eventTable{
        border-radius: 20px;
    }
        .eventTable tr:first-child th{
        border-top-left-radius: 20px;
    }

    .eventTable tr:first-child td{
        border-top-right-radius: 20px;
    }

    .eventTable tr:last-child th{
        border-bottom-left-radius: 20px;
    }

    .eventTable tr:last-child td{
        border-bottom-right-radius: 20px;
    }
    .gift_list {
        padding-top: 20px;
        padding-left: 0px;
        padding-right: 0px;
        margin-bottom: 17px;
    }
    .gift_list .each {
        display: inline-block;
        width: 49%;
        vertical-align: top;
        position: relative;
        padding-bottom: 30px;
    }
    

    .eventTable3 {
        font-size: 14px;
    }
    .quick_go .btn_primary.quick {
        margin: 1px;
        font-size: 15px;
        padding: 8px;
        padding-top: 10px;
        padding-bottom: 12px;
        margin-bottom: 10px;
        font-size: 13px;
    }

    
}


