* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Balsamiq Sans', cursive;
    text-shadow: 3px 3px 3px #000000;
}

body {
    background-image: url("img/amoungUs2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    min-height: 100vh;
}

#audio {
    position: absolute;
    height: 150px;
    width: 150px;
    bottom: 15px;
    left: 15px;
}

#startMenu {
    background-image: url("img/menubackground.png");
    height: 100%;
    width: 100%;
    position: absolute;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
}

#gameBoard {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
    top: 65px;
    left: 385px;
    position: absolute;
}

.memoryCard {
    position: absolute;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.memoryCard:active {
    transform: scale(0.97);
    transition: transform .15s;
}

.memoryCard.flip {
    transform: rotateY(180deg);
}

.frontFace,
.backFace {
    width: 100%;
    height: 100%;
    padding: 10%;
    position: absolute;
    border-radius: 5px;
    background: black;
    backface-visibility: hidden;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;

}

.frontFace {
    transform: rotateY(180deg);
}

#tracker {
    position: absolute;
    top: 48px;
    left: 70px;
    width: 250px;
    height: 500px;
    margin-top: 5px;
    border-radius: 20px;
    box-shadow: 15px 15px 10px #00000055;
    backdrop-filter: blur(35px) brightness(90%);
}

#attempts {
    margin-top: 10px;
    height: 125px;
    text-align: center;
    font-size: 25px;
    color: white;
}

#attemptsText {
    margin-top: 5px;
    height: 15px;
    text-align: center;
    font-size: 55px;
    color: white;
}

#time {
    height: 125px;
    text-align: center;
    margin-top: 50px;
    font-size: 25px;
    color: white;
}

#timePassedText {
    margin-top: 5px;
    height: 15px;
    text-align: center;
    font-size: 55px;
    color: white;
}

#matchesFound {
    margin-top: 50px;
    height: 125px;
    text-align: center;
    font-size: 25px;
    color: white;
}

#matchesFoundText {
    margin-top: 5px;
    height: 15px;
    text-align: center;
    font-size: 55px;
    color: white;
}

.menubuttons {
    position: absolute;
    display: inline-block;
    padding: 12px 36px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 2px;
    border-radius: 40px;
    width: 400px;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0px 17px 10px -10px rgba(0, 0, 0, 0.4);
    transition: .2s;
    cursor: pointer;
}

.menubuttons:hover {
    box-shadow: 15px 15px 10px #00000055;
    -moz-box-shadow: 15px 15px 10px #00000055;
    -webkit-box-shadow: 15px 15px 10px #00000055;
    -khtml-box-shadow: 15px 15px 10px #00000055;
}

#playbutton {
    background: linear-gradient(90deg, #0162c8, #55e7fc);
    top: 40%;
    left: calc(50% - 200px);
}

#levelbutton {
    background: linear-gradient(90deg, #1D976C, #93F9B9);
    top: 50%;
    left: calc(50% - 200px);
}

#levelSelector {
    position: absolute;
    width: 600px;
    height: 400px;
    top: calc(50% - 200px);
    left: calc(50% - 300px);
    backdrop-filter: blur(35px) brightness(90%);
    box-shadow: 15px 15px 10px #00000055;
    border-radius: 20px;
}

#endMenu {
    position: absolute;
    width: 600px;
    height: 400px;
    top: calc(50% - 200px);
    left: calc(50% - 300px);
    backdrop-filter: blur(35px) brightness(90%);
    box-shadow: 15px 15px 10px #00000055;
    border-radius: 20px;
}

#homeButton {
    background: linear-gradient(45deg, #8A2387, #E94057, #F27121);
    left: 100px;
    bottom: 40px;
    height: 50px;
    width: 50px;
    position: absolute;
    border-radius: 200px;
    backdrop-filter: blur(35px) brightness(90%);
    box-shadow: 15px 15px 10px #00000055;
    cursor: pointer;
}

#forwardButton {
    background: linear-gradient(45deg, #1D976C, #93F9B9);
    right: 100px;
    bottom: 40px;
    height: 50px;
    width: 50px;
    position: absolute;
    border-radius: 200px;
    backdrop-filter: blur(35px) brightness(90%);
    box-shadow: 15px 15px 10px #00000055;
    cursor: pointer;
}

#replayButton {
    background: linear-gradient(45deg, #0162c8, #55e7fc);
    left: calc(50% - 10px);
    bottom: 40px;
    height: 50px;
    width: 50px;
    position: absolute;
    border-radius: 200px;
    backdrop-filter: blur(35px) brightness(90%);
    box-shadow: 15px 15px 10px #00000055;
    cursor: pointer;
}

#lvlComplete {
    color: white;
    position: absolute;
    top: 60px;
    width: 100%;
    text-align: center;
    font-size: 65px;
}

#lvlTime {
    color: white;
    position: absolute;
    top: 180px;
    right: 50%;
    font-size: 35px;
}

#lvlFlipped {
    color: white;
    position: absolute;
    top: 230px;
    right: 50%;
    font-size: 35px;
}

#lvlTime2 {
    color: white;
    position: absolute;
    top: 180px;
    left: 51.7%;
    font-size: 35px;
}

#lvlFlipped2 {
    color: white;
    position: absolute;
    top: 230px;
    left: 51.7%;
    font-size: 35px;
}

.levels {
    position: absolute;
    width: 50px;
    height: 55px;
    backdrop-filter: blur(35px) brightness(90%);
    box-shadow: 15px 15px 10px #00000055;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
}

#lvltext {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 10px;
    font-size: 25px;
    color: white;
    text-shadow: 4px 4px #000000;
}

#level1 {
    top: 150px;
    left: 65px;
    background: linear-gradient(90deg, #f12711, #f5af19);
}

#level2 {
    top: 150px;
    left: 195px;
    background: linear-gradient(90deg, #fffc00, #FBD786);

}

#level3 {
    top: 150px;
    left: 325px;
    background: linear-gradient(90deg, #dbd65c, #5614b0);
}

#level4 {
    top: 150px;
    left: 455px;
    background: linear-gradient(90deg, #755bea, #ff72c0);
}

#level5 {
    top: 300px;
    left: 65px;
    background: linear-gradient(90deg, #c779d0, #4bc0c8);
}

#level6 {
    top: 300px;
    left: 195px;
    background: linear-gradient(90deg, #0162c8, #55e7fc);
}

#level7 {
    top: 300px;
    left: 325px;
    background: linear-gradient(90deg, #1D976C, #93F9B9);
}

#level8 {
    top: 300px;
    left: 455px;
    background: linear-gradient(90deg, #70e1f5, #ffd194);
}


#backButton {
    position: absolute;
    background-image: url("img/home.png");
    background: linear-gradient(90deg, #bdc3c7, #2c3e50);
    width: 50px;
    height: 55px;
    top: 35px;
    left: 60px;
    border-radius: 20px;
    backdrop-filter: blur(35px) brightness(90%);
    box-shadow: 15px 15px 10px #00000055;
    cursor: pointer;
}

#levelSelectorText {
    position: absolute;
    font-size: 25px;
    text-align: center;
    left: 150px;
    top: 55px;
    height: 100px;
    border-radius: 20px;
    letter-spacing: 15px;
    color: white;
}