* {
    margin: 0;
    padding: 0;
}

.gameWindow {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-image: url('images/background.png');
    background-size: cover;
    height: 100vh;
}

.UI {
    display: flex;
    flex-direction: column;
    width: 59%;
    margin-top: 60px;
}

.scoreContainer {
    display: flex;
    flex-direction: row;
}

h3 {
    margin: 5px;
    padding: 5px;
    background-color: #fff;
    border-radius: 5px;
    text-align: center;
}

.scoreContainer h3 {
    width: 50%;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 428px;
    max-height: 100%;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

img {
    pointer-events: auto;
    border: #000 solid 1px;
    border-radius: 5px;
    margin: 2px;
}

img:hover {
    opacity: 0.9;
}

/* This is to prevent selecting and dragging objects by error */
body{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}


/* dialog boxes*/

#dialogBoxOverlay {
    display: none;
    opacity: 0.8;
    position: fixed;
    top: 0px;
    left: 0px;
    background: #fff;
    width: 100%;
    z-index: 10;
}

#dialogBox {
    display: none;
    position: fixed;
    border-radius: 5px;
    background: #05ed05;
    width: 350px;
    z-index: 10;
}

#dialogParent {
    margin: 3px;
}

#dialogBoxBody {
    background: #000;
    padding: 20px;
    color: #05ed05;
    text-align: center;
}

#dialogBoxFoot {
    background: #666;
    padding: 5px;
    text-align: center;
}

#okButton {
    border: 1px solid #05ed05;
    border-radius: 5px;
    width: 15%;
    background-color: #000;
    color: #05ed05;
    padding: 3px;
}

@media only screen and (max-width: 480px) {
    img {
        max-width: 80px;
    }

    img:hover {
        opacity: 1;
    }

    .UI {
        width: 90%;
        margin-top: 10px;
    }

    #okButton {
        width: 30%;
    }

    #dialogBox {
        left: 5%;
    }

    .grid {
        margin-top: 10px;
    }
}