.connectedRobots {
    width: 300px;
    margin-left: 30px;
    border-radius: 5px;
    background-color: #a5569b;
    z-index: 999;
    padding: 12px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.robotsContainer {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.smallerRobotsContainer {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.photonContainer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    flex: 1;
    padding: 6px;
    margin: 0 8px;
    font-weight: lighter;
    border-bottom: 2px solid #89407f;
}

.smallerRobotsContainer:last-child > .photonContainer {
    border-bottom: none;
}

.photonContainer > div:first-child {
    font-weight: bold;
}

.photonContainer svg {
    fill: white;
    width: 20px;
    height: 20px;
}

.photonContainer svg:hover {
    fill: silver;
    cursor: pointer;
}

.photonNotConnected {
    color: silver;
}

.photonNotConnected svg {
    fill: silver;
}

.photonNotConnected svg:hover {
    cursor: initial;
}

#editortools {
    z-index: 44;
}

.expandButton {
    display: none;
}

.ui.card.gallery-ready-programs .content {
    height: 4rem !important;
    display: flex;
    align-items: center;
    padding: 0.75rem !important;
}

.ui.card.gallery-ready-programs .content .header {
    text-overflow: initial !important;
    white-space: initial !important;
}

@media only screen and (max-width: 1199px) {
    .connectedRobots {
        width: 240px;
        margin-left: 6px;
    }
}

@media only screen and (max-width: 991px) {
    #editortools {
        height: initial !important;
        align-items: flex-end;
    }

    #filelist {
        transition: bottom 0.1s ease;
    }

    #simulator #filelist.filelist__Expanded {
        bottom: 190px !important;
    }

    #downloadArea {
        width: calc(50px - .25rem) !important;
    }

    #projectNameArea {
        margin: 0;
    }

    .expandButton {
        display: flex;
        background-color: #636e72;
        width: 41px;
        height: 41px;
        margin-left: 8px;
        cursor: pointer;
        color: white;
        border-radius: 3px;
        align-items: center;
        justify-content: center;
    }

    .expandButton:hover {
        background-color: #4c5658;;
    }

    .expandButton__Rotated {
        transform: rotateX(180deg);
    }

    .connectedRobots {
        flex-direction: row;
        margin: 0 16px;
        width: 235px;
        max-height: 41px;
        overflow-y: hidden;
        color: #636e72;
        padding: 4px;
        background-color: transparent;
        align-items: flex-end;
        transition: max-height 0.15s ease;
    }

    .connectedRobots__Expanded {
        max-height: 300px;
    }

    .connectedRobots > div:first-child {
        display: none;
    }

    .robotsContainer {
        max-height: inherit;
    }

    .smallerRobotsContainer {
        min-height: 41px;
        height: 41px;
        margin-bottom: 4px;
    }

    .smallerRobotsContainer:last-child {
        margin-bottom: 0;
    }

    .smallerRobotsContainer > div:not(:last-child) {
        border-bottom: none;
    }

    .photonContainer {
        background-color: white;
        padding: 0 2px;
        border-radius: 3px;
        font-size: 14px;
        margin: 0 2px;
        border-bottom: none;
    }

    .photonContainer svg {
        fill: #636e72;
    }

    .photonContainer svg:hover {
        fill: black;
    }

    .photonContainer > div:first-child {
        border-right: 1px solid #9da2a6;
        min-width: 15px;
        margin-left: 3px;
    }

    .photonNotConnected > div:first-child {
        border-right: 1px solid silver;
    }

    .photonNotConnected {
        color: silver;
    }

    .photonNotConnected svg {
        fill: silver;
    }

    .photonNotConnected svg:hover {
        cursor: initial;
        fill: silver;
    }
}

@media only screen and (max-width: 767px) {
    .expandButton {
        width: 37px;
        height: 37px;
    }

    .projectsdialog .ui.card.file .content {
        margin-left: 30px;
    }

    .ui.card.gallery-ready-programs .content {
        padding: 0.4rem !important;
    }

    .ui.card.gallery-ready-programs .content .header {
        font-size: 0.75rem !important;
    }
}

#connection-changed {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 400px;
    margin: 16px;
    padding: 16px;
    right: 0;
    top: -500px;
    background-color: #162441;
    color: white;
    transition: top 0.75s ease 0s;
    border-radius: 15px;
}

.connection-changed-showed {
    top: 100px !important;
}

.connection-changed-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: justify;
    text-justify: inter-word;
}

.connection-changed-close {
    position: absolute;
    top: 12px;
    right: 7px;
    width: 32px;
    height: 32px;
}

.connection-changed-close:hover {
    background-color: #253454;
    cursor: pointer;
}

#connection-changed-list {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
}

.connection-changed-disconnected-robot-outer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex: 1;
    margin: 4px 0;
}

.connection-changed-disconnected-robot-container {
    display: flex;
    justify-content: center;
    flex: 1;
}

.connection-changed-disconnected-robot-name {
    margin: 8px 16px;
}

.connection-changed-disconnected-robot-button {
    padding: 8px;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.connection-changed-disconnected-robot-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.connection-changed-disconnected-robot-error-text {
    font-size: 12px;
    margin-bottom: 4px;
}
