/* ===ITEMS=== */
.item-1:before {
    background-image: url(../images/global/show/item-1.webp);
}

.item-in-1:hover .item-name {
    color: #fbb03b;
}

.item-2:before {
    background-image: url(../images/global/show/item-2.webp);
}

.item-in-2:hover .item-name {
    color: #ff0000;
}

.item-3:before {
    background-image: url(../images/global/show/item-3.webp);
}

.item-in-3:hover .item-name {
    color: #ff00ff;
}

.item-4:before {
    background-image: url(../images/global/show/item-4.webp);
}

.item-in-4:hover .item-name {
    color: #662d91;
}

.item-5:before {
    background-image: url(../images/global/show/item-5.webp);
}

.item-in-5:hover .item-name {
    color: #076efb;
}

.item-6:before {
    background-image: url(../images/global/show/item-6.webp);
}

.item-in-6:hover .item-name {
    color: #00ffff;
}

.item-7:before {
    background-image: url(../images/global/show/item-7.webp);
}

.item-in-7:hover .item-name {
    color: #cccccc;
}

.item-8:before {
    background-image: url(../images/global/show/item-8.webp);
}

.item-in-8:hover .item-name {
    color: #00ff00;
}

.item {
    background-size: cover;
    width: 250px;
    height: 250px;
    position: relative;
}

.item:before {
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: 100%;
    height: 201px;
    top: 25px;
    left: 20px;
    right: 20px;
    position: absolute;
    content: "";
    z-index: 3;
}

.item-in {
    z-index: 450;
    height: 201px;
    margin: 20px;
    position: relative;
}

.item-wp {
    height: 120px;
    line-height: 120px;
    position: relative;
    z-index: 10;
    text-align: center;
}

.item-wp img {
    vertical-align: middle;
    width: 170px;
    height: auto;
    margin-top: 30px;
}

.zoom-rotate {
    width: 200px;
    height: 200px;
    transition: transform 0.3s, scale 0.3s;
}

.item-in:hover .zoom-rotate {
    transform: rotate(5deg) scale(1.2);
}

.item-info {
    position: relative;
    z-index: 10;
    height: 50px;
    text-align: center;
    overflow: hidden;
    padding: 10px 10px 0 10px;
    box-sizing: border-box;
    margin-top: 30px;
}

.item-category {
    display: block;
    font-size: 16px;
    text-align: initial;
}

.item-name {
    display: block;
    font-size: 17px;
    text-align: initial;
}
/* ===END=ITEMS=== */

/* ===RUL=== */
/*.rul-i:after {
  width: 148px;
  height: 158px;
  position: absolute;
  top: -19px;
  left: -3px;
  content: "";
}*/

.rul-i {
  float: left;
  width: 140px;
  height: 120px;
  background: url(../images/global/rul.png) no-repeat 0 0;
  margin: 10px 0 0 0;
  position: relative;
  border-radius: 10px;
}

.rul-i-1 {
    background: linear-gradient(to bottom, #867b004f, #867b00bd);
}

.rul-i-2 {
    background: linear-gradient(to bottom, #ff00004f, #ff0000bd);
}

.rul-i-3 {
    background: linear-gradient(to bottom, #ff00f74f, #ff00f7bd);
}

.rul-i-4 {
    background: linear-gradient(to bottom, #9315fe4f, #9315febd);
}

.rul-i-5 {
    background: linear-gradient(to bottom, #263ef34f, #263ef3bd);
}

.rul-i-6 {
    background: linear-gradient(to bottom, #31f8f24f, #31f8f2bd);
}

.rul-i-7 {
    background: linear-gradient(to bottom, #6869694f, #686969bd);
}

.rul-i-8 {
    background: linear-gradient(to bottom, #4bd5004f, #4bd500bd);
}

.rul-wp {
    height: 85px;
    line-height: 80px;
    text-align: center;
}

.rul-wp img {
    vertical-align: middle;
    max-width: 110px;
    max-height: 75px;
}

.rul-category {
    font-family: ExoSoftMedium;
    text-align: center;
}

.rul-category span {
    color: #c8d5f2;
}

.rul-name {
    font-family: ExoSoftMedium;
    text-align: center;
    font-weight: bold;
}

.rul-info {
    text-align: center;
    font-size: 13px;
}

.rulet {
    height: 490px;;
    position: relative;
    margin-bottom: 30px;
}

.rulet:after {
    background: url(../images/win_white.png) no-repeat 0 0;
    width: 197px;
    height: 296px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: calc(-320px / 2);
    margin-left: calc(-197px / 2);
    content: "";
    z-index: 2;
}

.rul {
    height: 140px;
    /*background: #0b0f19;*/
    margin: 0 10%;
    position: relative;
    top: 160px;
    overflow: hidden;
}

.rul:after {
    background: url(../images/l.png) no-repeat 0 0,
    url(../images/r.png) no-repeat right 0;
    width: 100%;
    height: 141px;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    z-index: 1;
}

.rul-ul {
    width: 99999px;
    position: relative;
    left: calc(50% - 910px);
    transition: 9s;
}

.l2 {
    background: url(../images/l2.png) no-repeat 0 0;
    width: 200px;
    height: 220px;
    position: absolute;
    top: 106px;
    left: 37px;
    z-index: 3;
}

.r2 {
    background: url(../images/r2.png) no-repeat 0 0;
    width: 290px;
    height: 220px;
    position: absolute;
    top: 110px;
    right: -85px;
    z-index: 3;
}
/* ===END=RUL=== */

.case-open-btn {
    margin-bottom: 100px;
}

.case-open-btn a {
    display: inline-block;
    height: 74px;
    border: 5px solid rgb(0, 0, 0);
    background: rgb(8, 112, 223);
    width: 250px;
    border-radius: 50px;
    margin: 0 50px;
    color: rgb(255, 255, 255);
    font-size: 18px;
    font-family: ExoSoftLight;
    box-sizing: border-box;
    padding: 9px 0 0 0;
    transition: 0.5s;
}

.case-open-btn a:hover {
  box-shadow: 0 0 30px rgb(8, 112, 223);
  transition: 0.5s;
}

.case-open-btn span {
  font-size: 24px;
  font-family: ExoSoftMedium;
  display: block;
  position: relative;
  top: -4px;
}

.case-open {
  width: 250px;
}

.case-open:hover .case-name {
  opacity: 1;
  transform: translate3d(0, 0px, 0);
}

.case-open:hover .case-wp img {
  transform: translate3d(0, 0px, 0);
}

.case {
  display: inline-block;
  margin-bottom: 40px;
  position: relative;
}

.case-wp {
  text-align: center;
  display: flex;
  justify-content: center;
}

.case-wp img {
  transition: 0.5s;
  max-width: 100%;
  height: auto;
}

.case-name {
  text-align: center;
  font-size: 20px;
  font-family: ExoSoftMedium;
  color: rgb(8, 112, 223);
  overflow: hidden;
  padding: 0 25px;
  transition: 0.5s;
  font-weight: bold;
}

.case-description {
  text-align: center;
  font-size: 24px;
  color: #fff;
  font-family: ExoSoftBold;
  margin: 5px 0 0 0;
}

.case-description span:after {
  width: 100%;
  height: 1px;
  background: #bcc9e6;
  position: absolute;
  top: 12px;
  left: 0;
  content: "";
  transform: rotate(-12deg);
}

.case-description span {
  font-size: 18px;
  color: #545f78;
  position: relative;
  top: -2px;
  margin-left: 8px;
}

/* ===MODAL=== */
.modal {
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.9);
    padding: 36px;
    min-width: 700px;
    width: 75%;
    border-radius: 20px;
    border: 5px solid rgb(8, 112, 223);
}

.modal-title {
    font-size: 40px;
    color: #fff;
    padding: 0 0 20px 0;
    text-align: center;
    font-weight: bold;
}

.modal-case-buttons .reopen{
    font-weight: bold;
}

.modal-case-buttons .back{
    float: right;
    font-weight: bold;
}

.modal-case-buttons .reopen:hover {
    color: rgb(8, 112, 223);
}

.modal-case-buttons .back:hover {
    color: rgb(8, 112, 223);
}

.modal-wp {
    width: 283px;
    height: 284px;
    line-height: 284px;
    margin: 15px auto;
    position: relative;
    align-items: center;
    display: flex;
}

.modal-wp::after {
  width: 290px;
  height: 290px;
  position: absolute;
  top: -3px;
  left: -3px;
  content: "";
  animation: 15s linear 0s normal none infinite running rot3;
}

.modal-wp img {
    max-width: 283px;
    max-height: 284px;
    position: relative;
    z-index: 3;
    display: block;
    margin: 0 auto;
}

.modal-wp-name {
    font-size: 30px;
    font-family: ExoSoftMedium;
    text-align: center;
    padding: 20px 0;
}

.modal-wp-name span {
    color: #c8d5f2;
}
/* ===END=MODAL=== */

/* ===PROBABILITY=== */
.skin-chance-table {
    width: 100%;
}

.skin-chance {
    margin: 0 3%;
    padding-left: 5px;
    float: right;
    cursor: default;
}

.skin-chance:hover {
    text-decoration: underline;
}

.chance-right {
    text-align: right;
}

.item-probability {
    z-index: 100;
    position: absolute;
    margin: 15px 0 0 186px;
}

.item-probability:hover .probability {
    visibility: visible;
}

.probability {
    z-index: 11;
    position: relative;
    background-color: rgb(8, 112, 223);
    border: solid 2px rgb(0, 0, 0);
    border-radius: 30px;
    margin: -54px 0px 0px -98px;
    width: 120px;
    height: 20px;
    visibility: hidden;
    text-align: center;
}

.probability::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 12px solid rgb(8, 112, 223);
    position: absolute;
    bottom: -12px;
    right: 15%;
    transform: translateX(50%);
}

.modal-probability {
    position: relative;
    z-index: 1000;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.9);
    padding: 25px;
    width: 600px;
    border-radius: 20px;
    border: 5px solid rgb(8, 112, 223);
}

.modal-probability-list {
    margin-top: 10px;
}

th {
    padding: 8px;
}

/* ===END=PROBABILITY=== */
/* ===OPEN=CASE=== */
.btn-open-case-list {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0 auto;
}

.btn-open-case {
    width: 300px;
    margin: 0 auto;
}

.btn-open-case div {
    display: inline-block;
    width: 260px;
    height: 50px;
    background: linear-gradient(to bottom, rgb(8, 112, 223), #0046a1);
    border-radius: 10px;
    font-family: ExoSoftLight;
    box-sizing: border-box;
    cursor: pointer;
}

.btn-open-case div:hover {
    background: #0056d2;
}

.btn-open-case span {
	font-size: 25px;
	font-family: ExoSoftMedium;
	display: block;
    text-align: center;
    padding: 0 3px;
    text-transform: uppercase;
}
/* ===END=OPEN=CASE=== */
/* ===SOUND=== */
.sound-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 195px;
    z-index: 1;
}

.sound-icon {
    font-size: 24px;
    cursor: pointer;
    user-select: none;
}

.sound-slide-container {
    width: 100px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgb(8, 112, 223);
    outline: none;
    -webkit-transition: .2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgb(255, 240, 0);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgb(255, 240, 0);
    cursor: pointer;
}

/* ===END=SOUND=== */
