﻿
@import "_vars.scss";

.gamemainmenu
{
  position: absolute;
  width: 100%;
  height: 100%;
  flex-direction: column;
  
  background-image: url("menu/lifelime.mp4");
  background-position: center;
  background-size: cover;
    
  color: white;
  font-family: Poppins;
  font-size: 25px;

  opacity: 1;
  transition: all 0.3s ease-out;
  
  &:intro
  {
    opacity: 0;
    transform: scaleX( 1.1 );
  }

  &.ingame
  {
    background-color: #151313ee;
    background-image: none;
  }
}

.gamemainmenu .navigator-canvas
{
  height: 100%;
  flex-grow: 1;
  flex-shrink: 0;
  backdrop-filter: blur( 10px );
  padding: 0 100px;

  .navigator-body
  {
    width: 100%;
    height: 100%;
    flex-direction: column;
    padding: 100px 0;
  }
}

.left-panel
{
  width: 65%;
  height: 100%;
  flex-direction: column;
}

.right-panel
{
  width: 35%;
  height: 100%;
  margin-left: 20px;
  flex-direction: column;
}

.game-title
{
  cursor: pointer;

  height: 200px;
  background-image: url("ui/logo-banner.png");
  background-size: contain;
  background-repeat: no-repeat;

  &:hover
  {
    sound-in: "garryware.menu.hover";
  }
  &:active
  {
    top: 3px;
  }
}

.button, .block
{
  padding: 4px 16px;

  opacity: 1;

  font-size: 28px;
  font-family: Poppins;
  font-weight: 700;
  flex-shrink: 0;
}

.button
{
  cursor: pointer;

  background-color: $button-background-color;
  border: $button-border;

  &:hover
  {
    sound-in: "garryware.menu.hover";
    opacity: 1;
    background-color: $button-background-color-hover;
    border: $button-border-hover;
  }

  &:active
  {
    top: 3px;
  }
}

.small
{
  font-size: 20px;
}

.active
{
  background-color: rgba(green, 0.8);

  &:hover
  {
    background-color: green;
  }
}

.menu-section
{
  width: 100%;
  flex-direction: column;
  margin-top: 20px;
  
  > .header
  {
    width: 100%;
    padding: 10px;
    flex-direction: row;
    flex-shrink: 0;
    
    font-size: 24px;
    font-weight: bold;
    align-items: center;

    border-bottom: 2px solid white;
    background-color: $header-background-color;

    > .icon
    {
      margin-top: auto;
      margin-bottom: auto;
      margin-right: 20px;
      height: 48px;
      width: 48px;
    }
  }

  > .content
  {
    width: 100%;
    padding: 10px;
    flex-direction: column;

    font-size: 18px;
  }

  > .background
  {
    background-color: $section-background-color;
  }

  > .expand
  {
    height: 100%;
  }
}

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: 1;
  margin-bottom: 16px;
  flex-shrink: 0;
  text-shadow: 2px 2px black;
}

.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;
      justify-content: space-around;
      align-items: center;

      > .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
{
  flex-direction: column;
  flex-shrink: 0;
  flex-grow: 0;
  gap: 2px;
  margin-bottom: 50px;

  > .form-group
  {
    flex-direction: column;
    flex-shrink: 0;
    margin-bottom: 20px;

    > .form-label
    {
      opacity: 1;
      height: $form-row-height;
      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: #000;
    width: 600px;
    border-radius: 0;
    padding: 5px;

    &:hover
    {
      background-color: #ffffff11;
    }

    &:focus
    {
      background-color: #ffffff22;
      color: #fff;
    }
  }
  
  > keybind
  {
    color: white;
    background-color: rgba(black, 0.7);
  }
}
