
/* step1 --------------------------------- */
section .boxbg .step_tt{
    font-size: 24px;
    color: #bc3931;
    text-align: center;
    font-weight: bold;
    margin: 20px 5px;
    line-height: 38px;
}
section .boxbg .step_tt span{
  background: #bc3931;
  color: #f9f6de;
  font-weight: 500;
  padding:0 18px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  border-radius: 20px;
  margin-right: 10px;
}
.seletboxflex{
    overflow: hidden;
    padding:0 40px 30px;
}

.seletboxflex .food{
    float: left;
    width: 62%;
    text-align: center;
    border-right:2px dashed #753939;
}
.seletboxflex .foodbox {
    width: 265px;
    float: left;
    margin: 15px;
}
.seletboxflex .foodbox .groupBtn{
    width: 256px;
    height: 210px;
    position: relative;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    overflow: hidden;   
    transition: all 0.4s;
}
.seletboxflex .foodbox:nth-child(1) .groupBtn{
    border: 3px solid #cfd852;
}
.seletboxflex .foodbox:nth-child(2) .groupBtn{
    border: 3px solid #75c6f5;
}
.seletboxflex .foodbox:nth-child(3) .groupBtn{
    border: 3px solid #f2a848;
}
.seletboxflex .foodbox:nth-child(4) .groupBtn{
    border: 3px solid #ff7491;
}
.seletboxflex .foodbox:hover .groupBtn{
    border: 3px solid #bc3931;
}
.seletboxflex .foodbox .groupBtn label{
    color: #753939;
    display: block;
    width: 100%;
    font-size: 17px;
    height: 40px;
    margin: 0;
    padding: 0;
    text-align: right;
    line-height: 40px;
    padding-right: 10px;
    position: relative;
    font-weight: 600;
}

.seletboxflex .foodbox .groupBtn label::before{
    content: '';
    display: block;
    width: 23px;
    height: 23px;
    background: url(../images/radio.png);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    transition: all 0.4s;
}
.seletboxflex .foodbox:hover .groupBtn label::before{
    background: url(../images/radio_a.png);
}
.seletboxflex .foodbox .groupBtn [type="radio"] {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 1;
    opacity: 0;
    cursor: pointer;
}
.seletboxflex .foodbox .groupBtn img{
    width: 100%;
    height: auto;
}
.seletboxflex .foodbox a{
    display: block;
    width: 150px;
    height: 32px;
    background: #3786fa;
    color: #ffffff;
    line-height: 32px;
    font-size: 16px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    margin: 15px auto 0;
    -webkit-box-shadow: 0 4px 0 #92beff;
    -moz-box-shadow: 0 4px 0 #92beff;
    box-shadow: 0 4px 0 #92beff;
}

.seletboxflex .resultBoX{
    float: left;
    padding-left: 30px;
    width: 38%;
}
.seletboxflex .resultBoX h6{
    width: 100%;
    display: block;
    background: #ffac9e;
    height: 26px;
    line-height: 26px;
    font-size: 16px;
    color: #753939;
    padding-left: 15px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.seletboxflex .resultBoX .foodbar{
    padding-top: 15px;
}
.seletboxflex .resultBoX .foodbar p,.seletboxflex .resultBoX .foodbar .barbox .bartxt{
    color: #753939;
    font-size: 14px;
    font-weight: 500;
}
.seletboxflex .resultBoX .foodbar .barbox{
    display: flex;
}
.seletboxflex .resultBoX .foodbar .barbox .barbg{
    width: 85%;
    height: 20px;
    background: #ffffff;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.seletboxflex .resultBoX .foodbar .barbox .barbg .bar{
    height: 20px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.foodcolor_1{
    background: #cfd852;
}
.foodcolor_2{
    background: #75c6f5;
}
.foodcolor_3{
    background: #f2a848;
}
.foodcolor_4{
    background: #ff7491;
}
.seletboxflex .resultBoX .foodbar .barbox .bartxt{
    width: 15%;
    text-align: right;
}

/* step2 --------------------------------- */

.namebox{
    text-align: center;
    color: #753939;
}
.namebox div{
    margin: 10px;
}
.namebox div h5{
    font-size: 18px;
    font-weight: 500;
    display: inline-block;
}
.namebox div input,.event2_step1 .foodbox input{
    margin: 0 10px;
    display: inline-block;
    padding: 5px 15px;
}
.namebox div.nameq2 input{
    width: 360px;
}
.namebox div p{
    font-size: 13px;
    font-weight: 500;  
    display: inline-block;
}
/* step3 --------------------------------- */
.event1_result .resultv{
    display: flex;
    align-items: center;
    justify-content: flex-start;    
    width: 900px;
    margin: 50px auto;
}
.event1_result .resultv .left{
    flex: 0 0 430px;
    -webkit-border-radius:10px;
	-moz-border-radius:10px;
    border-radius:10px;
    overflow: hidden;
    height: 288px;
    position: relative;
    border: 5px solid #ffe3de;
}
.event1_result .resultv .left .imgbox img{
    width: 100%;
}
.event1_result .resultv .left .imgbox p{
    position: absolute;
    right: 0;
    bottom:-10px;
    color: #753939;
    display: block;
    padding:0 10px;
    height:35px;
    line-height:35px;
    text-align: center;
    font-weight: 500;
    -webkit-border-top-left-radius: 15px;
    -moz-border-radius-topleft: 15px;
    border-top-left-radius: 15px;
}
.event1_result .resultv .right{
    padding-left: 45px;
    width: 100%;
}
.event1_result .resultv .right .ttbox{
    border-bottom: 2px solid #e27c6a;
    overflow: hidden;
    margin-bottom: 20px;
}
.event1_result .resultv .right .ttbox h3{
    margin: 0;
    display: block;
    float: left;
    line-height: 50px;
    font-size: 24px;
    color: #753939;
    display: flex;
    justify-content: center;
    align-items: center;
}
.event1_result .resultv .right .ttbox h3::before{
    content: '';
    display: inline-block;
    width: 31px;
    height: 28px;
    background: url(../images/event_step_tt.png);
    margin-right: 10px;
}
.event1_result .resultv .right .ttbox a{
    float: right;
    line-height: 30px;
    color: #3b5998;
    border: 1px solid #3b5998;
    display: flex;
    justify-content: center;
    align-items: center;
    padding:0 10px;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    margin-top: 8px;
}
.event1_result .resultv .right .ttbox a::after{
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url(../images/icon_fb.png) no-repeat;
    background-size: cover;
    margin-left: 5px;
}
.event1_result .resultv .right p{
    color: #753939;
    font-size: 17px;
    border-bottom: 1px dotted #753939;
    line-height: 36px;
    margin-bottom: 0;
    font-weight: 500;
}
.event1_result .resultv .right p span{
    color: #b9362d;
}
.event1_result .btnbox{
    text-align: center;
}
.event1_result .btnbox a,.event2_step1 .btnbox a{
    display:inline-block;
    width:300px;
    background: #3786fa;
    color: #ffffff;
    font-size: 24px;
    line-height: 30px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    -webkit-box-shadow: 0 5px 0 #92beff;
    -moz-box-shadow: 0 5px 0 #92beff;
	box-shadow: 0 5px 0 #92beff;
	border: none;
	text-align: center;
    margin:0 10px 30px;
    padding: 15px 0;
}
.event1_result .btnbox a:last-child,.event2_step1 .btnbox a:last-child{
    background: #bc3931;
    -webkit-box-shadow: 0 4px 0 #ea5d54;
    -moz-box-shadow: 0 4px 0 #ea5d54;
    box-shadow: 0 4px 0 #ea5d54;
}
.event1_result .btnbox a:last-child{
    animation-name:btnain;
    animation-duration:0.4s;
    animation-iteration-count:infinite;
    animation-direction:alternate;
}
/* .event2_step1 .btnbox a:first-child{
    animation-name:btnain2;
    animation-duration:0.4s;
    animation-iteration-count:infinite;
    animation-direction:alternate;
} */

.event2_step1 .btnbox a small{
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 18px;
}
.event2_step1 .e2titlebox{
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event2_step1 .e2titlebox p{
    font-size: 20px;
    color: #bc3931;
    font-weight: bold;
    line-height: 28px;
    margin-top: 30px;
    letter-spacing: 1px;
    padding:0 16px;
}
.event2_step1 .e2titlebox p span{
    font-size: 13px;
    font-weight:500;
}
.event2_step1 .e2titlebox::before{
    content: '';
    display: block;
    width: 63px;
    height: 42px;
    background: url(../images/event2_lefticon.png);
}
.event2_step1 .e2titlebox::after{
    content: '';
    display: block;
    width: 65px;
    height: 42px;
    background: url(../images/event2_righticon.png);
}
.event2_step1 .foodbox{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}
.event2_step1 .foodbox h5{
    font-size: 18px;
    color: #753939;
    line-height: 40px;
}
.event2_step1 .foodbox p{
    font-size: 13px;
    color: #753939;
    line-height: 40px;
    padding-top: 10px;
}
.event2_step1 .foodbox small{
    padding: 0;
    margin: 0;
    margin-left: 5px;
}
#myFile {
    display: none;
}
#myBtn {
    background: #b8342b;
    color: #ffffff;
    padding:5px 15px;
    margin-left: 8px;
    cursor: pointer;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    border-radius: 15px;
}
.grid{
    width: 1000px;
    margin: 0 auto;
}
.grid-item { 
    width: 333px;
    padding: 10px 20px;
}
.grid-item img{
    width: 100%;
    border: 3px solid #bc3931;
    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -moz-border-radius-topright: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.grid-item p{
    display: block;
    background: #bc3931;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    padding: 12px 0;
    line-height: 24px;
    -webkit-border-bottom-right-radius: 10px;
    -webkit-border-bottom-left-radius: 10px;
    -moz-border-radius-bottomright: 10px;
    -moz-border-radius-bottomleft: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    margin-top: -2px;
}
.event2_step1 .btnbox{
    width: 100%;
    text-align: center;
    padding-top: 35px;
}
.con{
    width: 100%; 
    position: relative;
    z-index: 1;
}

.event1_step2{
   display: none;
   top: 0px;
   right: -100%;
   position: absolute;
}
.event_hide{
    animation-name:hide;
    animation-duration:1s;
    animation-fill-mode:forwards;
    position: absolute;
}
.event_open{
    display: block;
    animation-name:open;
    animation-duration:1s;
    animation-delay:0.3s;
    animation-fill-mode:forwards;
    position: relative;
}
.event1_result .btnbox a.end,.event2_step1 .btnbox a.end,.event1_result .btnbox a.end:hover,.event2_step1 .btnbox a.end:hover{
    background: #94999d;
    -webkit-box-shadow: 0 4px 0 #b2b2b2;
    -moz-box-shadow: 0 4px 0 #b2b2b2;
    box-shadow: 0 4px 0 #b2b2b2;
}

@media (max-width: 1110px) {
    .event_open{
        animation-name:open2;
        margin: 0 auto;
    }
    .event_hide{
        animation-name:hide2;
    }
    .seletboxflex .food {
        width: 68%;
    }
    .seletboxflex .resultBoX {
        width: 32%;
    }
    .grid {
        width: 100%;
    }
    .grid-item {
        width: 33.3%;
    }
}
@media (max-width: 1000px) {
    .seletboxflex {
        overflow: hidden;
        padding: 0 20px 10px;
    }
    .seletboxflex .foodbox{
        width: 46%;
        margin:2%;
    }
    .seletboxflex .foodbox .groupBtn{
        width: 100%;
        height: auto;
    }
    .seletboxflex .food {
        width:70%;
        padding-right: 10px;
    }
    .seletboxflex .resultBoX {
        width: 30%;
        padding-left: 10px;
    }
    .seletboxflex .foodbox .groupBtn label{
        font-size: 1.9vw;
    }
    section .boxbg .step_tt {
        font-size:2.7vw
    }
    .grid {
        width:96%;
    }
    .grid-item{
        width: 50%;
    }
    .event1_result .resultv {
        width: 94%;
        margin: 2% auto;
    }
    .event1_result .resultv .left {
        flex: 0 0 45%;
        height: auto;
    }
    .event1_result .resultv .right {
        padding-left:15px;
    }
    .event1_result .resultv .right .ttbox h3 {
        font-size: 3vw;
    }
    .event1_result .resultv .right .ttbox {
        margin-bottom: 10px;
    }
    .event1_result .resultv .right p {
        font-size:2vw;
        line-height: 3.3vw;
    }
}
@media (max-width: 870px) {
    .event2_step1 .foodbox input {
        width: 20%;
    }
}

@media (max-width: 760px) {
    .seletboxflex .food{
        float: none;
        width: 100%;
        padding-right: 0;
    }
    .seletboxflex{
        padding: 5px;
    }
    .seletboxflex .resultBoX {
        float: none;
        width: 90%;
        padding-left: 0;
        margin:0 auto ;
        clear: both;
        padding-top: 10px;
    }
    .seletboxflex .resultBoX h6{
        margin: 0;
    }
    .seletboxflex .resultBoX .foodbar p{
       margin-bottom: 5px;
    }
    .seletboxflex .resultBoX .foodbar {
        padding-top: 10px;
    }
    section .boxbg .step_tt {
        font-size:5vw;
        line-height: 7.5vw;
        margin:15px 5px 5px;
    }
    section .boxbg .step_tt span{
        display: block;
        width: 50%;
        margin: 0 auto;
        margin-bottom: 10px;
    }
    .seletboxflex .foodbox a {
        width: 86%;
        margin: 10px auto ;
    }
    .seletboxflex .foodbox .groupBtn label{
        height: auto;
        text-align: center;
        padding-right: 0;
        line-height: 8.5vw;
        font-size: 3.2vw;
    }
    .seletboxflex .foodbox .groupBtn label::before {
        position: relative;
        top: 0;
        transform: translateY(0);
        left: 0;
        margin:0 auto;
    }
    .namebox div.nameq2 input, .namebox div.nameq1 input{
        width: 80%;
    }
    .namebox div h5 {
        font-size: 5vw;
        display: block;
    }
    .namebox div p {
        font-size: 3vw;
        display: block;
        padding:0 10px;
    }
    .namebox div {
        margin: 0;
    }
    .namebox div h5{
        margin-top: 0;
    }.event2_step1 .foodbox {
        flex-direction: column;
        height:auto;
    }
    .event1_result .resultv{
        flex-direction: column;
    }
    .event2_step1 .btnbox {
        width: 90%;
        margin: 0 auto;
        padding:15px 0;
    }
    .event1_result .btnbox a, .event2_step1 .btnbox a{
        width: 46%;
        height: 11vw;
        font-size: 4vw;
        line-height: 11vw;
        padding: 0;
        margin:0 1%;
    }
    .event1_result .btnbox a, .event2_step1 .btnbox a {
        height: auto;
        font-size: 4vw;
        line-height:5.8vw;
        padding:8px 0; 
        margin: 1%;
        -webkit-border-radius: 20px;
        -moz-border-radius: 20px;
        border-radius: 20px;
    }
    .event2_step1 .btnbox a small{
        font-size: 3vw;
    }
    .event1_result .resultv .right p {
        font-size: 3.5vw;
        line-height: 7vw;
    }
    .grid-item {
        width:100%;
    }
    .event2_step1 .e2titlebox p {
        font-size: 5vw;
        line-height: 7.5vw;
        margin-top: 10px;
        letter-spacing: 0;
        padding: 0 ;
    }
    .event2_step1 .e2titlebox::before,.event2_step1 .e2titlebox::after{
        display: none;
    }
    .event2_step1 .foodbox h5 {
        font-size: 5vw;
        line-height: 7.5vw;
        margin: 0;
    }
    .namebox div input, .event2_step1 .foodbox input{
        width: 86%;
    }
    .event2_step1 .foodbox p{
        text-align: center;
        padding:0 ;
        line-height: 30px;
        margin-bottom: 0;
    }
    #myBtn{
        display: block;
        margin-bottom: 10px;
    }
    .event1_result .resultv .right .ttbox a {
        font-size: 3vw;
        line-height:7vw;
        padding: 0 7px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 0;
        margin-top:0;

    }.event1_result .resultv .right .ttbox{
        position: relative;
    }
    .event1_result .resultv .right .ttbox a::after {
        width: 5vw;
        height: 5vw;
    }
    .event1_result .resultv .right .ttbox h3 {
        font-size:5vw;
    }
    .event2_step1 .foodbox small{
        margin-bottom: 10px;
    }
}

/* 動畫--------------------------------------------- */
@keyframes open{
    from{
        right: -100%;
    }
    to{
        right:0;
}}
@keyframes open2{
    from{
        right: -100%;
    }
    to{
        right:0%;
}}
@keyframes hide{
    from{
        transform: translate(0%,0%);
    }
    to{
        transform: translate(-100%,-0%);
       
}}

@keyframes hide2{
    from{
        transform: translate(0%,0%);
    }
    to{
        transform: translate(-104%,-0%);
       
}}
@keyframes btnain{
    from{
        background: #bc3931;
        
    }
    to{
        background: #970f07;
       
    }}

    @keyframes btnain2{
        from{
            background: #3786fa;
            
        }
        to{
            background: #0064f8;
           
        }}
    