#teams
{
  position: fixed;
  max-height: 95%;
  max-width: 90%;
  max-width: calc(100% - 40px);
  overflow: hidden;
  min-height: 0;
  min-width: 0;
  display: block;
  padding: 0;
  margin: 0;
  
  bottom: 10%;
  right: 20px;

  /*width: 208px;
  height: 40px;*/
  transform: none;
  z-index: 999;

  /*--bg_color: white;*/
  --bg_color: #2d2522;
  --list_color: #1d2512;
  --border_color: #a17344;
  --container_element_bg: #36221b;
  --container_element_bg_selected: #53362b;
  --text_color: #ffb468;
  --input_bg: #161210;
  --scroll_bg: #1a1615;
  --scroll_element: #38302d;

  color: #ffb468;
  color: var(--text_color);
  font-family: 'Open Sans', Tahoma, Arial, sans-serif;
  font-size: 90%;
}

.teams--small
{
  width: 208px;
  height: 40px;
}

.teams--full
{
  width: 250px;
  height: 480px;
}

.teams_main
{
  height: 100%;
}

.teams_container
{
  padding: 5px 5px 0 5px;
  height: 100%;
}

.teams_container_inner
{
  border-radius: 6px 6px 0 0;
  border-color: #a17344;
  border-color: var(--border_color);
  border-width: 1px;
  border-style: solid;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  background-color: #2d2522;
  background-color: var(--bg_color);
  overflow: hidden;
  height: 100%;
  position: relative;
  margin: 0 auto;
}

.teams_header
{
  height: 40px;
  line-height: 40px;
  padding: 0 2em 0 1em;
  cursor: pointer;
  user-select: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.teams--small .teams_header
{
  height: 35px;
  line-height: 35px;
}

.teams_header_inner
{
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  word-wrap: normal;
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  padding: 0 2.55em 0 1em;
}

#teams.teams--full .teams_header_close
{
    visibility: visible;
    z-index: 1;
}

.teams_header_close
{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 1em;
  font-weight: 700;
  outline: 0;
  background: transparent;
  border: 0;
  opacity: 0.5;
  vertical-align: middle;
  word-wrap: normal;
  visibility: hidden;
  z-index: -1;
}

.teams_container_main_wrapper
{
  position: absolute;
  top: 40px;
  left: 0;
  bottom: 45px;
  width: 100%;
}

.teams_container_main
{
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1d2512;
  background-color: var(--list_color);
}

#teams.teams--small .teams_container_options
{
  display: none;
}
.teams_container_options
{
  bottom: 10px;
  position: absolute;
  /*height: 45px;*/
  padding: 0 5px;
  left: 0px;
  right: 0px;
}

.teams_container_element
{
  text-align: center;
  background-color: #36221b;
  background-color: var(--container_element_bg);
  border-radius: 5px;
  margin: 5px;
  height: 30px;
  line-height: 30px;
  border-color:#a17344;
  border-color: var(--border_color);
  border-width: 1px;
  border-style: solid;
  cursor: pointer;
}

.teams_container_element:hover
{
  background-color: #63463b;
}

.teams_container_element_selected
{
  background-color: #53362b;
  background-color: var(--container_element_bg_selected);
}

.teams_container_group
{
  text-align: center;
  /* background-color: gray; */
  padding-top: 20px;
  margin: 5px;
  height: 30px;
  line-height: 30px;
}

