body {
    background-color: #333;
    color: #fff;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    margin-left: 1rem;
    padding: 0px;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #222;
    margin: 1em 0;
    padding: 0;
}

main {
    white-space: nowrap;   /* keeps inline-block divs on the same line */
    overflow-x: auto;      /* scrolls horizontally if panels exceed width */
    overflow-y: hidden;    /* prevent vertical scrollbar */
    text-decoration: none;
}

.row {
    display: flex;            /* arrange children horizontally */
    gap: 1rem;                /* optional spacing */
    overflow-x: auto;         /* scroll horizontally if content overflows */
    scroll-behavior: smooth;  /* optional smooth scrolling */
}

.row::-webkit-scrollbar {
    height: 0.5rem; /* horizontal scrollbar height */
    width: 1rem;  /* vertical scrollbar width */
}

.row::-webkit-scrollbar-track {
    background: #333;   /* track color */
    border-radius: 0.5rem;
}

.row::-webkit-scrollbar-thumb {
    background: #444;   /* draggable part */
    border-radius: 0.5rem;
}

.row::-webkit-scrollbar-thumb:hover {
    background: #666;   /* hover effect */
}

main .gamepanel {
    position: relative;
    display: inline-block;
    width: 16rem;
    height: 9rem;
    background-color: #444;
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;

    h2 {
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 0; 
        padding: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-decoration: none;
    }
    img {
        width: 100%;
        height: 100%;
        text-decoration: none;
        border-radius: 1rem;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0rem;

    h1 {
        margin-right: 1rem;
    }

    .login-signup {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-right: 1rem;
        gap: 0.75rem;
    }

    button {
        background-color: #444;
        color: #fff;
        border: none;
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        cursor: pointer;
        transition: background-color 0.3s ease, transform 0.3s ease;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    button:hover {
        background-color: #555;
        transform: scale(1.05);
    }

    button:active {
        transform: scale(0.95);
    }
}
