/* Styling for Page 39 Game */
#page_39 .game-p39-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin-top: 2px;
}

#page_39 .game-p39-gambar, 
#page_39 .game-p39-kata {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    align-items: center;
    justify-items: center;
}

#page_39 .game-p39-item {
    width: 60px;
    height: 110px;
    border: 3px dashed #aaa;
    border-radius: 12px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: grab;
    touch-action: auto; /* default none */
}

#page_39 .game-p39-item img {
    max-width: 90px;
    max-height: 130px; /* Adjusted height for potentially taller profile images */
    pointer-events: none;
}

#page_39 .game-p39-target {
    width: 80px;
    height: 90px;
    border: 2px solid #aaa;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #333;
    font-weight: 400;
    transition: background-color 0.3s, border-color 0.3s;
    padding: 10px;
    gap: 3px;
}

#page_39 .game-p39-target.over {
    background-color: #d4f8e8;
    border-color: #2ecc71;
}

#page_39 #hasil_p39 {
    margin-top: 5px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
}

#page_39 .buttons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

#page_39 button {
    font-size: 14px;
    border: none;
    background-color: #0078d7;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    padding: 8px 16px;
}

#page_39 button:hover {
    background-color: #005fa3;
}

#page_39 button.reset {
    background-color: #d9534f;
}

#page_39 button.reset:hover {
    background-color: #b52b27;
}

@media (max-width: 700px) {
    #page_39 .game-p39-container {
        flex-direction: column;
        gap: 30px;
    }
}
