* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    height: 10vh;
    display: flex;
}

body {
    font-family: 'Lobster', sans-serif;
}

.title {
    font-size: 40px;
    letter-spacing: .2rem;
    margin: auto;
}

.main {
    height: 85vh;
    display: flex;
    flex-direction: row-reverse;
    background-color: #b4b6b8;
    justify-content: center;
    /* align-items: center; */
}

.gamers-rating {
    width: 20%;
    height: fit-content;
    margin: 70px 29px 0px 15px;
    line-height: 30px;
}

.rating {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: start;
}


/* li {
    height: calc(10% - 4px);
    margin: 1px;
} */

.memory-game {
    width: 650px;
    height: 650px;
    margin: auto;
    display: flex;
    /* flex-direction: row;
    flex-wrap: wrap; */
    flex-flow: row wrap;
    perspective: 1000px;
}

.memory-card {
    width: calc(25% - 10px);
    height: calc(33.333% - 10px);
    margin: 5px;
    transform: scale(1);
    position: relative;
    transition: transform 0.5s;
    transform-style: preserve-3d;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, .3);
}

.memory-card.flip {
    transform: rotateY(180deg);
}

.memory-card:active {
    transform: scale(0.97);
    transition: transform 0.2s;
}

.front-face,
.back-face {
    width: 100%;
    height: 100%;
    padding: 20px;
    position: absolute;
    border-radius: 5px;
    background-color: #dce0e4;
    backface-visibility: hidden;
    /* opacity: 0.5; */
}

.front-face {
    transform: rotateY(180deg);
}

.hidden-elm {
    display: none;
}

.pop-result {
    top: 20%;
    background: rgb(0, 0, 0);
    position: fixed;
    width: 500px;
    height: 500px;
    max-height: 90%;
    max-width: 90%;
    border-radius: 5%;
}

.winner {
    margin-top: 90px;
    font-size: 70px;
    text-align: center;
    color: #ffffff;
    text-shadow: 0px 3px 0 rgb(107, 107, 107);
}

.result {
    font-size: 20px;
    text-align: center;
    margin-top: 40px;
    color: #4d4d4d;
}

.restart {
    margin: 50px auto;
    padding: 20px 30px;
    display: block;
    font-size: 30px;
    background: #4d4d4d;
    background: linear-gradient(#4d4d4d, #222);
    border: 1px solid #222;
    border-radius: 5px;
    color: white;
    text-shadow: 0px 1px 0 black;
    cursor: pointer;
}

.restart:hover {
    background: linear-gradient(#c5c5c5, black);
}

footer {
    height: 5vh;
    display: flex;
    justify-content: space-around;
}

.git-links {
    display: flex;
    align-items: center;
}

.git-link {
    padding-right: 20px;
    color: black;
    font-family: 'Lobster', sans-serif;
}

.github-link {
    color: black;
    text-decoration: none;
    padding: 0 20px;
    transition: .3s;
    font-family: 'Lobster', sans-serif;
    font-size: 20px;
}

.github-link:hover {
    color: #9e892a;
    transform: scale(1.2);
}

.school-link {
    width: 100px;
    height: 50px;
    filter: brightness(0) saturate(100%) invert(0%) sepia(84%) saturate(7500%) hue-rotate(334deg) brightness(85%) contrast(88%);
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url("./assets/svg/rss.svg");
    transition: .3s;
}

.school-link:hover {
    filter: invert(50%) sepia(11%) saturate(2348%) hue-rotate(12deg) brightness(104%) contrast(89%);
}