/* Styling for Page 18 (ID: #page_18) */

/* Match the Picture to the Word Game */

/* Container Setup */
#page_18 .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

#page_18 .gambar, #page_18 .kata {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Draggable Items */
#page_18 .item {
    width: 100px;
    height: 80px;
    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: none;
}

#page_18 .item:hover {
    transform: scale(1.05);
}

#page_18 .item img {
    max-width: 80px;
    max-height: 60px;
    pointer-events: none;
}

/* Target Boxes */
#page_18 .target {
    width: 100px;
    height: 80px; /* Reduced height as requested (was 80px) */
    border: 2px solid #aaa;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s, border-color 0.3s;
    padding: 5px;
}

#page_18 .target.over {
    background-color: #d4f8e8;
    border-color: #2ecc71;
}

/* Result and Buttons */
#page_18 #hasil {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

#page_18 .buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#page_18 button {
    padding: 8px 20px;
    font-size: 14px;
    border: none;
    background-color: #0078d7;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#page_18 button:hover {
    background-color: #005fa3;
}

#page_18 button.reset {
    background-color: #d9534f;
}

#page_18 button.reset:hover {
    background-color: #b52b27;
}

@media (max-width: 700px) {
    #page_18 .container {
        flex-direction: column;
        gap: 30px;
    }
}
