@charset "UTF-8";
/* top */
.game_area{
    background: url(/assets/img/game/joypico/math/pc/bg.png) no-repeat center center !important;
    background-size: cover !important;
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 10;
}
.game_start{
    position: relative;
    z-index: 3;
}
.title{
    width: 400px !important;
    margin: 40px auto 0 !important;
}
.ex_text,.result_text{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 77%;
    font-size: 17px;
    line-height: 1.6em;
    margin: 20px auto;
    background-color: #f5c46a;
    padding: 20px 30px;
    border-radius: 20px;
    color: #2f0d06;
    font-weight: 600;
    & img{
        max-width: 70px;
        margin-right: 20px;
    }
}
.title_text{
    text-align: left;
    width: 90%;
}
.start_btn,.result_btn{
    & img {
    max-width: 440px;
    margin: 0 auto;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  &:hover img {
    transform: translateY(3px);
    opacity: 1 !important;
  }
  &:hover{
    opacity: 1 !important;
  }
  &:active img {
    transform: translateY(6px);
  }
}

/* play */
.big_bg{
    background: url(/assets/img/game/joypico/math/pc/bg_big.png) no-repeat !important;
    background-size: cover !important;
}
.timeup_title{
    max-width: 280px;
    margin: 140px auto 100px;
}

.play_innner{
    display: flex;
    width: 100% !important;
    justify-content: center;
    align-items: center;
    height: 100% !important;
}

.left-coloum{
    width: 47%;
}
.right-coloum{
    width: 40%;
}

#timer-container{
    text-align: left;
    margin: 0 auto 24px;
    max-width: 500px;
    background-color: #fff;
    color: #17535b;
    position: relative;
    top: 12px;
    border-radius: 5px;
    box-shadow: 0px 2px #17535b;
}

#timer {
    font-size: 13px;
    font-weight: bold;
    color: #17535b;
    margin-left: 5px;
}

#time_gauge{
    background: #e18e4a;
    height: 8px;
    display: block;
    width: 74%;
    top: 8px;
    left: 74px;
    position: absolute;
}

table {
    border-collapse: collapse;
    margin: 0 auto 20px;
    width: 100%;
    max-width: 500px;
}

#gameTable td {
    border: 1px solid #b7c5c9;
    text-align: center;
    font-size: 14px;
    position: relative;
}

#gameTable td:after {
    content: '';
    display: block;
    padding-top: 100%;
}

#gameTable  td > div {
    position: absolute;
    color: black;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yellow {
    background-color: #ffffff;
}

.green {
    background-color: #eab045;
    cursor:pointer;
}

.green:not([style*="background-color"]) {
  animation: pulseBg 1s infinite;
}

@keyframes pulseBg {
  0%   { background-color: #ffe100; } /* 黄色 */
  50%  { background-color: #fceb68; } /* 少し明るめに変化 */
  100% { background-color: #ffe100; }
}

.white {
    background-color: #187b97;
}

#answers {
    margin: 20px auto;
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 500px;
}

#answers span {
    margin: 6px;
    cursor: pointer;
    padding: 4px 4px;
    border-radius: 5px;
    min-width: 40px;
    text-align: center;
    display: inline-block;
    background-color: #fff;
    color: #000;
    box-shadow: 0px 2px #17535b;
    letter-spacing: 0.04em;
}

#answers span.used {
    background-color: #a4a4a4;
    cursor: not-allowed;
}

#controls {
    text-align: center;
    margin: 20px auto;
    max-width: 500px;
}

#completionMessage {
    margin: 20px auto;
    font-size: 16px;
    color: green;
    display: none;
    text-align: center;
    max-width: 500px;
}

@media (max-width: 600px) {
    td {
        font-size: 14px;
    }

    #answers span {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* finish */
.finish_title{
    & img {
        max-width: 300px;
        margin: 120px auto 70px;
    }
}

/* result */
.result_title{
    max-width: 280px;
    margin: 45px auto 0px;
}
.bigtxt{
    color: #ffd788;
    font-size: 1.5em;
}
.btn_two{
    display: flex;
    width: 90%;
    margin: 0 auto;
    & img {
    max-width: 300px;
    }
}

/* earn */
.earn_text{
    width: 77%;
    font-size: 18px;
    line-height: 1.6em;
    margin: 15px auto 30px;
    background-color: rgba(9, 9, 34, 0.8);
    padding: 20px 30px;
    border-radius: 20px;
    color: #fff;
    border: 3px solid #f9d983;
}
.earn_title{
    max-width: 280px;
    margin: 60px auto 0px;
}
