: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;
    }
}

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;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: max-content max-content max-content;
        justify-content: center;
        vertical-align: middle;
        z-index: 1;
    }

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

    }

    p.title {
        font-size: 90dvw;

    }
        p.info{
            
        grid-column: 2/4;
    }
    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] 2fr;
        grid-template-rows: [first-row] 2fr [grid-row] 5fr [grid-end-row] 1fr[name-row] 3fr [end-row];
    }

    .box {
        height:80vh;
        aspect-ratio: 1/1;
        margin: 0;
        grid-column: 3 / col-final;
        grid-row: grid-row / grid-end-row;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        justify-content: center;
        justify-self: center;
        z-index: 1;
    }

    .box p {
        font-size: min(10rem,10vw);
    }
    p.info{
        grid-column: 3;
    }
        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;
    grid-row: first-row;
    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;

}

.box div.square {
    aspect-ratio: 1 / 1 !important;
    height: min-content;
    width: auto;

    margin: 0;
    transition: 0.5s;
}

.box div.square{
    background-color: #e6e2cb;
}

.inc{
    background-color: #e6e2cb;
    animation: Incorrect 0.75s ease-in-out forwards !important;
}


@keyframes Incorrect {
  from {
    background-color: #ff5353;
  }
  
  to {
    background-color: #e6e2cb;
  }
}


.box div.succSquare{
    background-color: rgb(175, 225, 100);
}
div.succ{
    border-color: rgb(0, 0, 0) !important;
    border: 0.3rem solid !important;
}

div.high{
    border-color: rgb(223, 225, 100) !important;
    background-color: rgb(211, 212, 135) !important;
}

div.opp{
    border-color: rgb(100, 192, 225) !important;
    background-color:rgb(134, 186, 205) !important ;
}

@keyframes outofservice {
    0% {
    background-color: #827f73;
    }
    25%{

    background-color: #cbc9bb;
    }

    63%{
        background-color: #6a675d;
    }
    100%{
            background-color: #cbc9bb;
    }
}
.box div.one{
        animation: outofservice 0.75s ease-in forwards;
}

.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;
    flex-grow: 100;

}

div#five{
    display: grid;
    height: max-content;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    
}
div.innersquare{
    aspect-ratio: 1/1;
    margin: 0;
    padding: 0;
    background-color: #827e68;
}

div.line{
    transition: 0.75s;
}

div.line:hover{
    border: 0.4rem solid #8e8e8e;;
}


div.hor{
    height: 0;
    border: 0.4rem solid ;
    margin: 0;
}


div.ver{
    width:0%;
    border: 0.4rem solid;
}

div.flexbox{
    width: 100%;
    aspect-ratio: 1/1;
    align-items: stretch;
    display: flex;
    flex-direction: row;

}

div.turnindicator{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

div.player{
    width: min(5vw,3rem);
    height: min(5vw,3rem);
    aspect-ratio: 1/1;
    border-radius: 50%;
    transition: 0.75s;
    margin:2%;
}
div.cpu{
    width: min(5vw,3rem);
    height: min(5vw,3rem);
    aspect-ratio: 1/1;
    border-radius: 50%;
    transition: 0.75s;
    margin:2%;
}


div.player.on{
    background-color: rgb(239, 242, 107);
}
div.player.off{
    background-color: rgb(169, 170, 79);
}

div.cpu.on{
    background-color: rgb(114, 212, 248);
}
div.cpu.off{
    background-color: rgb(73, 138, 161);
}