/* Full-Screen Landscape Mode */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #121212;
    color: #00ffcc;
    text-align: center;
}

/* Title & Connect Button */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.title {
    font-size: 28px;
    margin: 0;
}

.controller-logo {
    position: absolute;
    top: 30%;  /* Adjust based on layout */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;  /* Adjust as needed */
    opacity: 0.8;
    z-index: 10;
    pointer-events: none; /* Ensures it doesn't block button clicks */
}

#connectBtn {
    font-size: 22px;
    padding: 12px 24px;
    background-color: #00ffcc;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* 🎮 Controller Layout */
.controller {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90vw;
    height: 80vh;
}

/* 🕹 Left Section (D-Pad) */
.left-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
}

/* 🎮 D-Pad: Perfect Diamond Shape */
.dpad {
    display: grid;
    grid-template-columns: 80px 80px 80px;
    grid-template-rows: 80px 80px 80px;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 240px;
}

/* Position buttons to form a perfect diamond */
.dpad-up {
    grid-column: 2;
    grid-row: 1;
}

.dpad-left {
    grid-column: 1;
    grid-row: 2;
}

.dpad-right {
    grid-column: 3;
    grid-row: 2;
}

.dpad-down {
    grid-column: 2;
    grid-row: 3;
}

/* 🎮 Buttons Styling */
.btn {
    width: 70px;
    height: 70px;
    font-size: 28px;
    color: #00ffcc;
    background: transparent;
    border: 3px solid #00ffcc;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

/* Press effect */
.btn:active {
    background: #00ffcc;
    color: #121212;
    transform: scale(0.9);
}

/* 🎛 Middle Section (Sliders) */
.middle-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10vw;
    width: 40%;
}

/* 🕹 Sliders */
.slider {
    -webkit-appearance: none;
    writing-mode: vertical-lr;
    width: 8px;
    height: 36vh;
    background: linear-gradient(180deg, #00ffcc, #0077ff);
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* 🎮 Right Section (Action Buttons) */
.right-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30%;
}

/* 🎮 PS4-Style Action Buttons (Mirrored D-Pad) */
.buttons {
    display: grid;
    grid-template-columns: 80px 80px 80px;
    grid-template-rows: 80px 80px 80px;
    justify-content: center;
    align-items: center;
    width: 240px;
    height: 240px;
}

/* Correct Placement - Mirroring D-Pad */
.triangle { grid-column: 2; grid-row: 1; } /* Top */
.square   { grid-column: 1; grid-row: 2; } /* Left */
.circle   { grid-column: 3; grid-row: 2; } /* Right */
.cross    { grid-column: 2; grid-row: 3; } /* Bottom */
