/* abril-fatface-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Abril Fatface';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/abril-fatface-v23-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* bricolage-grotesque-200 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/bricolage-grotesque-v7-latin-200.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* bricolage-grotesque-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/bricolage-grotesque-v7-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* bricolage-grotesque-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Bricolage Grotesque';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/bricolage-grotesque-v7-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ####################################################
                    GLOBAL SETTINGS
###################################################### */

:root{
    /* FONT-FAMILY */
    --ff-abril_fatface: 'Abril Fatface';
    --ff-bricolage_grotesque: 'Bricolage Grotesque';

    /* FONT SIZES */
    --fs-h1: clamp(1.5rem, 3vw, 2.125rem);
    --fs-h2: clamp(1.25rem, 2.5vw, 1.75rem);
    --fs-h3: clamp(1.125rem, 2vw, 1.5rem);
    --fs-h4: clamp(1rem, 2vw, 1.25rem);
    --fs-p: clamp(0.75rem, 1.5vw, 1rem);

    /* COLOR */
    --clr-white: white;
    --clr-black: black;
    --clr-gold: rgb(247, 191, 100);
    --clr-background: linear-gradient(45deg, #373737 0%, #000000 60%);
    --clr-background-hover: linear-gradient(45deg, #000000 0%, #373737 80%);

    --clr-navbar-toggler: var(--clr-white);
}

*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;    
    -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scrollbar-width: thin;
    scrollbar-color: var(--clr-gold) var(--clr-background);
    touch-action: pan-y;
}

html{
    font-size: 18px;
}

body{
    position: relative;
    /* background-color: rgba(0, 0, 0, 0.9); */
    background-image: url('../img/page_bg.png');
    background-size: 200px 200px;
    font-family: var(--ff-bricolage_grotesque);
    font-weight: 200;
    font-size: 20px;
    color: var(--clr-white);
}
body.open{
    overflow-y: hidden;
    pointer-events: none;
}

h1{
    font-weight: 700;
    --remSize: var(--fs-h1);
    font-size: var(--remSize);
    margin-top: calc(var(--remSize));
    margin-bottom: calc(var(--remSize));
}
h2{
    font-weight: 700;
    --remSize: var(--fs-h2);
    font-size: var(--remSize);
    margin-bottom: calc(var(--remSize)/5);
    margin-top: var(--remSize);
}
h3{
    font-weight: 700;
    --remSize: var(--fs-h3);
    font-size: var(--remSize);
    margin-bottom: calc(var(--remSize)/5);
    margin-top: var(--remSize);
}
h4{
    font-weight: 700;
    --remSize: var(--fs-h4);
    font-size: var(--remSize);
    margin-bottom: calc(var(--remSize)/5);
    margin-top: var(--remSize);
}
p{
    --remSize: var(--fs-p);
    font-size: var(--remSize);
    margin-bottom: calc(var(--remSize)/5);
    max-width: 80ch;
}
a{
    text-decoration: none;
    color: gold;
}
ul{
    margin-top: 20px;
    padding-left: 0;
}
li{
    list-style: '';
    margin-bottom: 5px;
}
.btn{
    color: white;
    text-align: left;
    padding: 5px 10px;
    width: max-content;
    background-image: var(--clr-background);
    border-radius: 10px;
    border: unset;
    box-shadow: 0 3px 20px 0 var(--clr-black);
    outline: unset;
    margin-top: 10px;
    transition: all 200ms ease-in-out;
}
.btn:focus,
.btn:hover{
    color: var(--clr-white);
    background-image: var(--clr-background-hover);
}
select.btn{
    font-size: 1rem;
    margin-top: 0;
}
select.btn:focus,
select.btn:focus,
select.btn:hover{
    color: var(--clr-white);
    box-shadow: unset;
}
label{
    color: white;
}
input{
    position: relative;
    font-weight: 200;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    padding: 5px;
    border-radius: 0 0 10px 10px;
    background-image: var(--clr-background);
    color: var(--clr-white);
    border: 0;
}
input:hover,
input:focus{
    background-image: var(--clr-background-hover);
    outline: 0;
    border: 0;
}

/* ####################################################
                    NAVIGATION
###################################################### */
header{    
    padding-top: 20px;
}
header .container{
    padding: 0;
}
header #navbarSupportedContent{
    z-index: 999;
    justify-content: space-between;
    margin-right: 18px;
}
header ul{
    display: flex;
    align-items: center;
    gap: 20px;
}
header #user_navigation a{
    position: relative;
    color: currentColor;
    font-weight: 400;
    transition: color 0.3s ease;
}
header #user_navigation a img{
    width: 35px;
    height: 35px;
    margin-right: 5px;
}
header #user_navigation a:hover{
    color: #6e6e6e;
}
header #site-branding{
    margin-left: 18px;
}
header #site-branding img{
    width: 100%;
    max-width: 100px;
}
header nav{
    justify-content: space-between;
}
.navbar-toggler-icon{
    position: relative;
    width: 40px;
    height: 25px;
    cursor: pointer;
}
.navbar-toggler-icon span{
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    background-color: var(--clr-navbar-toggler);
    transition: all 250ms ease-in-out;
}
.navbar-toggler-icon span:nth-child(1){
    top: 0;
}
.navbar-toggler-icon span:nth-child(2){
    top: 10px;
}
.navbar-toggler-icon span:nth-child(3){
    top: 20px;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(1){
    transform: rotateZ(45deg);
    top: 10px;
    width: 70%;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(2){
    width: 0;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon span:nth-child(3){
    transform: rotateZ(-45deg);
    top: 10px;
    width: 70%;
}
.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: none;
}

@media screen and (max-width: 768px){
    header #navbarSupportedContent{
        position: absolute;
        top: 120px;
        left: 0;
        width: 100%;
        background-color: var(--clr-background);
        backdrop-filter: blur(5px);
    }
    header #user_navigation{
        margin-inline: 20px;
    }
    header #user_navigation a::after {
        height: 0;
    }
    header ul {
        flex-direction: column;
        gap: 5px;
    }
    header ul li a{
        display: block;
        width: 100%;
    }
}

/* ####################################################
                    CONTENT
###################################################### */

/* PAGE FORMATTER */
.container{
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
    margin-bottom: 50px;
    padding-inline: 18px;
}

/* FRONTPAGE */
.keyvisual{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-block: 50px;
    gap: 50px;
}
.keyvisual img{
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 200px;
    box-shadow: 0 3px 20px 0 var(--clr-black);
    object-fit: cover;
    object-position: center center;
}
@media screen and (max-width: 600px){
    .keyvisual {
        flex-direction: column-reverse;
        border-left: unset;
    }
    .keyvisual .left {
        padding-left: 0;
    }
}



/* LOGIN / REGISTER */
.loginGroup{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}
.loginGroup .left{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.loginGroup .left > div{
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    column-gap: 20px;
}
.loginGroup .btn{
    margin-top: 20px;
}
.loginGroup .btn.reg{
    margin-left: 62px;
}
.loginGroup .btn.login{
    margin-top: 10px;
    margin-left: 0;
}
div.policy{
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    margin-left: 62px;
    align-items: center;
}
div.policy label{
    font-size: 14px;
    margin-left: 10px;
}
div.policy label a{
    margin-inline: 5px;
}
div.policy input{
    position: relative;
    padding-inline: 0;
    width: 20px;
    height: 20px;
    text-align: unset;
    font-size: unset;
    max-width: unset;
    padding: 12px;
    margin-right: 5px;
}
div.policy input:checked{
    background-image: url(/assets/img/Herz_Altenburg.svg);
    background-size: 19px 18px;
    background-position: center center;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
}

/* PROFILE */
.avatar{
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 50px;
}


/* GAME TEASER */
.container.lobby{
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
}
.game_teaser{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 80px;
    margin-top: 80px;
}
.game_teaser a{
    color: var(--clr-white);
}
#tile h3{
    display: flex;
    color: var(--clr-white);
    transition: all 0.6s ease;
}


.game_teaser .room{
    background-image: var(--clr-background);
    border-radius: 10px;
    padding: 20px 25px 20px 20Px;
    box-shadow: 0 3px 20px 0 var(--clr-black);
    transition: all 500ms ease-in-out;
}
.game_teaser .room:hover{
    background-image: var(--clr-background-hover);
}
.game_teaser .room .top{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: -60px;
}
.game_teaser .room .top h4{
    margin-top: 60px;
    margin-left: 20px;
}
.game_teaser .room .top img{
    width: auto;
    height: 100%;
    max-height: 120px;
}
.game_teaser .room .bottom{
    margin-top: 20px;
    margin-left: 20px;
}
.game_teaser .room .bottom p{
    display: grid;
    grid-template-columns: 180px 50px;
}
.game_teaser .room .bottom p span{
    text-align: center;
}

@media screen and (max-width: 400px){
    .loginGroup .left > div {
        grid-template-columns: 1fr;
    }
}

/* ####################################################
                    CHAT WINDOW
###################################################### */
.chatWindow{
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 460px;
    margin-bottom: 100px;
    box-shadow: 0 3px 20px 0 var(--clr-black);
}
#chatWindow{
    isolation: isolate;
    position: relative;
    background-image: var(--clr-background);
    border-radius: 10px 10px 0 0;
    width: 100%;
    height: 100%;
    max-height: 460px;
    padding: 10px;
    overflow-y: scroll;
    margin-top: 40px;
}
#chatInput{
    position: relative;
    font-weight: 200;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    padding-block: 5px;
    border-radius: 0 0 10px 10px;
    background-image: var(--clr-background);
}

#chatInput:focus,
#chatInput:hover{
    background-image: var(--clr-background-hover);
}
#chatWindow > div{
    z-index: 2;
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
    padding: 5px;
}
#chatWindow > div p:first-of-type{
    margin-bottom: 5px;
    font-weight: 700;
}
#chatWindow > div p{
    line-height: 20px;
    font-size: 0.9rem;
}

#chat_mobile_toggler{
    z-index: 90;
    display: none;
    position: absolute;
    cursor: pointer;
    top: 100px;
    left: -67px;
    width: 100px;
    height: 35px;
    border-color: var(--clr-white);
    border-top: 2px solid;
    border-left: 2px solid;
    border-right: 2px solid;
    border-radius: 5px 5px 0 0;
    transform: rotateZ(-90deg);
    text-align: center;
    background-color: var(--clr-background);
}

@media screen and (max-width: 660px){    
    .container.lobby {
        grid-template-columns: 1fr;
    }    
    #chat h2{
        display: none;
    }
    #chat_mobile_toggler{
        display: block;
        pointer-events: all;
        font-weight: 700;
    }
    #chat_mobile_toggler:hover{
        background-color: var(--clr-gold);
        border-color: var(--clr-gold);
        color: var(--clr-black);
    }
    #chat{
        z-index: 90;
        position: fixed;
        top: 80px;
        left: 100%;
        width: 70%;
        height: 70vh;
        transition: all 250ms ease-in-out;
        pointer-events: all;
    }
    #chat.open{
        left: 25.6%;
    }
}


/* ####################################################
                    NEWS
###################################################### */
.news_container{
    display: grid;
    grid-template-columns: 1fr;
    flex-wrap: wrap;
    column-gap: 30px;
}
.news_single:first-of-type{
    margin-top: 20px;
}
.news_single:not(:first-of-type){
    width: 100%;
    border-top: 2px solid var(--clr-white);
    margin-top: 20px;
    padding-top: 20px;
}
.news_single h3{
    margin-top: 0;
    color: var(--clr-gold);
}
.news_single span{
    font-size: 0.8rem;
}

/* ####################################################
                    GAME ROOMS
###################################################### */
.game_rooms{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    flex-wrap: wrap;
    column-gap: 30px;
    row-gap: 80px;
    margin-top: 40px;
}
.game_room_single{
    background-image: var(--clr-background);
    border-radius: 10px;
    padding: 20px 25px 20px 20Px;
    box-shadow: 0 3px 20px 0 var(--clr-black);
    transition: all 500ms ease-in-out;
}
.game_room_single{
    h3{
        margin-top: 0;
        color: var(--clr-white);
    }
    p{
        color: var(--clr-white);
    }
}
.game_room_single:hover{
    background-image: var(--clr-background-hover);
}


/* ####################################################
                    CREATE ROOM
###################################################### */
.create_room{
    display: flex;
    flex-direction: column;
}
.create_room > div{
    display: grid;
    grid-template-columns: 230px 1fr;
    column-gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

@media screen and (max-width: 500px){
    .create_room > div{
        grid-template-columns: 1fr;
    }
}


/* ####################################################
                    ROOM TABLE DOKO
###################################################### */
body.game{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--clr-black);
    background-image: url('../img/room_table_bg.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    height: 100dvh;
}
body.game header,
body.game footer{
    display: none;
}
body.game a.back{
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    top: 20px;
    left: 20px;
    background-color: var(--clr-background);
    border: 2px solid var(--clr-white);
    border-radius: 5px;
    max-width: max-content;
}
body.game .container{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    top: 0;
    height: 100%;
    margin-bottom: 0;
}
body.game .container .top{
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 100px;
}
body.game .container .middle{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    grid-template-columns: 120px 300px 120px;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 100px;
}
body.game [id*=-hand]{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 140px;
}

body.game [id*=-hand].highlight {
    background-image: linear-gradient(180deg, rgba(247,191,100,1) 0%, rgba(85,66,34,1) 95%, rgba(0,0,0,1) 100%);
    border: 2px solid var(--clr-gold);
}

body.game [id*=-hand] img{
    position: relative;
    top: 3px;
    width: 112px;
    height: 112px;
    background-color: var(--clr-black);
    border-radius: 100vmax;
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 3px 20px 0 black;
}
body.game [id*=-hand] div{
    display: inline-block;
    width: 110px;
    white-space: nowrap;
    overflow: hidden !important;
    text-overflow: ellipsis;
    text-align: center;
}
body.game [id=player2-hand] .call_bubble{
    z-index: 20;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 140px;
    left: 20px;
    width: 230px;
    height: auto;
}
body.game [id=player2-hand] .call_bubble img{
    z-index: 21;
    position: relative;
    width: 230px;
    height: auto;
    background-color: unset;
}
body.game [id=player2-hand] .call_bubble span{
    z-index: 22;
    position: absolute;
    top: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-black);
}

#your_turn {
    color: var(--clr-gold);
    display: none;  /* Hide the div by default */
}

#your_turn.visible {
    display: block;  /* Show the div */
}

#your_turn.invisible {
    display: none;  /* Hide the div */
}

#startGameButton{
    position: absolute;
    bottom: 25%;
}


/* HAND */
body.game .bottom{
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-y: hidden;
    padding-top: 30px;
}
#player-cards{
    position: relative;
}
#player-cards img{
    position: relative;
    padding: 0;
    box-shadow: 0 0 10px 0 black;
    opacity: 0;
    transition: all 250ms ease-in-out;
}
#player-cards img:not(:first-of-type){
    margin-left: -60px;
}
#player-cards img:nth-of-type(1){
    z-index: 1;
}
#player-cards img:nth-of-type(2){
    z-index: 2;
}
#player-cards img:nth-of-type(3){
    z-index: 3;
}
#player-cards img:nth-of-type(4){
    z-index: 4;
}
#player-cards img:nth-of-type(5){
    z-index: 5;
}
#player-cards img:nth-of-type(6){
    z-index: 6;
}
#player-cards img:nth-of-type(7){
    z-index: 7;
}
#player-cards img:nth-of-type(8){
    z-index: 8;
}
#player-cards img:nth-of-type(9){
    z-index: 9;
}
#player-cards img:nth-of-type(10){
    z-index: 10;
}
#player-cards img:nth-of-type(11){
    z-index: 11;
}
#player-cards img:nth-of-type(12){
    z-index: 12;
}

#player-cards img:hover{
    position: relative;
    bottom: 30px;
}

/* #player-cards img:nth-of-type(1){
    transform: rotateZ(-10deg);
    top: 30px;
}
#player-cards img:nth-of-type(2){
    transform: rotateZ(-8deg);
    top: 20px;
}
#player-cards img:nth-of-type(3){
    transform: rotateZ(-6deg);
    top: 12px;
}
#player-cards img:nth-of-type(4){
    transform: rotateZ(-4deg);
    top: 6px;
}
#player-cards img:nth-of-type(5){
    transform: rotateZ(-2deg);
    top: 2px;
}
#player-cards img:nth-of-type(6){
    transform: rotateZ(-1deg);
    top: 0;
}


#player-cards img:nth-last-of-type(1){
    transform: rotateZ(10deg);
    top: 30px;
}
#player-cards img:nth-last-of-type(2){
    transform: rotateZ(8deg);
    top: 20px;
}
#player-cards img:nth-last-of-type(3){
    transform: rotateZ(6deg);
    top: 12px;
}
#player-cards img:nth-last-of-type(4){
    transform: rotateZ(4deg);
    top: 6px;
}
#player-cards img:nth-last-of-type(5){
    transform: rotateZ(2deg);
    top: 2px;
}
#player-cards img:nth-last-of-type(6){
    transform: rotateZ(1deg);
    top: 0;
} */


/* TRICK */
#trick{
    position: relative;
    height: 300px;
}
#trick img{
    position: absolute;    
    width: 106px;
    height: 164px;
    box-shadow: 0 0 10px 0 black;
}
#trick img[id=trickCard2]{
    /* z-index: 1; */
    top: 23px;
    left: 50%;
    transform: translateX(-50%);
}
#trick img[id=trickCard3]{
    /* z-index: 2; */
    top: 70px;
    left: 70%;
    transform: translateX(-50%);
}
#trick img[id=trickCard0]{
    /* z-index: 3; */
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
}
#trick img[id=trickCard1]{
    /* z-index: 4; */
    top: 90px;
    left: 15%;
}



/* ANIMATION */
@keyframes cardFadeIn{
    0%{
        opacity: .8;
        transform: translateY(-20px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
}

:root{
    --speed: .5s;
}

#player-cards img.fadeIn:nth-of-type(1){    
    animation: cardFadeIn var(--speed) 0s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(2){
    animation: cardFadeIn var(--speed) .2s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(3){
    animation: cardFadeIn var(--speed) .4s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(4){
    animation: cardFadeIn var(--speed) .6s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(5){
    animation: cardFadeIn var(--speed) .8s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(6){
    animation: cardFadeIn var(--speed) 1s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(7){
    animation: cardFadeIn var(--speed) 1.2s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(8){
    animation: cardFadeIn var(--speed) 1.4s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(9){
    animation: cardFadeIn var(--speed) 1.6s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(10){
    animation: cardFadeIn var(--speed) 1.8s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(11){
    animation: cardFadeIn var(--speed) 2s ease-out forwards;
}
#player-cards img.fadeIn:nth-of-type(12){
    animation: cardFadeIn var(--speed) 2.2s ease-out forwards;
}

@media screen and (max-width: 800px){
    body.game .container .middle {
        grid-template-columns: 80px 250px 80px;
        padding-inline: 10px;
    }
    body.game [id*="-hand"] {
        width: 80px;
        height: 100px;
        border-radius: 10px;
    }
    body.game [id*="-hand"] img {
        top: 3px;
        width: 80px;
        height: 80px;
    }
    body.game [id*="-hand"] div {
        width: 70px;
        font-size: 16px;
    }
    #player-cards img {
        width: 80px;
    }
    #player-cards img:not(:first-of-type) {
        margin-left: -50px;
    }
    #trick img {
        width: 86px;
        height: 144px;
    }
}
@media screen and (max-width: 530px){
    body.game .container .middle {
        grid-template-columns: 80px 200px 80px;
    }
    body.game [id*="-hand"] {
        width: 80px;
        height: 100px;
        border-radius: 10px;
    }
    body.game [id*="-hand"] div {
        width: 70px;
        font-size: 16px;
    }
    #player-cards img {
        width: 70px;
    }
    #player-cards img:not(:first-of-type) {
        margin-left: -50px;
    }
    #trick img {
        width: 86px;
        height: 144px;
    }
}


@media screen and (max-height: 900px) {
    body.game .container .top{
        margin-top: 10px;
    }
}
@media screen and (max-height: 650px) {
    body.game .container .middle {
        top: 55%;
    }
    body.game [id*="-hand"] {
        width: 80px;
        height: 100px;
        border-radius: 10px;
    }
    body.game [id*="-hand"] div {
        width: 70px;
        font-size: 16px;
    }
    body.game .bottom {
        bottom: 0;
    }
    #trick {
        height: 250px;
    }
    #trick img {
        width: 66px;
        height: auto;
    }    
    #player-cards img {
        width: 70px;
        height: auto;
    }
    #player-cards img:not(:first-of-type) {
        margin-left: -50px;
    }
    #player-cards {
        bottom: -50px;
    }
}



/* ####################################################
                    FOOTER
###################################################### */

footer{
    padding-top: 50px;
}
footer .footer_navigation{
    display: flex;
    justify-content: space-between;
}
footer ul {
    display: flex;
    gap: 20px;
}
footer .footer_navigation a {
    position: relative;
    color: currentColor;
    font-weight: 400;
}
footer .footer_navigation a:hover{
    color: var(--clr-gold);
}
