* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    background-color: #c21805;
}

img {
    width: 100px;
    height: 100px;
}

.board {
    width: 640px;
    height: 640px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    border: 2px solid black;
    perspective: 1000px;
}

.gcard {
    width: calc(25% - 10px);
    height: calc(33.33% - 10px);
    position: relative;
    margin: 5px;
    transform: scale(1);
    transform-style: preserve-3d;
    transition: .5s;
}

.gcard:active {
    transform: scale(.97);
    transition: transform .2s;
}
.gcard.flip {
    transform: rotatey(180deg);
}

.front, .back {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: orange;
    border: 2px solid crimson;
    backface-visibility: hidden;
}

.back {
    transform: rotateY(180deg);
}
/*-------------------------nav--------------------*/
.container {
    /*row = vertical*/
    /*coloumn = horizontal*/
    display: grid;
    grid-template-columns: 20% 20% 20% 20% 20% 20% 20% 20% 20% 20%;
    grid-template-rows: 20% 20% 20% 20% 20% 20%;
    justify-content: space-evenly;
}

.navbar {
    width: 70%;
    grid-row: 1/1;
    grid-column: 4/7;
    margin-left: 8px;
    margin-top: 20px;
    justify-self: center;
    position: fixed;
    z-index: 2;
}
a, p {
    font-family: "math";
    color: rgb(34, 168, 232);
}
ul.nav {
    padding: 0;
    background-color: rgba(0, 0, 0, 0);
    list-style: none;
    height: 36px;
    line-height: 36px;
    font-size: 15px;
    display: flex;
    justify-content: center;
    margin-right: 13px;
}


ul.nav li {
    border-right: 10px;
}
p.navbar-brand {
    display: grid;
    padding: 0 28px;
    color: #ffffff;
    text-decoration: none;
    justify-content: left;
}

ul.nav a {
    display: grid;
    padding: 0 28px;
    text-decoration: none;
    margin-top: -10px;
    border-radius: 10px;
    color: rgb(194 232 250);
}

.dropdown {
    position: relative;
    display: inline-grid;
}

.dropdown-content {
    display: grid;
    padding: 2px;
    /*justify-content: flex-end;*/
    position: absolute;
    /*background-color: #f9f9f9;*/
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0);
    /*z-index: 1;*/
    transform: translateY(100%);
}

.ddc1, .ddc2, .ddc3 {
    margin-left: 213px;
}

#myDropdown {
    cursor: pointer;
    color: white;
    background-color: rgba(255, 255, 255, 0);
    text-decoration: none;
}
.dropdown-content, a {
    margin-top: -55px;
}
ul.nav a:hover,
ul.nav li.current a, .contactBtn:hover {
    background: #5500ff;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: grid;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.show {
    display: grid;
}
