body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #000;
}

#container, #wrapper {
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    color: #fff;
    text-align: center;
    gap: 1rem;
}

#container > #btn {
    width: fit-content;
    margin: auto;
}

button.bn39 {
    border: none;
    margin-inline: auto;
    cursor: pointer;
}

button.bn39:disabled {
    cursor: not-allowed;
    opacity: .4;
}

button.bn39:hover .bn39span {
    background: #0e0e10;
}

.bn39 {
    background-image: linear-gradient(135deg, #008aff, #86d472);
    border-radius: 6px;
    box-sizing: border-box;
    color: #ffffff;
    display: block;
    height: 50px;
    font-size: 1.4em;
    font-weight: 600;
    padding: 4px;
    position: relative;
    text-decoration: none;
    width: 7em;
    z-index: 2;
}

.bn39:hover {
    color: #fff;
}

.bn39 .bn39span {
    align-items: center;
    background: #0e0e10;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.bn39:hover .bn39span {
    background: transparent;
}

kbd {
    font-family: Consolas, "Lucida Console", monospace;
    display: inline-block;
    border-radius: 3px;
    padding: 0px 4px;
    box-shadow: 1px 1px 1px #777;
    margin: 2px;
    font-size: small;
    vertical-align: text-bottom;
    background: #eee;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    font-variant: small-caps;
    font-weight: 600;

    /* This two work */
    /* letter-spacing: 0.5px; */
    letter-spacing: 1px;


    /* Prevent selection */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

kbd:hover, kbd:hover * {
    color: black;
    /* box-shadow: 1px 1px 1px #333; */
}
kbd:active, kbd:active * {
    color: black;
    box-shadow: 1px 1px 0px #ddd inset;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.gcontrols-wrapper {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
}

.show-gcontrols {
    animation: gcontrolsAppear 2s ease-in-out;
    animation-fill-mode: forwards;
}

.gcontrols {
    position: relative;
    padding: 1rem;
    background: white;
    color: black;
    border-radius: 1rem;

    width: fit-content;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-size: 14px;
    column-gap: 1rem;
}

.gcontrols-title {
    grid-column: 1 / span 2;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
}

.move_ctrl {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.move_ctrl > #up {
    grid-column: 2;
    grid-row: 1;
}

.move_ctrl > #left {
    grid-column: 1;
    grid-row: 2;
}

.move_ctrl > #right {
    grid-column: 3;
    grid-row: 2;
}

.move_ctrl > #down {
    grid-column: 2;
    grid-row: 2;
}

.gcontrols-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: transparent;
    border: 1px solid currentColor;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-decoration: none; /* Remove underline from links */
    width: fit-content;
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    cursor: pointer;
}

.gcontrols-button:hover {
    color: #000000;
    background-color: #ffffff;
}

.gcontrols-button:focus {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.button-content {
    display: flex;
    font-size: 1.125rem;
    letter-spacing: -0.05em;
    justify-content: center;
    width: 100%; /* Ensure full width if needed */
}

.gcontrols-close-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 100;
    color: black;
    font-size: 24px;
    border-radius: 1000px;
    width: 18px;
    height: 18px;
    display: grid;
    place-content: center;
    cursor: pointer;
}