html,body,div,span,h1,h2,a,img,table,tbody,thead,tr,th,td,section {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

body {
    font-family: monospace, Arial, Helvetica, sans-serif;
}

h1 {
    text-align: center;
    font-size: 2em;
    padding: 0.6em;
}

h2 {
    text-align: center;
    font-size: 1.6em;
    padding-bottom: 20px;
    color: #6CC65A;
    font-weight: bold;
}

.no-selection {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.logo {
    max-height: 80px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.game-board {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    background-color: #FFFFFF;
    border-radius: 7px;
}

.game-grid-row {
    display: flex;
    flex-wrap: nowrap;
}

.game-card {
    width: 80px;
    height: 100px;
    margin: 0.5em;
    cursor: pointer;
}

.disabled {
    pointer-events: none;
}

.game-card-img {
    object-fit: cover;
    width: 80px;
    height: 100px;
    border-radius: 7px;
    visibility: inherit;
}

.card-wrapper {
    display: inline-block;
    width: 80px;
    height: 100px;
    perspective: 150px;
}

.card {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: 1px solid;
    border-radius: 7px;
    transform-style: preserve-3d;
    transform-origin: center right;
    transition: transform 1s;
}

.card.is-flipped {
    transform: translateX(-100%) rotateY(-180deg);
}

.card-side {
    position: absolute;
    width: 100%;
    height: 100%;
    text-align: center;
    backface-visibility: hidden;
}

.card-side-back {
    transform: rotateY(-180deg);
}

.overlay-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "cont-image cont-text";
    background-color: black;
    padding: 35px;
    width: 50%;
    height: 50%;
    grid-auto-flow: dense;
    animation: fadeIn 0.5s linear;
    position: relative;
    overflow: auto;
}

#overlay {
    position: fixed;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    overflow-y: scroll;
}

#overlay.active {
    justify-content: center;
    align-items: center;
    display: flex;
}

.container-book-list {
    grid-area: cont-image;
    display: block;
    align-items: baseline;
    justify-content: center;
    padding: 0;
    max-width: 100%;
    max-height: 100%;
    margin-top: 0px;
}

.container-book-list img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    -webkit-max-logical-height: -webkit-fill-available;
    margin-left: auto;
    margin-right: auto;
}

#overlay-container.fullOverlay {
    display: block;
    height: inherit;
    margin-top: auto;
    max-height: 90%;
}

.close {
    position: absolute;
    top: -15px;
    right: 0px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.2s ease-in-out;
    opacity: 50%;
    padding: 5px;
}

.close:hover {
    opacity: 100%;
    cursor: pointer;
}

.list-title a {
    color: white;
}

.list-image {
    max-width: 80px;
    display: block;
    padding: 10px;
}

.list-book {
    display: flex;
    align-items: center;
}


