@import "/UI/HUD/HUD.razor.scss";

SpawnerMenu {
    background-color: rgb(56, 56, 56);
    flex-direction: column;
    pointer-events: all;
    border-radius: 10px;
    border: 4px solid rgb(61, 129, 63);
    text-shadow: 2px 2px 2px black;
    box-shadow: 10px 10px 20px 0px rgba(0,0,0,0.75);
    position: absolute;

    .title-bar {
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
        background-color: hsl(0, 0%, 13%);
        border-radius: 4px;
        height: 48px;
        width: 100%;
        padding-left: 8px;
        flex-direction: row;

        .title-label {
            height: 100%;
            align-items: center;
            justify-content: center;
            padding: 8px;
            color: white;
            font-weight: bold;
        }

        .close-button {
            height: 100%;
            width: 42px;
            background-color: hsl(0, 0%, 46%);
            border-radius: 4px;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            color: white;
            font-size: 20px;
            font-weight: bold;

            &:hover {
                background-color: hsl(0, 100%, 50%);
            }
        }
    }

    .models {
        padding: 16px;
        width: 100%;
        height: 100%;
        overflow-y: scroll;
        overflow-x: hidden;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 4px;

        .model {
            align-items: center;
            justify-content: center;
            padding: 6px;
            width: 150px;
            height: 150px;
            border-radius: 4px;
            background-color: hsl(0, 0%, 30%);
            cursor: pointer;
            border: none;

            &:hover {
                background-color: hsl(0, 0%, 34%);
                border: 4px solid rgb(61, 129, 63);
                sound-in: ui.button.over;
            }

            &:active {
                background-color: hsla(204, 100%, 50%, 0.649);
                sound-in: ui.button.press;
            }

            &.active {
                background-color: hsl(196, 100%, 50%);
            }

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                border-radius: 2px;
            }
        }

        .empty {
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            color: white;
            font-size: 18px;
        }
    }

    .search-container {
        margin: 14px;

        .text-entry {
            padding: 8px;
            height: 42px;
            border-radius: 4px;
            font-size: 18px;
            width: 100%;
            align-items: center;
            background-color: hsl(197, 100%, 50%);
            border: none;
            color: black;

            .placeholder {
                color: rgb(255, 255, 255);
                font-weight: bolder;
            }

            &:focus {
                box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
            }
        }
    }
}