﻿
.gamemainmenu
{
  background-color: #091429;
  padding: 0 170px;
  opacity: 1;
  flex-direction: column;
  font-size: 25px;
  width: 100%;
  height: 100%;
  position: absolute;
  transition: all 0.3s ease-out;
  color: white;
    
  &:intro
  {
    opacity: 0;
    transform: scaleX( 1.1 );
  }

  &.ingame
  {
    background-color: #151313ee;
  }
}

.bg-overlay
{
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  background-image: url("ui/bg-garry.png");
  background-repeat: repeat;
  opacity: 0.007;
  
  animation-name: background;
  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes background
{
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-128px, 256px);
  }
}

.button, .block
{
  padding: 4px 16px;

  opacity: 1;

  font-size: 28px;
  font-family: Poppins;
  font-weight: 700;
  flex-shrink: 0;
}

.button
{
  background-color: rgba(black, 0.5);
  cursor: pointer;

  &:hover
  {
    opacity: 1;
    sound-in: "garryware.menu.hover";
  }

  &:active
  {
    top: 3px;
  }
}


.gamemainmenu .navigator-canvas
{
  height: 100%;
  flex-grow: 1;
  flex-shrink: 0;
}

section
{
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 0;

  &.nogrow
  {
    flex-grow: 0;
  }

  &.box
  {
    background-color: rgba( black, 0.5 );

  }
}

.scroll
{
  overflow-y: scroll;
  flex-shrink: 1;
  flex-grow: 0;
}

h2
{
  font-family: poppins;
  font-weight: 400;
  opacity: 0.2;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.member-list
{
  overflow-x: scroll;
  padding: 20px;
  gap: 8px;
}

.navigator-body
{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  flex-direction: column;
  padding: 100px 0px;
}

.hidden
{
  display: none;
}

.inset
{
  overflow: hidden;
}

.layout
{
  flex-direction: column;

  > *
  {
    flex-shrink: 0;
  }

  > .body
  {
    flex-grow: 1;
    flex-shrink: 0;
    flex-direction: column;

    &.columned
    {
      flex-direction: row;
      flex-grow: 1;
      flex-shrink: 1;
      margin: 0px 50px;
      justify-content: space-between;

      > .left
      {
        flex-grow: 0;
        flex-shrink: 0;
        overflow-y: scroll;
        flex-direction: column;
      }

      > .right
      {
        flex-grow: 0;
        flex-shrink: 0;
        flex-direction: column;
      }
    }
  }
}

.navbar
{
  padding: 32px 0;
  flex-shrink: 0;

  .right, .left
  {
    flex-grow: 0;
    flex-shrink: 0;
    gap: 10px;
  }

  .left
  {
    flex-grow: 1;
  }
}

$form-row-height: 48px;

.form
{
  flex-direction: column;
  flex-shrink: 0;
  flex-grow: 0;
  gap: 2px;
  padding-left: 64px;
  margin-bottom: 50px;

  > .form-group
  {
    flex-direction: row;
    flex-shrink: 0;
    gap: 16px;
    min-height: $form-row-height;

    > .form-label
    {
      width: 280px;
      opacity: 0.5;
      height: $form-row-height;
      align-items: center;
      justify-content: flex-end;
      font-size: 20px;
      white-space: nowrap;
    }
  }
}

.form .form-control
{
  flex-grow: 1;

  SliderControl, > DropDown, > textentry, SliderControl textentry
  {
    flex-grow: 1;
    font-size: 20px;
    height: $form-row-height;
  }

  > textentry, SliderControl textentry
  {
    flex-grow: 1;
    background-color: #ffffff05;
    height: $form-row-height;
    color: #aaa;
    width: 600px;
    border-radius: 0;
    padding: 5px;

    &:hover
    {
      background-color: #ffffff11;
    }

    &:focus
    {
      background-color: #ffffff22;
      color: #fff;
    }
  }

  SliderControl
  {
    gap: 2px;

    > .inner
    {
      > .values
      {
        position: absolute;
        padding: 16px;
        color: #fffa;
      }

      > .track
      {
        height: 100%;
        margin: 2px 0px;
        border-radius: 0;
        background-color: #ffffff05;

        >.track-active
        {
          background-color: #ffffff11;
          border-radius: 0;
        }

        > .thumb
        {
          width: 4px;
          height: 100%;
          background-color: #fff8;
        }
      }
    }
  }
}

.game-title
{
  
}
