
body {
    display: flex;
    flex-direction: column;
    background-image: var(--dottedBackground);
    background-size: var(--dottedBackgroundSize);
    width: 100vw;
}

.kl-logo {
    width: 50px;
}

main {
    margin-left: 5vw;
    margin-right: 5vw;
    padding: 2vw;
    display: flex;
    flex-basis: 50vw;
    margin-bottom: 5vw;
    flex-direction: column;
}

.wrapperNav {
    display: flex;
    width: 100%;
    font-family: var(--fontCarl);
}
.gameInfo {
    flex-basis: 20vw;
    font-size: 1.8vw;
    display: flex;
    justify-content: center;
}

.headTime {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
h1 {
    margin-bottom: 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3vw;
}
.time {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5vw;
}

.topList {
    flex-grow: 1;
    font-size: 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
/*
.list {
    width: 15vw;
}*/

/*---style för flipcardMovingGame----*/
.gameGrid {
    width: 100%;
    border: 1px solid black;
    height: 50vw;
    display: grid;
}

.flipCardGame {
    width: 10vw;
    height: 12vw;
    grid-area: 1 / 1 / 1 / 1;
}
.flipCardGame:hover {
    cursor: pointer;
}

.flipCardInnerGame {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform .5s;
    transform-style: preserve-3d;
}
.flipCardFrontGame, .flipCardBackGame {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}
.flipCardBackGame {
    transform: rotateY(180deg);
}

/*--style för startBox--*/

.hidden {
    display: none;
}

.visible {
    display: flex;
}

.startBg, .endBg {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, .7);
    z-index: 5;
    left: 0px;
    top: 0%;
    position: fixed;
    justify-content: center;
    align-items: center;
}

.startBox, .endBox {
    background-color: lightgray;
    color: gray;
    width: 60vw;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Roboto Condensed', sans-serif;
}


.startBox p {
    margin: 2vh;
    font-family: var(--fontStixReg);
}

.startBox button, .endBox > button {
    padding: 1vw;
}

.endBox {
    text-align: center;
}

.hiScoreBox, .listBox {
    margin-bottom: 3vh;
}

.hiScoreBox h2 {
    margin-bottom: 1vh;
}

.hiScoreBox button {
    padding: .5vw;
    margin-left: 2vw;
}

.hiScoreBox input {
    height: 4vh;
    text-align: center;
}

.hiScoreBox {
    flex-direction: column;
    align-items: center;
}
.listBox div {
    margin: 1vh;
}

.listBox span {
    margin-right: 2vw;
}

.listBox div span:nth-of-type(2) {
    margin-right: 1vw;
}