html, body, main {
    position: relative;
    display: flex;
}
html, body {
    background-color: #303030;
    width: 100%;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
.notify {
    position: absolute;
    top: 0;
    width: 60%;
    height: 20px;
    background-color: lightseagreen;
    color:navy;
    text-align: center;
    display: none;
    justify-content: center;
    align-items: center;
    transition: ease-in-out 0.2s;
}
.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    background: none;
    border-radius: 0 0 8px 0;
    border: none;
}
.menu.active {
    box-shadow: inset -5px -5px 3px rgba(189, 183, 107, 0.1);
}
.menu span {
    position: relative;
    display: flex;
    justify-content: center;
    width: 40px;
    height: 2px;
    margin: 12px auto;
    background-color: darkkhaki;
}
h1, h2 {
    color: silver;
}
h1 {
    position: absolute;
    top: 25px;
}
h1 a {
    position: relative;
    color: silver;
    text-decoration: none;
    cursor: pointer;
    z-index: 100;
}
h1 a:visited {
    color: silver;
}
.about {
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 40%;
    height: calc(100% - 65px);
    background-color: #303030;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: justify;
    border-right: solid 1px silver;
    margin: 0 auto;
    z-index: 10;
}
.about.active {
    display: flex;
}
.about p {
    width: 90%;
}
.separator {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: silver;
}
.separator hr {
    width: 35%;
}
.welcome {
    font-size: x-large;
    font-weight: 600;
    font-style: italic;
}
.contact {
    position: relative;
    margin-top: 20vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 80px;
}
.github, .email {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 45%;
}
.github a {
    background-color: #8a8a8a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.github p,
.email p {
    font-size: 0.8rem;
    text-align: center;
}
.email img {
    width: 40px;
    height: 40px;
}
main {
    position: absolute;
    bottom: 20vh;
    height: 50vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
}
.game {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.game div{
    background-color: darkkhaki;
    border: solid 2px #303030;
    width: 100px;
    height: 100px;
}

#d1, #d2, #d3 {
    border-top-width: 0;
    padding-top: 2px;
}
#d1, #d4, #d7 {
    border-left-width: 0;
    padding-left: 2px;
}
#d3, #d6, #d9 {
    border-right-width: 0;
    padding-right: 2px;
}
#d7, #d8, #d9 {
    border-bottom-width: 0;
    padding-bottom: 2px;
}
p {
    color: silver;
}
#msg {
    color: silver;
    height: 80px;
    margin: 5px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#msg p {
    margin-top: 0;
}
.create-game {
    width: 60%;
    height: 40px;
    background-color: lavenderblush;
    border: none;
    border-radius: 12px;
    color: navy;
    font-size: 22px;
    transition: ease-in-out 0.4s;
}

footer {
    position: fixed;
    bottom: 0;
    width: 90%;
    height: 60px;
    color: silver;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 20px;
    font-family: sans-serif;
}

footer a {
    color: darkkhaki;
    font-weight: 600;
}

footer a:visited {
    color: darkkhaki;
}

/* Desktop Version */
@media screen and (min-width: 769px) {
    .game {
        max-width: calc((100px + (3px * 2)) * 3);
        max-height: calc((100px + (3px * 2)) * 3);
    }
    #invite span {
        color: darkkhaki;
        text-decoration: underline;
    }
    .share {
        display: flex;
        justify-content: space-around;
    }
    .share button {
        width: auto;
        height: 40px;
        background: none;
        border: none;
        transition: ease-in-out 0.4s;
    }
    .share button:hover {
        transform: scale(1.1);
    }
}

/* Mobile Version */
@media screen and (max-width: 768px) {
    body {
        overflow: hidden;
    }
    .notify {
        height: 40px;
        width: 75%;
        z-index: 10;
    }
    h1 {
        font-size: 1.5rem;
        top: 15px;
    }
    .about.active {
        position: absolute;
        top: 65px;
        width: 70%;
        height: auto;
        padding-bottom: 120px;
        overflow: scroll;
    }
    main {
        height: calc(100vh - 35vh);
        overflow: scroll;
    }
    .game {
        max-width: calc((90px + (2px * 2)) * 3);
        max-height: calc((90px + (2px * 2)) * 3);
    }
    .game div{
        background-color: darkkhaki;
        border: solid 2px #303030 !important;
        width: 90px;
        height: 90px;
    }
    #d1, #d2, #d3 {
        /* border-top-width: 0; */
        padding-top: 0;
    }
    #d1, #d4, #d7 {
        /* border-left-width: 0; */
        padding-left: 0;
    }
    #d3, #d6, #d9 {
        /* border-right-width: 0; */
        padding-right: 0;
    }
    #d7, #d8, #d9 {
        /* border-bottom-width: 0; */
        padding-bottom: 0;
    }
    #invite {
        display: grid;
        grid-template-columns: 3fr 1fr 1fr;
        /* flex-direction: row; */
        /* justify-content: space-between; */
        align-items: center;
    }
    #invite p {
        font-size: 1rem;
        text-align: left;
    }
    #invite span {
        color: darkkhaki;
        text-decoration: underline;
    }
    .share {
        display: flex;
        justify-content: space-around;
    }
    .share button {
        width: auto;
        height: 40px;
        background: none;
        border: none;
        transition: ease-in-out 0.4s;
    }
    .share button:hover {
        transform: scale(1.1);
    }
}