body {
    text-align: center;
    margin: auto;
}
#equations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.card {
    display: inline-block;
    margin: 10px;
    position: relative;
    transition: 0.3s;
    border-radius: 10px;
    box-shadow: 0px 0px 6px var(--shadow-color);
    overflow: hidden;
    padding: 0;
    background-color: var(--third-color);
    width: 155px;
    height: 220px;
    overflow-y: hidden;
}

.card:hover {
    scale: 1.08;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0px 0px 15px var(--shadow-color);
}

.card img {
    display: inline-block;
    width: 155px;
    height: 155px;
    z-index: 9;
    margin: 0;
    padding-bottom: 0;
    object-fit: cover;
}

.card figcaption {
    display: flex;
    color: var(--figcaption-color);
    z-index: 10;
    transition: 0.3s;
    opacity: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 20px;
    margin: 0;
    padding-bottom: 8px;
    padding-top: 4px;
}

.card:hover figcaption {
    color: var(--hover-color);
    scale: 1.15;
}

.topEquationsCard {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 10px;
    position: relative;
    transition: 0.3s;
    border-radius: 6px;
    box-shadow: 0px 0px 6px var(--shadow-color);
    overflow: hidden;
    padding: 0;
    background-color: var(--third-color);
    width: 340px;
    height: 150px;
}

.topEquationsCard:hover {
    scale: 1.05;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0px 0px 15px var(--shadow-color);
}

.topEquationsCard img {
    width: 150px;
    height: 150px;
    z-index: 9;
    flex-shrink: 0;
    object-fit: cover;
}

.topEquationsCard figcaption {
    display: flex;
    color: var(--figcaption-color);
    z-index: 10;
    transition: 0.3s;
    opacity: 1;
    text-align: center;
    justify-content: center;
    padding: 8px 20px 0 20px;
    margin: 5px 0 0 0;
}

.topEquationsCard p {
    font-size: 12px;
    margin-top: 5px;
    color: var(--figcaption-color);
    transition: 0.3s;
    margin: 10px 20px;
}

.topEquationsCard:hover p {
    transition: 0.3s;
    overflow-wrap: break-word;
}

.topEquationsCard:hover figcaption {
    color: var(--hover-color);
    scale: 1.15;
}

.topEquationInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    padding: 0 10px;
    color: var(--figcaption-color);
    height: 100%;
    justify-content: flex-start;
}

#top-equations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#game-frame {
    position: fixed;
    width: 100vw;
    height: 100%;
    inset: 0;
    z-index: 100;
    background-color: var(--primary-color);
    transition: 0.8s all ease-out;
    transform: translateY(200vh);
}

.game-embed-bar {
    background-color: var(--secondary-color);
    height: 8%;
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#game-frame.loaded {
    transform: translateY(0%);
    margin: 0;
    padding: 0;
}

#game-frame iframe {
    width: 100%;
    height: 92%;
    border: none;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.game-embed-bar h3 {
    margin: auto;
    padding: 0;
}

.game-frame-close {
    position: absolute;
    font-size: 28px;
    right: 25px;
    transition: 0.3s all;
}

.game-frame-close:hover {
    cursor: pointer;
    transform: scale(1.3) translatey(-4px);
    color: var(--hover-color);
}