progress[value]::-webkit-progress-bar {
background-color: rgb(255, 193, 0);
}

.treasure-bonus {
position: relative;
overflow: hidden;
background: linear-gradient(to top, rgb(255, 193, 0), rgb(255, 229, 0));
margin: 0px 10px;
padding: 10px;
border-radius: 1rem;
box-shadow: 0 4px 8px 0 rgb(0 0 0 / 20%), 0 6px 20px 0 rgb(0 0 0 / 19%);
}

.treasure-bonus .title {
display: table;
border: 2.5px solid white;
border-radius: 0.75rem;
background: black;
color: rgb(255, 193, 0);
font-size: 1.1em;
padding: 2px 10px;
margin-bottom: 10px;
}

.treasure-bonus .title span {
background: rgb(255, 193, 0);
color: black;
border-radius: 0.35rem;
padding: 0px 2.5px;
}

.treasure-bonus .treasure-bonus-description {
font-size: 0.7em;
max-width: 65%;
display: block;
}

.treasure-bonus .treasure-bonus-detail {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-content: center;
align-items: center;
}

.treasure-bonus .treasure-bonus-detail .treasure-bar {
border: rgb(255, 255, 255) 5px solid;
height: 1.6rem;
position: relative;
flex: 0 0 77%;
max-width: 77%;
}

.treasure-bar .treasure-bar-amount {
position: absolute;
font-size: 1.2em;
left: 50%;
transform: translateX(-50%);
line-height: 1.2em;
}

.treasure-bonus-detail .treasure-bonus-treasure-box {
position: absolute;
background: rgb(255, 193, 0);
transform: translateY(-50%);
border: 15px solid white;
border-radius: 50%;
overflow: hidden;
padding: 15px;
width: 35%;
right: -5%;
top: 50%;
}

.treasure-bonus-detail .treasure-bonus-treasure-box .treasure-box-img {
background: rgb(255, 193, 0)
}

@media screen and (max-width: 320px) {
.treasure-bonus {
    font-size: 0.8em;
}

.treasure-bonus-detail .treasure-bonus-treasure-box {
    border: 10px solid white;
    padding: 10px;
}

.treasure-bonus .treasure-bonus-detail .treasure-bar {
    border: rgb(255, 255, 255) 3px solid;
    height: 1rem;
}

.treasure-bar .treasure-bar-amount {
    font-size: 0.8em;
}
}

.treasure-content {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background: transparent;
border: none;
}

.treasure-content .row {
justify-content: center;
}

.treasure-frame {
transition: .3s;
}

.treasure-frame:focus,
.treasure-frame:hover {
transform: scale(1.1);
}

.treasure-img {
width: 100%;
animation: treasure 900ms ease forwards;
cursor: pointer;
transition: .3s;
}

.treasure-frame .treasure-amount {
background: white;
display: none;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
padding: 20px;
border-radius: 1rem;
animation: shodow-effect .5s linear infinite alternate;
box-shadow: 0 4px 8px 0 rgb(255 204 150), 0 6px 20px 0 rgb(38 0 0);
}



@keyframes shodow-effect {
from {
    box-shadow: 0 4px 8px 0 rgb(255 204 150), 0 6px 20px 0 rgb(38 0 0);
}

to {
    box-shadow: 0 8px 20px 0 rgb(255 204 150), 0 12px 60px 0 rgb(38 0 0);
}
}

@keyframes treasure {
0% {
    transform: translateY(0) scale3d(0.96, 0.96, 1);
}

20% {
    transform: translateY(0px) scale3d(1.1, 1.1, 1);
}

40% {
    transform: translateY(0px) scale3d(0.98, 0.98, 1);
}

60% {
    transform: translateY(0px) scale3d(1.05, 1.05, 1);
}

80% {
    transform: translateY(0px) scale3d(1.01, 1.01, 1);
}

100% {
    transform: translateY(0px) scale3d(1, 1, 1);
}
}