body, html {
    margin: 0;
    padding: 0;
    background-color: #0f0d14;
}

* {
    color: #fff;
    font-family: system-ui,-apple-system,BlinkMacSystemFont,Segoe UI, Helvetica Neue,Helvetica,Arial,sans-serif;
    -webkit-font-smoothing: antialiased;
}

div#app {
    height: 100%; /* 100vh; */
    width: 100%; /* 100vw */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

div#game {
    width: 90vw;
    height: 90vw;
    background-color: #1b1824;
    display: grid;
    grid-template: repeat(3, 1fr) / repeat(3, 1fr);
    border: 4px solid #5139da;
    border-radius: 5px;
}

div#game > div {
    color: #5139da;
    border: 4px solid #5139da;
    font-family: Helvetica;
    font-weight: bold;
    font-size: 4em;
    display: flex;
    justify-content: center;
    align-items: center;
}

div#game[disabled] {
  pointer-events: none;
  opacity: 0.7;
}

div#game > div[disabled] {
    pointer-events: none;
}

@media (min-width: 600px){
    div#game {
        width: 600px;
        height: 600px;
    }
}

div#app > div.start {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

div#app > div.start > h1{
    margin-bottom: 50px;
}

input#name {
    outline: none;
    border: none;
    background: #1b1b1b;
    height: 50px;
    width: 70%;
    padding-left: 20px;
    border-radius: 5px;
    font-size: 15pt;
    color: #ffffff;
}

button {
    cursor: pointer;
    margin-top: 20px;
    border: none;
    outline: none;
    height: 50px;
    width: calc(70% + 20px);
    background:#5139da;
    color: #fff;
    border-radius: 5px;
    font-size: 15pt;
}

canvas#confetti {
    position: absolute;
    height: 100vh;
    width: 100vw;
}

div.back {
    display: flex;
    flex-direction: column;
}

button.backm {
    align-self: center;
    background:#9a39da;
    width: 250px;
}

 /* Style the Image Used to Trigger the Modal */
#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999999; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 300px; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: auto;
}

/* Add Animation - Zoom in the Modal */
.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        
    }
} 

.start button { text-align: left; padding-left: 20px }

@media only screen and (max-width: 599px) {
#game { margin-bottom:0;padding:0;left: 50%; margin-left: -45vw; position: absolute; }
}

@media only screen and (min-width: 600px){
#game { margin-bottom:0;padding:0;left: 50%; margin-left: -300px; position: absolute; }
}

#gm { width: 100%; margin-top: 20px; text-align: center; justify-content: center }
