#page2 {
    padding-top: 100px;
    height: 100vh;
}

/* Tiles  */
#tiles {
    margin-left: auto;
    margin-right: auto;
    max-width: 400px;
    position: relative;
    min-height: 500px;
}

.tile {
    border: 1px grey solid;
    padding: 2px;
    float: left;
    margin: 5px;
    height: 100px;
    width: 100px;
}

#tiles-main {
    width: 250px;
}

#tiles-controls input {
    width: 100px;
    margin: 20px;
    float: none;
    display: block;
}

.tile:hover {
    border: 2px solid black;
}

.tile img {
    width: 100%;
    overflow: hidden;
}

/* Memory game */

#memory-game {
    padding-top: 100px;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
    position: relative;
    padding: 20px 0;
}

#memory-game div.controls {
    clear: both;
    width: 100%;
}

#memory-game div.controls .new-game {
    width: 100%;
} 

#stepsCounter{
    margin-left: auto;
    margin-right: auto;
}

.game {
    min-height: 100%;
    height: 100%;
}

.card {
    border: 2px solid black;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.637);
    margin: 16px;
    width: 100px;
    height: 100px;
    float: left;
    text-align: center;
    display: block;
    cursor: pointer;
}

.card img {
    width: 90px;
    visibility: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}