/* Game header styles */
.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.digi-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.digi-image {
    width: 100px;
    height: auto;
}

.digi-text {
    display: flex;
    flex-direction: column;
}

.controls-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Takezone and Dropzone styles */
.takezone, .dropzone {
    background-color: #f0f9ff;
    border: dashed 4px #29e;
    border-radius: 4px;
    padding: 10px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    transition: background-color 0.3s;
}

.takezone {
    margin-right: 20px; /* Adds some space between takezone and dropzone */
}

/* Drag and drop item styles */
.drag-drop {
    width: 90%; /* Make items fit well inside the dropzone */
    padding: 10px;
    margin-bottom: 10px; /* Add some space between items */
    color: #fff;
    background-color: #29e;
    border: solid 2px #fff;
    border-radius: 10px; /* Rounded corners for better visuals */
    touch-action: none;
    user-select: none; /* Prevent user from selecting text inside the block */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Add some depth */
    text-align: center; /* Center the text inside each block */
    transition: background-color 0.3s, box-shadow 0.2s ease;
    font-size: 1.2em;
}

    .drag-drop:hover, .drag-drop:focus {
        box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Enhanced shadow on hover/focus for better interaction feedback */
    }

    .drag-drop.dropped {
        xbackground-color: #4e4; /* Change color when successfully dropped */
    }

.drop-active {
    border-color: #aaa;
}

.drop-target {
    background-color: #29e;
    border-color: #fff;
    border-style: solid;
}

.can-drop {
    background-color: #4e4;
    color: #000;
}

/* Thumbnail image styles */
.item-thumbnail {
    width: 100%; /* Default to full width for very small screens */
    height: auto;
    margin-bottom: 5px;
    border-radius: 4px;
    object-fit: contain; /* Ensures the entire image is visible */
    max-height: 200px; /* Prevents extremely tall images */
}

/* Responsive styles */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .controls-container {
        align-items: flex-start;
        margin-top: 15px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .item-thumbnail {
        width: 80%;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .item-thumbnail {
        width: 60%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .item-thumbnail {
        width: 50%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .item-thumbnail {
        width: 25%;
    }
}
