:root {
    --clr-bg: #fff;
    --clr-text: #000;
    --clr-grey-1: #292929;
    --clr-grey-2: rgb(236, 236, 236);
    --clr-grey-3: rgb(224, 224, 224);
    --clr-black: #000;
    --clr-white: #fff;
    --clr-1: #1a4f7a;
    --clr-2: #6f67a2;
    --clr-3: #6892c2;
    --clr-4: #b3dcff;
    --clr-5: #e687b9;
    --clr-1-dark: #143e61;
    --ff-1: "Open Sans", sans-serif;
    --ff-2: "Roboto", sans-serif;
    --red: #b00000;
    --green: #01bd4d;
    --blue: #003289;
    --yellow: #ffc500;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    font-family: var(--ff-2);
}

.main {
    width: 60vw;
    height: calc(60vw * (5 / 7));
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    position: absolute;
    margin: auto;
    inset: 0;
    transition: all 0.5s ease;
}

.main > .field {
    width: 1fr;
    aspect-ratio: 1/1;
    border: 5px solid var(--clr-1);
    color: var(--clr-1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    transform: scale(0.95);
}

.logo {
    width: 100vw;
    position: fixed;
    left: 0;
    top: 0;
    display: block;
    inset: auto;
}

.logo img {
    position: fixed;
    padding: 2rem;
    width: 8rem;
    left: 0;
    top: 0;
}

.resolutionError {
    font-size: 3rem;
    text-align: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

.main > .centerSquare {
    aspect-ratio: 5/3;
    width: 5fr;
    grid-row: 2 / span 3;
    grid-column: 2 / span 5;
}

.red {
    position: absolute;
    width: calc(60vw / 25);
    margin-left: calc(60vw / 100);
    margin-top: calc(60vw / 100);
    display: none;
}

.green {
    position: absolute;
    width: calc(60vw / 25);
    margin-left: calc(60vw / 11);
    margin-top: calc(60vw / 100);
    display: none;
}

.yellow {
    position: absolute;
    width: calc(60vw / 25);
    margin-left: calc(60vw / 100);
    margin-top: calc(60vw / 11);
    display: none;
}

.blue {
    position: absolute;
    width: calc(60vw / 25);
    margin-left: calc(60vw / 11);
    margin-top: calc(60vw / 11);
    display: none;
}

.centerSquare {
    position: relative;
}

.dice {
    width: calc(60vw / 15);
    height: calc(60vw / 15);
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 5px solid black;
    background-image: url("kostky/5.png");
    background-size: 100%;
}

.dice:hover {
    box-shadow: 0px 0px 20px 10px rgb(206, 206, 206);
}

.nextturn {
    text-align: center;
    padding: 2rem;
    font-size: 3rem;
    color: var(--red);
}

.popup {
    position: absolute;
    margin: auto;
    width: 50vw;
    height: 30vw;
    inset: 0;
    background-color: var(--clr-white);
    border: 20px solid var(--clr-1);
    overflow: hidden;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup > span {
    width: 100%;
}

.popup .win {
    display: none;
}

.popup .question {
    display: none;
}

.popup .sentence {
    font-size: 3rem;
    text-align: center;
    padding: 0 3rem;
}

.popup .sentence .between {
    width: 8rem;
    display: inline-block;
    border-bottom: 5px solid black;
}

.popup .figure {
    position: absolute;
    padding: 2rem;
}

.popup .img {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 20%;
    margin: 1rem;
}

.popup .answers {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 3rem;
}

.popup .answers button {
    background-color: lightgray;
    border: none;
    margin: 1rem;
    color: var(--clr-white);
    padding: 1rem;
    font-size: 3rem;
}

.popup .answers .hoverable {
    background-color: var(--clr-1);
}

.popup .answers .hoverable:hover {
    cursor: pointer;
    transform: translate(-0.3rem, -0.3rem);
    box-shadow: 0.3rem 0.3rem 0px 0px black;
}

.popup .pick .choices {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 3rem;
}

.popup .pick .choices button {
    background-color: var(--clr-1);
    border: none;
    margin: 1rem;
    color: var(--clr-white);
    padding: 1rem;
    font-size: 3rem;
}

.popup .pick .choices button:hover {
    cursor: pointer;
    transform: translate(-0.3rem, -0.3rem);
    box-shadow: 0.3rem 0.3rem 0px 0px black;
}

.popup .win .sentence {
    padding-top: 4rem;
}

.popup .win .choices {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 3rem;
}

.popup .win .choices button {
    background-color: var(--clr-1);
    border: none;
    margin: 1rem;
    color: var(--clr-white);
    padding: 1rem;
    font-size: 3rem;
}

.popup .win .choices button:hover {
    cursor: pointer;
    transform: translate(-0.3rem, -0.3rem);
    box-shadow: 0.3rem 0.3rem 0px 0px black;
}

.projekt {
    position: absolute;
    bottom: 0;
    transform: translate(-50%, 100%);
    left: 50%;
    text-align: center;
    padding-top: 2rem;
}

.license {
    margin-bottom: 2rem;
    line-height: 1.5rem;
}
