*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #1f1f1f;
    font-family: Tahoma, Verdana, sans-serif;
    color: white;
}

.topper {
    background-color: #343434;
    width: 100%;
    height: 80px;
    padding-left: 30px;

    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.topper h1 {
    margin: 0;
    font-weight: 700;
}

.subtopper {
    background-color: #3b3b3b;
    width: 100%;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.MainB {
    width: 125px;
    height: 30px;
    font-size: 15px;
    font-weight: 700;

    background: none;
    color: white;
    border: none;
    cursor: pointer;

    transition: transform 0.2s, background-color 0.2s;
}

.MainB:hover {
    background-color: #4a4a4a;
    transform: scale(1.1);
}

.layout-wrapper {
    display: flex;
    gap: 25px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.ad-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 25px;
    align-self: flex-start;
}

.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px auto;
    min-height: 100px;
}

.ad-container .adsbygoogle {
    margin: 0 auto;
}

.gametemplate {
    display: none;
}

.gameobject {
    background: none;
    width: 200px;
    height: 200px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gameobject .gameimage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.2s;
}

.gameobject h1 {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    margin: 0;
    color: white;
    text-align: center;
    font-size: 25px;
    font-weight: 700;

    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.gameobject:hover h1 {
    opacity: 1;
}

.gameobject:hover .gameimage {
    filter: brightness(50%);
}

#gameholder {
    width: 100%;
    min-height: 75vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, 200px);
    justify-content: center;
    gap: 30px;
}

.gameplayer {
    display: block;
    width: 85vw;
    height: 85vh;
    margin: 20px auto;
    border: none;
}

.bottombuttons {
    width: 85vw;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: grey;
}

.imgbutton {
    width: 50px;
    height: 50px;
    cursor: pointer;
}
