:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1;
    /* fix for Chrome */
}

@supports (font-variation-settings: normal) {
    :root {
        font-family: InterVariable, sans-serif;
    }
}

.succSquare{
    background-color: rgb(175, 225, 100) !important;
}

body {
    background-color: #D4CDA8;
    margin: 0;
}

.content {
    display: grid;
    height: 100vh;
    width: 100vw;
    grid-template-columns: [col-head-start] 1fr [name-end] 1fr [col-grid-start] 4fr [col-final] 1fr;
    grid-template-rows: [first-row] minmax(min-content, 5fr) [grid-row] 3fr [grid-end-row] 1fr[name-row] minmax(min-content, 10fr) [end-row];
    overflow: hidden;
}

@media (max-width: 1200px) {
    .content {
        display: grid;
        height: 100dvh;
        width: 100dvw;
        grid-template-columns: [col-head-start] 5fr [name-end] 10fr [col-grid-start] 5fr [col-final] 5fr;
        grid-template-rows: [first-row] 1fr [grid-row] 3fr [grid-end-row] 1fr[name-row] 1fr [end-row];
        overflow: clip;
    }

    .box {
        width: 100%;
        aspect-ratio: 1/1;
        grid-column: name-end / col-final;
        grid-row: grid-row / grid-end-row;
        gap: 1%;
        display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        justify-content: center;
        vertical-align: middle;
        z-index: 1;
    }

    .box p {
        font-size: min(10dvw, 10rem);

    }

    p.title {
        font-size: 90dvw;

    }

    div.turnindicator {
        grid-column: 2/4;
    }
}

@media (min-width: 1201px) {
    .content {
        display: grid;
        height: 100vh;
        width: 100vw;
        grid-template-columns: [col-head-start] 1fr [name-end] 1fr [col-grid-start] 4fr [col-final] 1fr;
        grid-template-rows: [first-row] 2fr [grid-row] 5fr [grid-end-row] 1fr[name-row] 3fr [end-row];
    }

    .box {
        width: min(150%, 35vw);
        aspect-ratio: 1/1;
        margin: 0;
        grid-column: 2 / 4;
        grid-row: grid-row / grid-end-row;
        display: grid;
        gap: 1%;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        justify-content: center;
        justify-self: center;
        align-items: center;
        z-index: 1;
    }

    .box p {
        font-size: min(8vw, 8rem);
    }

    div.turnindicator {
        grid-column: 3/4;
    }
}

h1 {
    writing-mode: sideways-lr;
    font-weight: 900;
    font-size: 15rem;
    opacity: 30%;
    margin-left: 0;
    line-height: 50%;
    padding: 0;
    grid-row: end-row/grid-row;
    grid-column: col-head-start / col-grid-start;


}

a.forArrow {
    margin: 0.1rem;
    background-color: #e6e2cb;
    color: black;
    text-decoration: none;
    grid-column: col-final;
    grid-row: first-row;
    border: solid black 0.2rem;
    height: min-content;
    width: 7rem;
    justify-self: end;
    align-items: center;
    justify-content: center;
}

a.forArrow:hover {
    transition: 0.5s;
    background-color: #ccc9b9;
    font-style: oblique;

}

p.arrow {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

a.backArrow {
    margin: 0.1rem;
    background-color: #e6e2cb;
    color: black;
    text-decoration: none;
    grid-column: col-head-start;
    grid-row: first-row;
    border: solid;
    height: min-content;
    width: 7rem;
    align-items: center;
    justify-content: center;
    align-self: start;
}

a#inactive {
    background-color: rgb(53, 53, 53);
    color: rgb(117, 117, 117);
}

a#inactive:hover {
    background-color: rgb(53, 53, 53);
    color: rgb(117, 117, 117);
    font-style: normal;
}



a.backArrow:hover {
    transition: 0.5s;
    background-color: #ccc9b9;
    font-style: oblique;
}

p.title {
    grid-column: col-head-start / col-final;
    text-wrap: nowrap;
    grid-row: name-row;
    font-weight: 200;
    font-style: italic;
    font-size: min(15vw, 5rem);
    align-self: end;
    justify-self: start;
    margin: 0;
    overflow: hidden;
}

p.info {
    text-wrap: nowrap;
    font-weight: 400;
    font-style: italic;
    font-size: min(5vw, 3rem);
    justify-self: center;
    margin: 0;
    overflow: hidden;
}

div.tytuł {
    display: flex;
    flex-direction: row;
    justify-content: left;
    gap: 70rem;

}

h1.tytuł {
    writing-mode: sideways-lr;
    font-weight: 900;
    font-size: 10rem;
    opacity: 30%;
    margin-left: 0;
    line-height: 50%;
    padding: 0;
    grid-row: end-row/grid-row;
    grid-column: col-head-start / col-grid-start;



}

p.tytuł {
    grid-column: col-head-start / col-final;
    text-wrap: nowrap;
    grid-row: name-row;
    font-weight: 200;
    font-style: italic;
    font-size: min(15vw, 5rem);
    align-self: end;
    justify-self: start;
    margin: 0;
    overflow: hidden;

}

.card {
    aspect-ratio: 1/1;
    transition: 1s ease-in-out;
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;

}

.box {
    perspective: 205rem;
}

.card__face {
    aspect-ratio: 1/1;
    height: 100%;
    width: 100%;
    backface-visibility: hidden;
}

.box div.square {
    position: relative;
    z-index: -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    justify-items: center;
    align-items: center;
    height: 100%;
    width: 100%;
    border: solid;
    margin: 0;
    transition: 0.5s;
    background-color: #e6e2cb;
    perspective: 205rem;

}

.box div.high {
    background-color: rgb(223, 225, 100) !important;
}

.box div.opp {
    background-color: rgb(100, 192, 225) !important;
}



.box div.on {
    background-color: rgb(254, 254, 254);
}


.box p {
    font-family: 'Inter', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-align: center;
    font-weight: 500;
    margin: 0;

}

.square>p {
    position: relative;
    z-index: -1;
    grid-column: 2/3;
    grid-row: 2/3;
}

cupboard-door{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-column: 1/4;
    grid-row:1/4;
    height:100%;
    width:100%;
    transition: 0.5s;
    transform-style: preserve-3d;
    z-index: 5;
}

front-face{
    position: relative;
    grid-column: 1/4;
    grid-row:1/4;
    z-index: 4;
    background-color:#725c3e;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    cursor: pointer;
    transition: 0.5s;
    backface-visibility:hidden;
}

.open{
    transform: rotateY(-120deg);
    transform-origin: left;
    transform-style: preserve-3d;
}

handle-knob{
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 5px 5px 5px #3f3425;
    position: relative;
    right:20%;
    grid-column: 3/4;
    grid-row:2/3;
    z-index: 4;
    background-color:#62513b;
    height: 100%;
    width: 100%;
    border-radius: 100%;
    backface-visibility: hidden;
}

back-face{
    position:relative;
    grid-column: 1/4;
    grid-row: 1/4;
    background-color:#3f3425;
    z-index: 3;
    backface-visibility: visible;
    transition: 0.5s;
}




player-info {
    font-size: min(3vw, 3rem);
    color: rgb(169, 170, 79);
    font-style: normal;
}

com-info {
    font-size: min(3vw, 3rem);
    color: rgb(73, 138, 161);
    font-style: normal;
}
#tracker {
    font-style: italic;
    font-size: min(3vw, 3rem);
    grid-row: 2/5;
    grid-column: 4;
    margin-left: 10%;
    overflow: scroll;
}