.piece {
    --piece-background-color: #c6c2bd;

    width: 300px;
    position: relative;
    background-color: var(--piece-background-color);
    border: solid black 1px;
    border-radius: 10px;

    &-form {
        margin: 10px 5px 10px 5px;
        display: flex;
        flex-direction: column;

        button {
            border-radius: 10px;
            background-color: white;
        }    

        &-title {
            font-family: "Glacial Indifference Bold";
            margin-bottom: 10px;
        }

        &-rules {
            display: flex;
            flex-direction: column;
            margin-bottom: 10px;

            textarea {
                background-image: url("../../../assets/background-images/rules.png");
                background-position: center;
                background-repeat: no-repeat;
                background-size: 30%;

                border-radius: 10px;
                border: none;
                resize: vertical;
                min-height: 100px;
                max-height: 200px;
                padding: 5px 5px 5px 5px;
            }
        }

        &-ressources {

            input {
                height: 30px;
                border: none;
                border-radius: 10px;
                background-color: white;
                width: 150px;
            }

            &-object {
                display: flex;
                flex-direction: column;
                justify-content: space-between;

                &-infos {

                    margin-bottom: 10px;

                    &-name {
                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                    }
                    
                    &-quantity {
                        display: flex;
                        flex-direction: row;
                        justify-content: space-between;
                        margin-top: 5px;
                    }
                }
            }

        }

        &-validate {
            display: flex;
            flex-direction: row;
            justify-content: flex-end;

            button {
                margin-top: 10px;
            }
        }
    }
}