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

    }
}

@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: name-end / 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(10vw, 10rem);
    }
}

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 {
    grid-column: col-grid-start / col-final;
    text-wrap: nowrap;
    grid-row: grid-row;
    font-weight: 200;
    font-style: italic;
    font-size: min(10vw, 3rem);
    align-self: start;
    justify-self: start;
    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 {
    aspect-ratio: 1 / 1;
    height: max-content;
    width: auto;
    border: solid;

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

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

.box div.opp{
    background-color: rgb(100, 192, 225) !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 div.square:hover{
    background-color: #8e8e8e;
}


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

}


.hidden{
    opacity: 0%;
}