.memory-game {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    perspective: 1000px;
}

.memory-game.hidden {
    width: 450px;
    height: 550px;
}

.memory-game.visible {
    width: 450px;
    height: 550px;
}

.memory-card {
    width: calc(25% - 10px);
    height: calc(25% - 10px);
    margin: 5px;
    position: relative;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: transform .5s;
    border-radius: 8px;
 
}

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

.memory-card.matched {
    opacity: 0;
    transition: opacity 0.5s;
}

.front-face,
.back-face {
    position: absolute;
    border-radius: 5px;
}

.front-face {
    width: 100%;
    height: 100%;
}

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

.back-face {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

#reload-button {
    font-size: 20px;
}























.navbar {
    border-radius: 5px;
    background:rgb(197, 190, 134);
    border: 2px solid black;
    height: 50px;
    margin-left: 10%;
    margin-right: 10%;
    overflow: visible;
}

.navbar>.nav-item {
    float: right;
    display: block;
    text-align: center;
    padding: 14px 20px;
    height: 100%;
}

.navbar>.nav-item>a,
.navbar>.nav-item {
    text-decoration: none;
    color: black;
}

.navbar>.nav-item>a:hover {
    text-decoration: underline;
}

.navbar>.nav-item.left {
    float: left;
}



.dropdown {
    float: right;
}

.dropdown .dropbtn {
    border-radius: 15px;
    font-size: 16px;
    border: none;
    outline: none;
    padding: 14px 16px;
    background-color:inherit;
    margin: 0;
}



.dropdown-content {
    display: none;
    position: absolute;
    background: transparent;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    text-decoration: underline;
    transform: scale(1.5);
	transition: all 0.8s ease;
}



.dropdown:hover .dropdown-content {

    border-radius: 15px;
    display: block;
}

.start-game:hover {
    text-decoration: underline;
}