#new_game_container {
  display: flex;
  flex-direction: column;

  #game_sort_and_filter {
    .filter {
      padding: 0;
    }
  }

  .game_and_submit {
    flex-grow: 1;
    align-items: center;
  }

  .new_game {
    position: relative;
    overflow: hidden;
    margin: 10px;
    text-align: center;
    display: flex;

    .modes {
      display: flex;
      justify-content: center;
    }

    .options {
      margin: 10px;
    }

    .opponent {
      width: 160px;
      text-align: center;
      margin: 10px;

      h2 {
        margin: 0;
        padding: 5px 0;
      }

      ul {
        max-height: 300px;
        overflow: auto;
        border: 1px solid #ccc;

        &::-webkit-scrollbar {
          -webkit-appearance: none;
          width: 7px;
          background: blue;
        }

        &::-webkit-scrollbar-thumb {
          border-radius: 4px;
          background: #ccc;
        }

        &::-webkit-scrollbar-track {
          background: #eee;
        }
      }

      .friend {
        clear: both;
        overflow: hidden;
        line-height: 32px;
        font-size: 20px;
        font-family: 'Acme';
        cursor: pointer;
        white-space: nowrap;
        text-overflow: ellipsis;
        border-bottom: 1px solid #ccc;

        &:hover {
          background: #fff;
        }

        .online {
          font-size: 12px;
          top: 2px;
          left: 2px;
        }

        .avatar {
          float: left;
          margin-right: 5px;
        }
      }

      .selected {
        background: lightcyan;

        &:hover {
          background: lightcyan;
        }
      }
    }

    .submit_area {
      .dict {
        display: inline-block;
        vertical-align: middle;
        line-height: 32px;
        margin: 10px 0;
        padding: 5px 10px;
        border: 1px solid #ccc;
        background: whitesmoke;
        font-family: 'Acme';

        label {
          font-size: 20px;
          margin-right: 10px;
        }
      }
    }
  }
}
