/* PORTAL - fix */
#game .table>:not(caption)>*>* {
    padding: 0 0 ;
    box-shadow: none;
}

.game-itself {
    height: 100%;
}

.in-frame #game {
    width: 800px;

}

#chat {
    height: 100%;
    min-width: 210px;
    flex-grow: 1;
}

.chat-messages {
    height: 365px;
}

.table {
    transition: all 0.2s;
}

.back .table {
    background: rgba(255, 255, 255, 0.65);
    width: 100%;
    height: 100%;
}

.back #deck {
    opacity: 0;
}

#game .btn-outline-secondary {
    color: #383c40;
    border-color: #383c40;
}

#game .btn-outline-secondary:hover {
    color: white;
    border-color: #795548;
    background-color:#795548;
}

#game {
    width: auto;
    height: 600px;

    background: url('../img/prsi/bg.jpg');
    background-size: auto 100%;
    background-repeat: repeat;
    position: relative;
    overflow: hidden;
    flex: 2 2;
}

#game_place {
    display: flex;
    flex-wrap: nowrap;
}

#game_place .card {
    height: 195px;
    width: 110px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: inline-block;
    border: 1px solid black;
    border-radius: 8px;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.8) !important;
    margin: 3px 3px 3px 3px;

    transition: all 70ms;
}

#deck .card:hover, #my-cards .card:hover {
    height: 201px;
    width: 116px;

    margin: 0 0 0 0;
}

.card-7a {  background-image: url('../img/prsi/7a.png');  }
.card-8a {  background-image: url('../img/prsi/8a.png');  }
.card-9a {  background-image: url('../img/prsi/9a.png');  }
.card-10a {  background-image: url('../img/prsi/10a.png');  }
.card-Ja {  background-image: url('../img/prsi/Ja.png');  }
.card-Qa {  background-image: url('../img/prsi/Qa.png');  }
.card-Ka {  background-image: url('../img/prsi/Ka.png');  }
.card-Aa {  background-image: url('../img/prsi/Aa.png');  }
.card-7h {  background-image: url('../img/prsi/7h.png');  }
.card-8h {  background-image: url('../img/prsi/8h.png');  }
.card-9h {  background-image: url('../img/prsi/9h.png');  }
.card-10h {  background-image: url('../img/prsi/10h.png');  }
.card-Jh {  background-image: url('../img/prsi/Jh.png');  }
.card-Qh {  background-image: url('../img/prsi/Qh.png');  }
.card-Kh {  background-image: url('../img/prsi/Kh.png');  }
.card-Ah {  background-image: url('../img/prsi/Ah.png');  }
.card-7b {  background-image: url('../img/prsi/7b.png');  }
.card-8b {  background-image: url('../img/prsi/8b.png');  }
.card-9b {  background-image: url('../img/prsi/9b.png');  }
.card-10b {  background-image: url('../img/prsi/10b.png');  }
.card-Jb {  background-image: url('../img/prsi/Jb.png');  }
.card-Qb {  background-image: url('../img/prsi/Qb.png');  }
.card-Kb {  background-image: url('../img/prsi/Kb.png');  }
.card-Ab {  background-image: url('../img/prsi/Ab.png');  }
.card-7l {  background-image: url('../img/prsi/7l.png');  }
.card-8l {  background-image: url('../img/prsi/8l.png');  }
.card-9l {  background-image: url('../img/prsi/9l.png');  }
.card-10l {  background-image: url('../img/prsi/10l.png');  }
.card-Jl {  background-image: url('../img/prsi/Jl.png');  }
.card-Ql {  background-image: url('../img/prsi/Ql.png');  }
.card-Kl {  background-image: url('../img/prsi/Kl.png');  }
.card-Al {  background-image: url('../img/prsi/Al.png');  }

.wood-stop {
    color: #481212;
    font-size: 28px;
    width: 100%;
    height: 100%;
    display: inline-block;
}

.wood-b, .card-b {  background-image: url('../img/prsi/b.png');  }
.wood-h, .card-h {  background-image: url('../img/prsi/h.png');  }
.wood-l, .card-l {  background-image: url('../img/prsi/l.png');  }
.wood-a, .card-a {  background-image: url('../img/prsi/a.png');  }

.card-back {
    background-image: url('../img/prsi/back_2.png');
    border-color: #800000;
}

#opponent-cards {
    position: absolute;
    top: -100px;
    text-align: center;
    width: 100%;
    white-space: nowrap;
}

#my-cards {
    position: absolute;
    bottom: 10px;
    text-align: center;
    height: 205px;
    width: 100%;
    white-space: nowrap;
}

#my-cards-holder, #opponent-cards-holder {
    display: inline-block;
}

.play-field {
    position: relative;
    top: 120px;
    text-align: center;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

#disposal, #wood-container, #deck {
    display: inline-block;
    position: relative;
    transition: margin 0.5s;
}

#disposal-info {
    color: white;
    font-weight: bold;
    line-height: 195px;
    height: 195px;
    width: 110px;
    position: absolute;
    text-align: center;
    background: rgba(50,50,50,0.7);
    border-radius: 8px;
    margin: 3px 3px 3px 3px;
    display:none;
    z-index: 99999;
}

#disposal-info a {
    width: 100%;
    height: 100%;
    display: block;
    color: white;
    border-radius: 8px;
    transition: background-color 0.2s;
}

#disposal-info a:hover {
    background-color: rgba(20,20,20,0.2);
    text-decoration: none;
}

#deck {
    transition: opacity 0.5s;
    width: 110px;
    margin-right: 40px;
}

#deck.possible-turn .card:hover, #my-cards .card.possible-turn:hover {
    cursor: pointer;
}

#deck.not-possible-turn .card:hover, #my-cards .card.not-possible-turn:hover {
    cursor: not-allowed;
}

#deck.empty {
    opacity: 0.3;
}

#disposal {
    margin-right: 40px;
    margin-left: 250px;
}

#wood-container {
    margin-right: 20px;
    width: 70px;
}

.wood-shadow {
    opacity: 0;
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 70px;
    box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.8)!important;
    transition: all 0.4s;
    margin-top: 67px;
}

.wood-shadow.active {
    opacity: 1;
    margin-top: 0px;
}

.wood-shadow .wood {
    transform: rotate(-75deg);
}

.wood-shadow.active .wood {
    transform: rotate(0deg);
}

.wood {
    width: 70px;
    height: 70px;
    border-radius: 70px;
    border: 2px solid rgba(53, 34, 27, 0.3);
    background-size: 100% 100%;
    background-image: url('../img/prsi/wood.png');
    transition: all 0.4s;
}

.wood-shadow.wood-me {
    margin-top: 132px;
}

.wood-shadow.wood-me .wood {
    transform: rotate(-150deg);
}

.wood-content {
    color: #481212;
    line-height: 65px;
    font-weight: bold;
    font-size: 20px;
    background-size: 50% 50%;
    background-repeat: no-repeat;
    background-position: center;
    height: 100%;
    width: 100%;
}

.wood-me .wood-content {
    transform: rotate(150deg);
}

#disposal {
    width: 110px;
}

#disposal div, #deck div {
    position: absolute;
    top: 0px;
    left: 0px;
}

#my-cards.packed {
    padding-left: 50px;
    overflow-x: scroll;
    overflow-y: visible;
}

#my-cards.packed::-webkit-scrollbar {
    display: none;
}

#my-cards.packed {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#game_place .packed .card {
    transition: margin-left 0.4s, margin-right 0.4s;
}

#game_place .packed .card, #game_place .packed .flip-card, #my-cards.packed .card:first-child:hover   {
    margin-left: -50px;
}

#game_place .packed .flip-card {
    margin-right: 50px;
}


#game_place .packed .flip-card .card {
    margin-left: 0px;
}

#my-cards.packed .card:hover {
    margin-right: 55px;
}

#my-cards.packed .card:last-child:hover {
    margin-right: 0px;
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
#game_place .flip-card {
    display: inline-block;
    background-color: transparent;
    width: 0px;
    height: 201px;
    transition: all 0.3s;
    z-index: 1000;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
#game_place .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.3s;
    transform-style: preserve-3d;
}

#game_place .flip-x .flip-card-inner {
    transition: transform 0.2s
}

#game_place .op-card {
    width: 0px;
    overflow: visible;
    transition: all 0.3s;
    display: inline-block;
}

#game_place .flip-card.animate, #game_place .op-card.animate {
    width: 114px;
    margin-right: 0px;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card.animate .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-x.flip-card.animate .flip-card-inner {
    transform: rotateX(180deg);
}

.flip-card.animate .flip-card-front {
    opacity: 0;
}

/* Position the front and back side */
#game_place .flip-card-front, #game_place .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Style the back side */
.flip-card-back {
    transform: rotateY(180deg);
}

.flip-x .flip-card-back {
    transform: rotateX(180deg);
}

.blank {
    width: 0;
}

#game_place .info-window {
    position:relative;
    top: 140px;
    width: 300px;
    height: 140px;
    background-color: #fffbf6;
    display:none;
}

#game_place .info-window .btn {
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: center;

    border: 1px solid #c1c1c1;
}

#game_place .info-window .btn:hover {
    border: 1px solid gray;
}