* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
}

body {
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
}

.cm-flex-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.square-wrapper {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid: 33% / auto auto auto;
    grid-gap: 10px;
}

.square {
    border: 2px solid brown;
    margin: 4px;
    padding: 16px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff9ed;
    cursor: url('images/cursor.png'), pointer;
}

.square img {
    transition: transform 0.3s;
    transform: translateY(200%);
}

.square.mole img {
    transform: translateY(0);
}

.square.mole {
    transition: all .3s;
}

.square.mole:active {
    background-color: rgba(255, 0, 0, .25);
}

.square.mole:active img {
    transform: scale(0.85);
}

.overlay {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1030;
}

.box-shadow {
    box-shadow: 0 0 10px rgba(0, 0, 0, .125);
}

@media only screen and (max-width: 1300px) and (max-height: 700px){
    .square-wrapper{
        max-width: 380px;   
    }
}