@import "../../assets/styles/vars.scss";

#rooms-container {
    height: 100%;
    width: 100%;

    #err-no-rooms {
        height: 100%;
        display: flex;
        color: $red;
        font-weight: bold;
        justify-content: center;
        align-items: center;
    }

    #rooms-list-container {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 50px;
        margin-top: 20px;

        .room {
            width: 200px;
            height: 200px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            border: 1px dashed $good_black;
            border-radius: $my_border_rad;
            position: relative;

            &:hover {
                .room-delete {
                    display: block;
                }
            }

            .room-delete {
                width: 25px;
                height: 25px;
                position: absolute;
                top: 0;
                right: 0;
                background: $red;
                display: none;
                border-top-right-radius: $my_border_rad;

                .room-delete-ascii {
                    display: flex;
                    width: 100%;
                    height: 100%;
                    justify-content: center;
                    align-items: center;
                    color: $white;
                    font-weight: bold;
                }
            }

            .room-id-container {
                display: flex;
                justify-content: space-between;
                width: 60%;

                .label-id {
                }

                .room-id {
                }
            }

            .room-name-container {
                width: 60%;
                display: flex;
                justify-content: space-between;

                .label-name {
                }

                .room-name {
                }
            }

            &:hover {
                cursor: pointer;
                transform: scale(1.02);
                transition: 0.2s;
            }
        }
    }

    #rooms-add-container {
        position: absolute;
        bottom: 20px;
        right: 20px;
        gap: 25px;

        #rooms-text-on {
            width: 100px;
            background: $primary;
            color: $white;
            display: none;
        }

        #add-rooms {
            text-align: center;
            width: 40px;
            height: 40px;
            border-radius: 50px;
            border: none;
            background: $primary;
            color: $white;
            font-size: 1em;
            font-weight: bold;

            &:hover {
                cursor: pointer;
            }
        }
    }
}
