body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    touch-action: none;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
}

body.theme-default {
    background-color: #333;
    color: #fff;
}

body.theme-default .btn {
    background-color: #666;
    border-color: #444;
    color: white;
}


body.theme-red {
    background-color: #2a0000;
    color: #ffdce0;
}

body.theme-red .btn {
    background-color: #cc0000;
    border-color: #aa0000;
    color: white;
}

body.theme-blue {
    background-color: #00002a;
    color: #dce0ff;
}

body.theme-blue .btn {
    background-color: #0000cc;
    border-color: #0000aa;
    color: white;
}

#header {
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

#dpad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 70px);
    gap: 15px;
}

.row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.btn {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border-width: 4px;
    border-style: solid;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    outline: none;
}

.btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.action-btn {
    border-radius: 10px;
    font-size: 40px;
}